Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Partial Search
Message
 
 
To
24/09/1997 09:50:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00051319
Message ID:
00051485
Views:
32
>>you can also write the WHERE clause:
>>
>>... where FieldName like '%&MyVar.%'
>>
>>This will return rows where your variable text string is anywhere in the field, not just at the beginning of the field.
>
>
>Mark,
>
>Excuse me for butting in but, will "where FieldName like '%&MyVar.%'" run faster than
>"where ATC(myvar, mytable.myfield) > 0"? I am also trying to find a fast way of searching
>for strings inside of a character field.
>
>Thanks
>Jerry Tovar

ATC will work but performance suffers because the ATC function will be evaluated for each row in the table. like '%MyVar.%' runs more efficiently.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform