oracle 导sequence命令

select 'create sequence '||sequence_name||  
       ' minvalue '||min_value||  
       ' maxvalue '||max_value||  
       ' start with '||last_number||  
       ' increment by '||increment_by||  
       (case when cache_size=0 then ' nocache' else ' cache '||cache_size end) ||';' 
from dba_sequences where sequence_owner='TEST'

 

sequence_owner 为用户,一定要大写

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