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

10 lines
173 B
SQL

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