mysql-笔记-数据类型

https://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html

serial: SERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE.

zerofill:如果指定numeric 列指定为 zerofill ,自动为非符号列 If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column.

bool Boolean 与tinyint(1)同,0 为 false ,非0为true; 但是 true=1 ,false=0

These types are synonyms for tinyint(1). A value of zero is considered false. Nonzero values are considered true

bigint 列不能超过:9223372036854775807

猜你喜欢

转载自www.cnblogs.com/caojuansh/p/10412406.html