您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

oracle循环插入

bubuko 2022/1/25 20:05:59 其他 字数 696 阅读 813 来源 http://www.bubuko.com/infolist-5-1.html

declare post_time number(10); cvalue number(10,1); begin post_time :=1584072610; cvalue := 117; loop post_time := post_time -20; if post_time<15840716 ...

 

declare
post_time number(10);
cvalue number(10,1);
begin
 post_time :=1584072610;
 cvalue := 117;
loop
post_time := post_time -20;
if post_time<1584071610 then
exit;
end if;
insert into mg_data (plc_no,para_name,machine_no,dt_post_time,DATA,pcode) values (‘s7-1200-14‘,‘双拉机热固四区风机出风温度控制‘,‘P01‘,post_time,cvalue,‘M01‘);
end loop;
end;

  

oracle循环插入

原文:https://www.cnblogs.com/xifengmo/p/12487575.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶