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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 check if string occurs in table column content

Author  Topic 

matejkralik
Starting Member

1 Post

Posted - 2010-07-02 : 10:56:23
Can anyone tell me how to check if string occurs in table column content?

Thank you for answer.

Matej Kralik

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-07-02 : 10:59:32

case when col like '%string%' then 'exists' else 'does not exist' end

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -