MySQL建表时,基本字段的含义
时间:2023-01-17
浏览:181
作者:佚名
在数据库实战开发的过程中,我们经常会遇到一些这样那样的问题,然后要卡好半天,等问题解决了才发现原来一些细节知识点还是没有掌握好。今天golang学习网就整理分享《MySQL建表时,基本字段的含义》,聊聊MySQL,希望可以帮助到正在努力赚钱的你。
[intrinsic column flags] (基本字段类型标识)
PK: primary key (column is part of a pk) 主键
NN: not null (column is nullable) 非空
UQ: unique (column is part of a unique key) 唯一
AI: auto increment (the column is auto incremented when rows are inserted) 自增
[additional data type flags, depend on used data type] 扩展数据类型标记
BIN: Is binary column (if data is a blob or similar, this indicates that is binary data, rather than text) 存放二进制数据的列
UN: unsigned (for integer types, see docs: “10.2. Numeric Types”) 无符号整数
ZF: Fill up values for that column with 0's if it is numeric (rather a display related flag, see docs: “10.2. Numeric Types”)填充0位(例如指定3位小数,整数18就会变成18.000)
文中关于mysql的知识介绍,希望对你的学习有所帮助!若是受益匪浅,那就动动鼠标收藏这篇《MySQL建表时,基本字段的含义》文章吧,也可关注golang学习网公众号了解相关技术文章。
本文内容来源于互联网,如有侵权请联系删除。
近期热门
站内热门
最新文章
热门专题
