时间:2021-07-01 10:21:17 帮助过:22人阅读
BIT(M):M 取值 1 — 64,默认为1 。
TINYINT[(M)] [UNSIGNED] [ZEROFILL],signed 取值:-128到127,unsigned 取值:0到255 。
BOOL, BOOLEAN:布尔类型,此类型跟 TINYINT(1)的同义。 值为0被认为是错误的,非0值被认为是正确的。TRUE=1 and FALSE=0,其他值既不等于true也不等于false。
SMALLINT[(M)] [UNSIGNED] [ZEROFILL]
MEDIUMINT[(M)] [UNSIGNED] [ZEROFILL]
INT[(M)] [UNSIGNED] [ZEROFILL]
INTEGER[(M)] [UNSIGNED] [ZEROFILL]
BIGINT[(M)] [UNSIGNED] [ZEROFILL]
DECIMAL[(M[,D])] [UNSIGNED] [ZEROFILL]
FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]
DOUBLE[(M,D)] [UNSIGNED] [ZEROFILL]
FLOAT(p) [UNSIGNED] [ZEROFILL]
DATE The supported range is ‘1000-01-01‘ to ‘9999-12-31‘. MySQL displays DATE values in ‘YYYY-MM-DD‘ format.
DATETIME[(fsp)] fsp:fractional seconds part 秒的小数部分。The supported range is ‘1000-01-01 00:00:00.000000‘ to ‘9999-12-31 23:59:59.999999‘. MySQL displays DATETIME values in ‘YYYY-MM-DD HH:MM:SS[.fraction]‘ format
参考: 《 refman-5.7 》Chapter 12 Data Types
MySQL 数据类型
标签:and lan bsp art html 宽度 def medium dev