반응형
/* table 생성 */
create table noticereply(
rno number not null primary key,
bno number,
replytext varchar2(4000) not null,
replyer varchar2(50) not null,
regdate date default sysdate,
updatedate date default sysdate
);
alter table noticereply add constraint notice_board
foreign key(bno) references noticeboard2(bno);
/* 시퀀스 생성 */
create sequence noticereply_seq
start with 1 increment by 1
maxvalue 99999
nocycle;
반응형
'SQL' 카테고리의 다른 글
[Oracle] mybatis case when (0) | 2022.10.25 |
---|---|
SQL_CALC_FOUND_ROWS 게시글개수 리턴 (0) | 2021.01.22 |
댓글