oracle 变量

插入 日期时间 循环插入

declare
  total date:=  trunc(sysdate-1) ;
  begin
  for i_count in 1..10000 LOOP
   insert into DQ_DATE(date_time)  values (  total );
  total := total + 1/24;
  end loop;
end;

 

posted @ 2014-06-16 09:12  海天依色  阅读(229)  评论(0)    收藏  举报