DB/MYSQL

[ MYSQL ] Column Flag

HEON.D 2021. 2. 5. 12:32

PK - Primary Key

NN - Not Null

BIN - Binary (stores data as binary strings. There is no character set so sorting and comparison is based on the numeric values of the bytes in the values.)

UN - Unsigned (non-negative numbers only. so if the range is -500 to 500, instead its 0 - 1000, the range is the same but it starts at 0)

UQ - Create/remove Unique Key

ZF - Zero-Filled (if the length is 5 like INT(5) then every field is filled with 0’s to the 5th digit. 12 = 00012, 400 = 00400, etc. )

AI - Auto Increment

G - Generated column. i.e. value generated by a formula based on the other columns

'DB > MYSQL' 카테고리의 다른 글

[ MYSQL ] 컬럼 구조 확인  (0) 2021.11.17
[ MYSQL ] DATETIME Null값 체크  (0) 2021.10.21
[ MYSQL ] WHERE 를 통한 DELETE 안될때  (0) 2021.09.25
[ MYSQL ] 테이블 복제  (0) 2021.09.07
[ MYSQL ] 시간관련 쿼리  (0) 2021.08.20