Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo search
Message
 
To
20/10/2005 11:06:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01060733
Message ID:
01060737
Views:
10
>I have a customer that would like for me to search memo field for specific words and update another table based on the results. For example if I search for "Ford" they only want to update for items that contain "Ford" and not things such as Bradford, Kingsford and so on. What's the best way for me to do this?
SELECT * FROM YourTable;
       WHERE MyMemoField LIKE '% Ford %';  && Note the spaces around Ford
       INTO CURSOR cTest
or
SCAN FOR [ Ford ] $ MyMemoField
ENDSCAN
** Update: Both ways will work only if the memo not begins or ends with Ford.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform