首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

批量批改SEQUENCE,序列同时增加10000

2012-07-26 
批量修改SEQUENCE,序列同时增加10000select alter sequence || t1.sequence_name ||?????? increment

批量修改SEQUENCE,序列同时增加10000

select 'alter sequence ' || t1.sequence_name ||
?????? ' increment by 10000 nocache;'
? from user_sequences t1
union all
select 'select ' || t2.sequence_name || '.nextval from dual;'
? from user_sequences t2
union all
select ' alter sequence ' || t3.sequence_name ||
?????? ' increment by 1 CACHE 20;'
? from user_sequences t3;

热点排行