MySql数据库设计表添加字段

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

或者:

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

 

posted @ 2018-04-17 16:29  如果屈原会编程  阅读(237)  评论(0编辑  收藏  举报