增加一个列名,增加一个字段

 

给表增加一个字段,此字段设置不为空且默认值为0;

alter table 表名称 add 列名称 数据类型 not null default 0

posted @ 2021-12-15 15:54  艾特-天空之海  阅读(27)  评论(0编辑  收藏  举报