create sequence 시퀀스명
start with 숫자1 -- 숫자1부터 시작
increment by 숫자 -- 숫자만큼 증가
-- maxvalue 숫자2 -- 최대값 : 숫자2
-- minvalue 숫자0 -- 최소값 : 숫자0
nomaxvalue -- 무제한 증가
nominvalue -- 최소값 없다
-- cycle -- 반복
nocycle -- 반복이 아닌 직진
nocache;
-- insert
insert into 테이블명(boardno, 컬럼명1)
values(시퀀스명.nextval, '컬럼명1에 넣을 문장');
select 시퀀스명.currval
from dual;
select last_number
from user_sequences
where sequence_name = '시퀀스명';
-> local_hr에서작업한것