时间:2021-07-01 10:21:17 帮助过:25人阅读
BIT[(M)]
位域类型,M:0~64表示每个值的位数,默认为1TINYINT[(M)] [UNSIGNED] [ZEROFILL]
带符号范围:-128~127BOOL/BOOLEAN
TINYINT(1)
同义词,0为假,1为真SMALL/MEDIUMINT/INT/INTEGER/BIGINT[(M)] [UNSIGNED] [ZEROFILL]
有符号范围分别为:-32768~32767/-8388608~8388607/-2147483648~2147483647/-9223372036854775808~9223372036854775807FLOAT/DOUBLE
DATE
:日期类型,范围:1000-01-01~9999-12-31DATETIME[fsp]
:日期和时间的组合,范围:1000-01-01 00:00:00~9999-12-31 23:59:59,fsp表示精确到秒的分位数,默认为0,指精确到秒TIMESTAMP[(fsp)]
时间戳,范围:1970-01-01 00:00:00~2038-01-19 03:14:07.999999TIME/YEAR[(2/4)]
CHARACTER SET...
MySQL数据类型
标签:数值类型 sql cte 数值 ble 时间 时间戳 signed 日期类