To use a variable in your SQL statement, you can use the following sample syntax:
SET @varname := 'value';
SELECT * FROM tablename
WHERE col1 = @varname;
To use a variable in your SQL statement, you can use the following sample syntax:
SET @varname := 'value';
SELECT * FROM tablename
WHERE col1 = @varname;
3.133.114.221