27,580
社区成员
发帖
与我相关
我的任务
分享
ALTER TABLE f ADD c INT;
GO
UPDATE f SET c=a+b
这是不是你要的效果?--测试数据
if not object_id(N'f') is null
drop table f
Go
Create table f([a] int,[b] int)
Insert f
select 1,3 union all
select 2,4
Go
--测试数据结束
Select *,a+b AS c from f