MySql怎么给列设置默认值 mysql修改默认值

如题所述

1、建表时指定,如 create table test ( id int default 0; ) 2、已经建表的需要修改列属性,如 create table test ( id int ; ) 修改如下: alter table test change id id int default 0;
温馨提示:答案为网友推荐,仅供参考
相似回答