salix/db/routines/psico/procedures/answerSort.sql

11 lines
166 B
SQL

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