Quote:
quote:Originally posted by vishwadh
actuallly i have one string parameter in my stored procedure.i want to find some specific words in that string in my stored procedure.like
create procedure test
as
str varchar(100)
begin
//i want to search wether str string contains 'abc' word or not
end
how will i do that
|
You could do it like...
If (Charindex('abc',@str)>0)
-- do something
or better yet
if (@str like '%abc%')
-- do something
Harsh Athalye
India
"Nothing is impossible"