Oracle序列查询

select 'create sequence username.' || 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 = 'SAAS';

 

你可能感兴趣的:(oracle,cache,saas)