I am trying to setup a few simple SQL scripts to help with some short term DB administration. As such, I\'m setting up variables to try to make it easier to reuse these scri
No need to CONCAT just use '%'+ Variable +'%':
SET @email = 'test@test.com'; SELECT email from `user` WHERE email LIKE '%' + @email + '%';