views:

58

answers:

2

I want to make this kind of query:

create procedure something
  @name varchar(13)
as
begin

  select * 
   from WORKER
  where NAME LIKE "%@name%"

end

For input @name=ho, I want output every row that contains NAME wich sounds "ho", for example HOuse, soHO, broHOw...

+7  A: 
Select * from WORKER where Name Like '%' + @name + '%'
despart
thank you people, that works just like a dream :)
+2  A: 
create procedure something
@name varchar(13)
as
begin
select * from WORKER
where NAME LIKE '%' + @name + '%'
end
John Saunders
thank you people, that works just like a dream :)