[Oracle] 시퀀스 번호 생성

2014. 4. 8. 17:21DB

create sequence testSeq

increment by 증가 값

start width 시작값

maxvalue 최대값

minvalue 최소값

 

 

생성 후 아래와 같이 사용

 

INSERT
INTO board VALUES
        (
                 testSeq.nextval,
                '시퀀스 테스트'
        );
       
       

'DB' 카테고리의 다른 글

[Mysql] procedure 만들기  (0) 2014.08.06
이전글 다음글 select 쿼리  (0) 2014.04.17
[Oracle] alter 속성 (수정 중..)  (0) 2014.04.08
[Oracle] 정렬 시 우선순위 부여  (0) 2014.03.31
DDL, DML, DCL  (0) 2014.03.18