Return to Snippet

Revision: 32297
at September 22, 2010 01:59 by samwa


Initial Code
-- 
DECLARE @CSV varchar(max)

SELECT * 
FROM some_table
WHERE ',' + @CSV + ',' like '%,' + some_field + ',%'

Initial URL

                                

Initial Description

                                

Initial Title
sql filter column by csv string

Initial Tags
sql

Initial Language
SQL