Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC - SELECT too long
Message
 
 
To
07/03/2006 05:43:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01101988
Message ID:
01101993
Views:
12
Try putting your SQL statement into a variable first.
lcSQL = 'SELECT rub_code,rub_libelle,rub_alias,;
 rub_touche,trub_libelle,rub_etat,;
 ser_code,trub_code FROM Rubrique Rubrique INNER JOIN Typerubrique Typerubrique;
 ON Rubrique.trub_code=Typerubrique.trub_code;
 WHERE ser_code=?Cser and SUBSTR(rub_libelle,1,3) NOT IN("acc","ind")','Cursdetail')'
SQLEXEC(gnConnHandle,lcSQL)
>HI ALL ,
>
>here the error message 'Command contains unrecognized phrase/keyword' . I thing my select is too long . what can I do ?
>
>
>
> SQLEXEC(gnConnHandle,'SELECT rub_code,rub_libelle,rub_alias,;
> rub_touche,trub_libelle,rub_etat,;
> ser_code,trub_code FROM Rubrique Rubrique INNER JOIN Typerubrique Typerubrique;
> ON Rubrique.trub_code=Typerubrique.trub_code;
> WHERE ser_code=?Cser and SUBSTR(rub_libelle,1,3) NOT IN("acc","ind")','Cursdetail')
>
>
>Best regards
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform