Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Producing an Update Log
Message
De
28/11/2014 15:09:42
 
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:
01609383
Message ID:
01611534
Vues:
69
>>>>The code works well EXCEPT that please look at the following code that generates all the OR conditions:
>>>...
>>>>I'm getting an error that the SQL statement is too long, probably because there are so many fields to process. How can I solve this?
>>>
>>>Split that after some number of fields and build three, four cursors (or as many as it takes), so that the field list for each one of them is short enough. Then select... union them into one, assuming you don't have any memos in there.
>>
>>That part is easy. Thanks. HOWEVER, this solution will leads to duplicate records if, say, fields #5 do not equal and ALSO fields #88 do not equal if the 2 fields are dealt with in different cursors.
>
>UNION will remove duplicate rows, UNION ALL will have the undesired effect you mention.
Thanks! That worked.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform