I am looking a way to find out comma in a string in where clause.
DECLARE @List VARCHAR(max) = 'Hi, going, home for now'
SELECT
@List = COALESCE(@List + ',')
fname
FROM [dbo].[table]
where fname IN ( @List)
I am looking a way to find out comma in a string in where clause.
DECLARE @List VARCHAR(max) = 'Hi, going, home for now'
SELECT
@List = COALESCE(@List + ',')
fname
FROM [dbo].[table]
where fname IN ( @List)