作者:Q小泓别_431 | 来源:互联网 | 2023-06-30 11:30
感谢renjixinchina分享 原文链接http:blog.itpub.net15747463viewspace-751593oracle下批量增加序列值、批量滚动序列decl
感谢renjixinchina分享 原文链接http://blog.itpub.net/15747463/viewspace-751593/
oracle下批量增加序列值、批量滚动序列
declare
VC_SQL varchar2(200);
N_NUM NUMBER;
begin
FOR I IN 1 .. 100 LOOP
for a in (select * from user_sequences) loop
VC_SQL := 'select ' || a.sequence_name || '.NEXTVAL from dual ';
execute immediate VC_SQL
INTO N_NUM;
end loop;
END LOOP ;
end;
凡哥,别他妈吹牛逼了