Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select statement too long...
Message
From
11/05/2004 15:24:22
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
11/05/2004 14:54:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00902935
Message ID:
00902946
Views:
23
Make a small table. Instead of entering ID's in code, enter the user ID's in that small table and use a join instead of all the or's.

>I am writing a select statement for a website which uses foxpro as the backend database.
>It is a very long statement since it is for a Master UserID and Password which includes many users. so I query the database checking if any of the id's match any of the ideas included in this list of users. there are many OR statements, which causes the program to crash. I divided it up into Unions also but it is still too long - is there any other better way of running this?
>Please respond, Ive been working on this for quite a while now.
>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform