mysql游标LOOP方式循环和嵌套循环
1. LOOP方式循环DELIMITER $$USE mydb $$DROP PROCEDURE IF EXISTS `test`$$CREATE DEFINER=`dev`@`192.168.%` PROCEDURE `test`()BEGIN DECLARE userId INT; DECLARE done INT DEFAULT 0; DECLARE userIds ...