2、mysql的一般数据类型

int:整形

double/float:浮点型

char:char(10) 固定长度字符窜

Varchar:varchar(10) 可变长度字符窜

text:大文本类型

blob:字节类型,多用于存储图片

date:日期格式,为yyy-MM-dd

time:时间类型,格式为:hh:mm:ss

timestamp:时间类型yyy-MM-dd-hh:mm:ss 会自动赋值

datetime: 日期时间类型 yyy-MM-dd hh:MM:ss

猜你喜欢

转载自blog.csdn.net/qq_36327687/article/details/84870465