mr-wuxiansheng
例如:
修改表expert_info中的字段birth,允许其为空
>alter table expert_info change birth birth varchar(20) null;

 

 

例如:
修改表user10中的字段test,不能为空,默认为123
ALTER TABLE user10 MODIFY test CHAR(32) NOT NULL DEFAULT \'123\';

 

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2022-02-09
  • 2021-06-17
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-11-28
  • 2022-02-09
  • 2021-12-08
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案