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
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