Oracle批量插入日期
来源:互联网 发布:dev c 编程 编辑:程序博客网 时间:2024/04/20 05:39
--循环插入时间(当前时间截止到2020-12-31)
declare
temp int := 10000;
begin
for i in 1..temp
loop
if(to_date(to_char(sysdate+i,'yyyy-mm-dd'),'yyyy-mm-dd') = to_date('2021-01-01','yyyy-mm-dd')) then
exit;
end if;
insert into dailyestbufferqty(deliverydate,papertypeno,estimationqty,bufferqty,publicationcode) values(sysdate+i,'RS',0,0,'SCMP');
end loop;
commit;
end;
declare
temp int := 10000;
begin
for i in 1..temp
loop
if(to_date(to_char(sysdate+i,'yyyy-mm-dd'),'yyyy-mm-dd') = to_date('2021-01-01','yyyy-mm-dd')) then
exit;
end if;
insert into dailyestbufferqty(deliverydate,papertypeno,estimationqty,bufferqty,publicationcode) values(sysdate+i,'RS',0,0,'SCMP');
end loop;
commit;
end;
- Oracle批量插入日期
- oracle批量插入测试数据
- oracle批量查询插入
- Oracle批量插入数据
- Oracle批量插入测试数据
- 批量插入oracle数据库
- oracle 批量插入测试数据
- oracle批量插入测试数据
- oracle批量插入数据
- oracle批量插入数据
- myBatis 批量插入oracle
- mybatis oracle 批量插入
- oracle批量插入测试数据
- oracle的批量插入
- Mybatis批量插入oracle
- 批量插入数据 Oracle
- oracle批量插入
- oracle mybatis批量插入
- 这两天在想一个算法,想了不少时间
- FCKeditor2.6.3的一些其他设置
- ASP.NET ViewState 初探
- Delphi自定义组件(1)
- (转载)使用 Windows XP 的外观风格
- Oracle批量插入日期
- 关于DataList的DataKeyField 属性
- 好样的,猪猪~~
- Delphi 组件编写--扑克牌组件
- 讲解SQL Server定时作业job的设置方法
- PetShop的系统架构设计
- 被爱 (转)
- page cache 与buffer cache
- VS2005下写DLL应该注意的问题