|
-
March 7th, 2003, 09:37 AM
#4
You use the '%' as the wilcard character.
If you want to search for a string starting with 'ABC' then you would use:
Select * from Customers where LName like 'ABC%'
If you want to search for a string ending with 'ABC' then you would use:
Select * from Customers where LName like '%ABC'
If you want to search for a string containing 'ABC' then you would use:
Select * from Customers where LName like '%ABC%'
P.S. 'Name' is a reserved word and you should consider changing the name of that field to something else in your database.
HTH,
Greg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|