Mysql Function Select Into A Variable In T Sql