create procedure wk()
begin
declare i int;
set i = 1;
while i < 5 do
insert into t (myday) values (date_sub(curdate(),interval -i day));
-- select i;
set i = i +1;
end while;
end $$

 

相关文章:

  • 2021-09-11
  • 2021-08-20
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2021-09-28
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
相关资源
相似解决方案