Reputation: 966
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 which sounds ho
,
for example HOuse, soHO, broHOw...
Upvotes: 3
Views: 384
Reputation: 161773
create procedure something
@name varchar(13)
as
begin
select * from WORKER
where NAME LIKE '%' + @name + '%'
end
Upvotes: 2