Oracle导出数据库中所有sequence

来源:互联网 发布:asp查询sql数据库代码 编辑:程序博客网 时间:2024/06/04 23:23
select
'create sequence schema_name.'|| SEQUENCE_NAME || ' minvalue '||MIN_VALUE||' maxvalue '||MAX_VALUE||' start with '||LAST_NUMBER||' increment by '||INCREMENT_BY||' cache '||CACHE_SIZE||' ;'
from dba_sequences where SEQUENCE_OWNER='&your_schema_name';