I want to know if there is a way to use a user-defined variable in WHERE clause, as in this example:
WHERE
SELECT id, location, @id := 10 FROM songs W
This worked for me!
SET @identifier = 7; SELECT * FROM test where identifier = @identifier;