Mysql数据类型
数据类型 | 说明 |
---|---|
int,bit | 整数 |
decimal | 小数 |
varchar,char | 字符串 |
date,time,datetime | 日期时间 |
enum | 枚举类型 |
MySQL字段约束
约束参数 | 说明 |
---|---|
primary key | 主键约束 |
not null | 非空约束 |
unique | 唯一约束 |
default | 默认约束 |
Mysql数据类型
数据类型 | 说明 |
---|---|
int,bit | 整数 |
decimal | 小数 |
varchar,char | 字符串 |
date,time,datetime | 日期时间 |
enum | 枚举类型 |
MySQL字段约束
约束参数 | 说明 |
---|---|
primary key | 主键约束 |
not null | 非空约束 |
unique | 唯一约束 |
default | 默认约束 |