niuniu0108

如果表已经存在,用如下方法设置默认值。

alter table 表名 modify 字段名 default 默认值;

如test表中设置address字段为\'浙江省\',可用如下语句:

alter table test modify address default \'浙江省\';

分类:

技术点:

相关文章: