Postgresql Select Into Variable Mysql Create Database