2016년 1월 6일 수요일

오라클버전 P370 tbl_reply 테이블의 생성 스크립트



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;

댓글 없음:

댓글 쓰기