34,576
社区成员
发帖
与我相关
我的任务
分享
insert into table(a,b,c,d) select a,b,c,'xxx' from table
--添加默认值
alter table dbo.[table] add constraint df_d default 'xxxx' for d
--加入数据时
insert into table(a,b,c) select a,b,c from table
--如果不加默认值
insert into table(a,b,c,d) select a,b,c,'xxx' from table
insert into table(a,b,c,d) select a,b,c,'zhiding' from table