Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select with memo fields
Message
 
 
À
01/04/2015 17:14:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01617666
Message ID:
01617667
Vues:
88
This message has been marked as the solution to the initial question of the thread.
>Hi All:
>
>The following code does not work.
>
>
>SELECT 'A', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000463' ;
>INTO CURSOR curAdds
>
>SELECT 'D', * FROM \pro50\apdata\apvend18 vv ;
>WHERE vendno = '000687' ;
>INTO CURSOR curDeletes
>
>SELECT * ;
>FROM curAdds;
>UNION ;
>sele * ;
>FROM curDeletes;
>INTO CURSOR zzzz
>
>
>
>Getting the following error:
>
>
>Operation is invalid for a memo, blob, general or picture field
>
>
>It seems that it's the UNION that's causing the problem, since the SQL works up until then.
>
>Thanks,
>
>Yossi

Yes, you can not use UNION with memo fields as UNION tries to perform a distinct operation. You may try UNION ALL if you don't need a result with distinct entries. You can also try to insert deleted values into the first cursor if you create it with readwrite option.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform