select ‘create sequence ‘||SEQUENCE_OWNER||‘.‘||sequence_name||
‘ minvalue ‘||min_value||
‘ maxvalue ‘||max_value||
‘ start with ‘||(last_number+50)||
‘ increment by ‘||increment_by||
(case when cache_size=0 then ‘ nocache‘ else ‘ cache ‘||cache_size end) ||‘;‘
from dba_sequences where sequence_owner in (select username from dsg.qy_user);
(漫兮网 - 服务于区块链创业者、技术人和站长的网站http://www.manxinet.com)
原文地址:https://www.cnblogs.com/moonfans/p/11365882.html
时间: 2024-10-16 06:41:31