Created
July 10, 2014 18:38
-
-
Save cshtdd/6eb50c10d56d95cc9db3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @param varchar(50) | |
set @param='PNS,PNR,PUG' | |
declare @value varchar(50) | |
set @value='PNR' | |
select 'yes' as [contains] where charindex(',' + @value + ',', ',' + @param + ',', 0) > 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment