Postgresql Select Into Variable Mysql Create Temporary