34,594
社区成员
发帖
与我相关
我的任务
分享
--测试数据
if not object_id(N'Tempdb..#T') is null
drop table #T
Go
Create table #T([y] int,[m] int)
Insert #T
select 1,0 union all
select 2,0 union all
select 3,0
Go
--测试数据结束
update #t set m = y
--查看结果
select * from #t