How can I store my result set into the variable in MySql?
I don't want to use temp Table.
In the SQL sever we have table variable but I think we don't have it in MySQl.
I need something like table variable or pseudo-code can be something like this
SET @tbl =(SELECT Name,
LastName
FROM MyTBL
WHERE Id = 1);
SELECT Name FROM @tbl;