uso de variables

SELECT @variable:='valor';
SELECT * FROM @variable;