当要添加的字段属于整型,需要设置默认值

MySql数据库设计表添加字段

或者:

alter table fp_user_base add hasPwd tinyint(4) not null default 0;

 

相关文章:

  • 2022-12-23
  • 2021-11-18
  • 2021-12-05
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-10-06
  • 2021-08-19
  • 2021-07-14
  • 2021-11-18
  • 2021-11-30
相关资源
相似解决方案