February 1, 2008 at 7:27 am
Use the LIKE keyword:
select [Shop Name] from mytable where [Shop Name] like '[0-9]%'
for numbers, or
select [Shop Name] from mytable where [Shop Name] like '[^a-zA-Z]%'
for ones that do not start with a letter
Regards,
Andras
February 1, 2008 at 7:31 am
Thanks Andras
But this doesn't select rows starting with special characters like #,%,* etc.
How do I write a single query to select all rows starting with numbers and spl characters
February 1, 2008 at 7:33 am
sorry andras
my mistake. I didnt notice the second query though
Cheers
-Jag
February 1, 2008 at 7:36 am
poztme (2/1/2008)
sorry andrasmy mistake. I didnt notice the second query though
Cheers
-Jag
Not your fault, I've added it later (the title of your post was truncated so I did not see the "and spl chars"). Hope this works for you.
Andras
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply