向表添加两个字段并设置其默认值:

use bserp(数据库名)
alter table up_SendLogMain(表名) add 
sendType(添加的字段名1) int(类型) default 1 with values,
autoCancelDetainId(添加的字段名2) uniqueidentifier(类型) default '00000000-0000-0000-0000-000000000000' with values;

猜你喜欢

转载自www.cnblogs.com/fzqm-lwz/p/11656729.html