DELIMITER $$ CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `psico`.`answerSort`() BEGIN UPDATE answer SET `order` = RAND() * 999999; END$$ DELIMITER ;