declare
temp integer:=10000;
begin
for i in 1..temp
loop
if to_date(to_char(sysdate-i,'yyyy-mm-dd'),'yyyy-mm-dd')=to_date('2015-01-01','yyyy-mm-dd') then
exit;
end if;
insert into time_tmp1 values(trunc(sysdate-i));
end loop;
commit;
end;
oracle 批量插入日期
最新推荐文章于 2022-08-15 16:19:43 发布