- 博客(1)
- 收藏
- 关注
原创 MySQL中的enum类型
enum叫枚举类型,他的值范围需要在创建表时通过枚举的方式显性指定。对于255个之内的枚举,需要一个字节存储。超出的就需要两个。create table `list`( `id` int(10) not null comment `主键`, `type` enum(`m`,`f`) default null comment `性别`,)ENGINE=InnoDB default charest=utf-8;insert into `list`(type) values ('m'),('
2022-05-27 10:43:50
923
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人