亲测成功!可用,复制即可

 

DELIMITER ;;
CREATE PROCEDURE test_insert()
BEGIN
DECLARE y TINYINT DEFAULT 1;
WHILE y<10
DO
INSERT INTO sysuser_user_deposit_log(log_id, type, user_id, operator, fee, message, logtime, deposit) VALUES (NULL, 'expense', '4903', 'system', '0.500', '用户抽奖,抽奖单号:1807261600465829', '1532592017', NULL);
SET y=y+1;
END WHILE ;
commit;
END;;
CALL test_insert();

相关文章:

  • 2021-11-29
  • 2021-11-29
  • 2021-09-28
  • 2021-08-23
  • 2022-01-09
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
相关资源
相似解决方案