Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags
more
Archives
Today
Total
관리 메뉴

고마구의 개발 블로그

240923 23주차 월요일 - 부트 개인 플젝 01 본문

KDT풀스택과정 공부

240923 23주차 월요일 - 부트 개인 플젝 01

고마구 2024. 9. 23. 01:01

 
 
CREATE TABLE answer_board (
aGroupKind VARCHAR2(255), –
aId NUMBER PRIMARY KEY,
aName VARCHAR2(255) NOT NULL,
aTitle VARCHAR2(255) NOT NULL,
aContent VARCHAR2(4000) NOT NULL,
aEtc VARCHAR2(4000) NULL,
aWriteTime DATE DEFAULT sysdate,
aUpdateTime DATE DEFAULT null,
aHit NUMBER DEFAULT 0,
aDelete VARCHAR2(1) DEFAULT 'N',
aLike NUMBER DEFAULT 0
aName 외래키 nickname
);
create sequence aId;
 
 
CREATE SEQUENCE rId;

drop table reply;
CREATE TABLE reply (
rId NUMBER PRIMARY KEY,
aId NUMBER NOT NULL,
rContent VARCHAR2(1000) NOT NULL,
rName VARCHAR2(100) NOT NULL,
rWriteTime date DEFAULT sysdate,
rUpdateTime date,
rEtc VARCHAR2(1000),
rGroup NUMBER NOT NULL,
rStep NUMBER DEFAULT 0,
rIndent NUMBER DEFAULT 0,
rDelete CHAR(1) DEFAULT 'N',
rLike NUMBER DEFAULT 0
);