Forum Moderators: open
for example
select * from table where table.p in ('A%','B%')
queries like these don't work in sybase. Please advise
SELECT * FROM table WHERE table.p like 'A%' OR table.p like 'B%'
If you have other WHERE statements, you can group them, ala:
SELECT * FROM table WHERE table.field > 5 AND (table.p like 'A%' OR table.p like 'B%')
Chad
sybase
Hi shaan, I bet we're the only 2 Sybase users on this board!
arran.
select * from table where table.p like ('[AB]%')
select * from table where table.p like '[AB]%'