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