Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
aoriju
Posting Yak Master
156 Posts |
Posted - 2011-06-07 : 06:43:56
|
| Hi All,I have like statementSELECT * FROm table1 WHERE col like '%s%' ,'%gg%'How to do this multiple like ? |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2011-06-07 : 06:48:41
|
One of the two below depending on your needs:SELECT * FROm table1 WHERE col like '%s%' and col like '%gg%';SELECT * FROm table1 WHERE col like '%s%' or col like '%gg%'; |
 |
|
|
|
|
|