作用与分类:
枚举enum,多选一个
集合set,多选多


测试

create table teacher(
id int,
name char(16),
sex enum('male','female','others'),
hobbies set('play','read','music','piao') #set集合多选多 要选多个的时候要用逗号隔开
);

如:
insert into teacher values(2,'alex','others','piao,play,read');#这就是选择了制作的表中的枚举和集合的例子,
集合是多选的就用了逗号隔开

相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2021-12-06
  • 2021-05-11
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-05-16
  • 2022-01-09
  • 2022-12-23
  • 2021-07-11
  • 2021-04-06
  • 2022-01-26
  • 2022-02-18
相关资源
相似解决方案