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

MySql数据库设计表添加字段

或者:

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

 

相关文章: