MySQL常用数据类型

整数: 
tinyint
smallint
int
bigint

浮点数:
float(p, s) 4字节
double(p, s)8字节

定点数:
deciml(p, s) p代表小数点, s代表位数

日期时间
date
time
datetime

文本
char 确定长度
varchar 不确定长度
text 大文本,无限长,不能以text作为查询条件

二进制
bit

原文地址:https://www.cnblogs.com/themost/p/7623463.html