set serveroutput on;spool c:\sequence_code.txt; declare v_sequence varchar2(4000); v_nextval number(38,0);begin for i in (select sequence_name from user_sequences) loop select dbms_metadata.get_ddl('SEQUENCE',i.sequence_name,user) into v_sequenc…
create sequence name increment by x //x为增长间隔 start with x //x为初始值 maxvalue x //x为最大值 minvalue x //x为最小值 cycle //循环使用,到达最大值或者最小值时,从新建立对象 cache x //制定存入缓存(也就是内存)序列值的个数 序列是一数据库对象,利用它可生成唯一的整数.一般使用序列自动地生成主码值.一个序列的值是由特别的Oracle程序自动生成.如果不设定cycle循环的话,每一个序列号是唯…