-
02. TABLE 생성, Domain ~ ServiceSpring Web Project/6. Ajax 댓글 (Reply) 2020. 12. 29. 11:28반응형
1. TABLE 생성
CREATE TABLE TBL_REPLY (
rno int NOT NULL AUTO_INCREMENT,
bno int not null default 0,
replytext varchar(1000) not null,
replyer varchar(50) not null,
regdate TIMESTAMP NOT NULL DEFAULT now(),
updatedate TIMESTAMP NOT NULL DEFAULT now(),
primary key(rno)
);
[외래키 추가]
alter table tbl_reply add constraint fk_board
foreign key (bno) references tbl_board (bno);
2. Domain
3. SQL
4. DAO
5. Service
반응형'Spring Web Project > 6. Ajax 댓글 (Reply)' 카테고리의 다른 글
06. 삭제 Controller (REST 방식) (0) 2021.01.11 05. 수정 Controller (REST 방식) (0) 2021.01.11 04. 목록 Controller (REST 방식) (0) 2020.12.30 03. 등록 Controller (REST 방식) (0) 2020.12.29 01. REST와 Ajax (0) 2020.12.22