BEGIN
#Routine body goes here...
#Routine body goes here...

#声明变量

DECLARE i INT;

SET i=0;
#设置插入条数,比如i<3就是插入3条
WHILE i<3 DO
BEGIN
#插入sql
INSERT INTO `db_kideng`.`TB_ACTIVITY_SHARE` (`activity_id`, `create_time`, `update_time`)
VALUES ('104', '2020-06-16 09:34:42', NULL);
set i= i+1;
END;
end WHILE;

END

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2021-11-03
  • 2021-05-25
  • 2021-05-28
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-12-13
  • 2021-11-20
  • 2022-02-23
  • 2022-12-23
  • 2021-07-18
相关资源
相似解决方案