Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking Up Records That have % in Field Data
Message
From
26/09/2008 12:04:03
 
 
To
26/09/2008 12:00:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01350997
Message ID:
01350999
Views:
19
This message has been marked as the solution to the initial question of the thread.
>I am needing to do a SPT to find part numbers that have a % in them. Since this is the wildcard symbol haw would I write the sql string?
SELECT * FROM YourTable WHERE ATC([%], TheField) #  0 INTO CURSOR crsTest
And because you mention SPT here SQL Server version:
SELECT * FROM YourTable WHERE CHARINDEX('%', TheField) >  0
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform