Does MySQL have variable table as SQL-Server or user-defined-type in Oracle? My scenario is to select records into a container and iterate through the container for further action.
I had tried CURSOR but seems not efficient when comes to multiple columns. Also tried CREATE TEMPORARY TABLE with IS EXIST, due to the life cycle, I believe is not a good practice.