Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select with IN clause is giving an error
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows Server 2003
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154265
Message ID:
01154331
Views:
12
Hi,
For this specific case you could use
lcWhere = "BETWEEN(Mtgid,1,25) OR Mtgid=370"
> I am selecting records using in clause to select records from a vfp table. I get the following error when I execute the command. SQL expression is to complex. Any work around the in clause limitation.
>
>Here is my code:
>
>Local lcwhere
>lcWhere = "Mtgid in(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,370)"
>
>select * from Batch where &lcWhere into cursor cTemp
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform