As far as i know MySQL does not support such as functionality.
Instead of table variable, you can use temporary table[^].
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)