In MySQL Workbench table editor there are 7 column flags available: PK, NN, UQ, BIN, UN, ZF, AI.
PK obviously stands for Primary Key. What about others?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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