数据库脚本

数据库的管理工具大部分都可以直接产生数据库脚本,不需要你自己去编写

今天又学到一个修改某个字段的默认值

alter table "数据库名称" alter column "修改的字段" set default "默认值";

例如:

alter table `t_social_act` alter column `is_publish` set default 0;

猜你喜欢

转载自www.cnblogs.com/cuteCoderSnow/p/10487489.html