It's only a problem when using LIKE. If your db supports it you can use something like this (SQL Server syntax):
[tt]
Select * from MYTABLE where Left(MYCOLUMN,1) = '%'
[/tt]
If that doesn't do it for you, post again and this time reveal what database you are using.
How about exercising a little creativity here?
[tt]
Select * from MYTABLE
where Left(MYCOLUMN,1) = '%'
and Left(MYCOLUMN,2) = '%%'
[/tt]
or
[tt]
Select * from MYTABLE
where Left(MYCOLUMN,1) = '%'
and Mid(MYCOLUMN,1,1) = '%'
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.