Mysql Create Function Select Into Variable In Sql