create table tbl_reply (
rno number,
bno number not null,
replytext varchar2(2000) not null,
replyer varchar2(50) not null,
regdate date default sysdate,
updatedate date default sysdate);
--PK
alter table tbl_reply add constraint pk_reply
primary key (rno);
--FK
alter table tbl_reply add constraint fk_board_reply
foreign key (bno) references tbl_board(bno);
--sequence
create sequence seq_reply;
댓글 없음:
댓글 쓰기