Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
$ operator in SQL?
Message
 
 
To
10/10/2005 18:11:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057806
Message ID:
01057808
Views:
12
>Is it possible to use the $ operator in an SQL statement? I would like to create an SQL to select records where a certain character string is contained anywhere within one of the character fields of my table.
>
>If it's not possible to use the $ operator in SQL, is there another way to do it?

Sure it's possible. You can also use SQL equivalent of $ - LIKE operator
...
  WHERE lcSearchString $ myfield
*
...
  WHERE myfield LIKE "%" + lcSearchString + "%"
Keep in mind that either condition is not be optimizable.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform