develog

[oracle] sequence 본문

DB/Oracle

[oracle] sequence

냐옴 2013. 2. 21. 21:47

 

CREATE SEQUENCE TEST_SEQ
START WITH 1
INCREMENT BY 1
NOMINVALUE
NOMAXVALUE
NOCACHE
NOCYCLE
;

DROP SEQUENCE TEST_SEQ
;

SELECT TEST_SEQ.NEXTVAL
FROM DUAL
;

SELECT TEST_SEQ.CURRVAL
FROM DUAL
;

ALTER SEQUENCE TEST_SEQ
INCREMENT BY 2
;

'DB > Oracle' 카테고리의 다른 글

Oracle 버전 확인  (0) 2013.02.27
ORA-04091  (0) 2013.02.26
format number  (0) 2013.02.13
Package  (0) 2013.02.12
Procedure  (0) 2013.02.12
Comments