I want to create a procedure which takes one input parameter(@name) and list all the fully or partially matching results. I used
Select * from Table1
Where Name LIKE @Name
but it didnt work. Can you help plz?
I want to create a procedure which takes one input parameter(@name) and list all the fully or partially matching results. I used
Select * from Table1
Where Name LIKE @Name
but it didnt work. Can you help plz?
Did you try using wild cards.
Select * from Table1
Where Name LIKE ('%' + @Name + '%')
Thanks a lot
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.