/ Published in: SQL
Expand |
Embed | Plain Text
-- DECLARE @CSV varchar(max) SELECT * FROM some_table WHERE ',' + @CSV + ',' LIKE '%,' + some_field + ',%'
You need to login to post a comment.
samwa on 09/22/10
2 people have marked this snippet as a favorite
-- DECLARE @CSV varchar(max) SELECT * FROM some_table WHERE ',' + @CSV + ',' LIKE '%,' + some_field + ',%'
You need to login to post a comment.