2014년 3월 6일 목요일

[참고] DB 명명규칙 참고

간단한 어플 개발중 MySQL에서 index를 추가다려다가 명명규칙에 대해서 찾아보다 참고할만해서 퍼옴.

- primary key : PK_테이블이름
- foreign key : FK_부모테이블이름_자식테이블이름_자식컬럼1_자식컬럼2_ ...
- default constraint : DF_테이블이름_컬럼이름
- index
    non unique & non clustered : IX_NN_테이블이름_컬럼이름1_컬럼이름2_ ...
    non unique & clustered : IX_NC_테이블이름_컬럼이름1_컬럼이름2_ ...
    unique & non clustered : IX_UN_테이블이름_컬럼이름1_컬럼이름2_ ...
    unique & clustered : IX_UC_테이블이름_컬럼이름1_컬럼이름2_ ...



[출처]: http://purumae.tistory.com/135

댓글 없음:

댓글 쓰기