Can you please help with something I thought I could simply find, but have not. How can I use a variable in a LIKE statement?
I tried:
SELECT * FROM TABLE WHERE COLUMN LIKE '%@VARIABLE%'
but it seems it is looking at the variable as text instead of variable.
I am using MS SQL Express
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.