Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Syntax
Message
From
07/01/1999 14:16:23
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00173703
Message ID:
00173708
Views:
16
Hi Wayne ---

You want the LIKE operator...the syntax is as follows:

SELECT * FROM table WHERE name LIKE "A_____" (All names 6 chars or less beginning with upper-case "A")
SELECT * FROM table WHERE name LIKE "A%" (All names any length beginning with upper-case "A")
SELECT * FROM table WHERE name LIKE "[a-gA-G]%" (Any name, any case starting with A through G)
SELECT * FROM table WHERE name LIKE "%[s-S]%" (Any name with an "s" in it, regardless of case).

>Attempting to retrieve data using $ (contained in) through ODBC to SQL Server. What's the correct syntax?
>
>Wayne
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform