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
BEGIN
SET @emailid = CONCAT('%', 'email@email.com' ,'%');
SET @t1 =CONCAT('SELECT * FROM user WHERE email LIKE ''', @emailid, '''');
PREPARE stmt3 FROM @t1;
EXECUTE stmt3;
DEALLOCATE PREPARE stmt3;
END