Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO select .... like .... %
Message
From
13/11/2000 04:35:52
 
 
To
10/11/2000 09:03:25
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00440137
Message ID:
00440907
Views:
10
Yep.

Use following way if you're sure you compare only text:

instead of

field like "a%"

use

field between "a" AND "azzzzzzzzzzzzzz"

Above expression is optimizable. I also use it in VFP for search and use exact search, this gives more speed, probably because all other string comparison more quick because they exact ;)

>In foxpro, the = only compares the number of characters on the left. In ADO using VFP drivers, it does not seem to do so. It can be done using 'Select * from table where field like "a%"'. However, the "like" seems to be very slow. Is there any way to get the speed?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform