본문 바로가기

개발

검색하기
개발
프로필사진 Dev.hs

  • 분류 전체보기 (57)
    • NestJS (1)
    • Spring (4)
      • EgovFramework (1)
    • JavaScript (8)
      • Jquery (3)
      • React (3)
    • Java (21)
      • ApacheJames (4)
      • Algorithm (6)
      • mybatis (1)
    • Android (5)
    • SQL (1)
    • CSS (2)
    • ETC (2)
    • SpringBoot (1)
    • IntelliJ (2)
    • Linux (1)
    • GIT (5)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록SQL (1)

개발

pk, fk 생성 예제

create table tb_reply( rno number(10,0), bno number(10,0) not null, reply varchar2(1000) not null, replyer varchar2(50) not null, replyDate date default sysdate, updateDate date default sysdate ); alter table tb_reply add constraint pk_reply primary key(rno); alter table tb_reply add constraint fk_reply_board foreign key (bno) references tb_board(bno); tb_board 의 bno를 fk로 가짐 rno를 pk로 가짐

SQL 2019. 7. 21. 01:37
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바