Created
May 12, 2016 06:49
-
-
Save blackawa/edecd52fef8afcbdeb9166c052c9b3c8 to your computer and use it in GitHub Desktop.
シーケンスのコピー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Thanks https://community.oracle.com/thread/630462?start=0&tstart=0 | |
select 'Create Sequence '||sequence_name|| | |
' increment by '||increment_by|| | |
' start with '||last_number|| | |
' maxvalue '||max_value|| | |
decode(cycle_flag,'N',' NOCYCLE ',' CYCLE ')|| | |
decode(cache_size,0,'NOCACHE ','CACHE '||cache_size) | |
from user_sequences; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment