For ex:if String contains string 'X' then it shouldsatisfy certain condition.
if(contains(var,'xyz'))
begin
-----
end
This querry given me error.
How should i check string?
Plz help me out.....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted May 31, 2011, 4:11 AM
declare @string1 as varchar(10)
set @string1 ='xyz1'
if(Charindex(@string1,'xyz1',0) > 0 )
begin
print 'here'
end