DECLARE @somestring as nvarchar(50) = 'test,value';
select
[test] = CASE
WHEN CHARINDEX(',', @somestring) > 0
THEN 'exists'
ELSE 'does not exist'
END
My professional notes on programming. Included in my notes are discussions on VB.NET, Microsoft Office, and some C#. I am just starting to learn about C# so as I learn more I will add more.
No comments:
Post a Comment