SELECT IDENTITY(INT,1,1) AS ID ,fid INTO #ttt FROM Lab_Info_DvcDetail
update Lab_Info_DvcDetail set fvieworder = id from #ttt where #ttt.fid=Lab_Info_DvcDetail.fid
SQL修改某列内容为递增数据。(及使用表update )
最新推荐文章于 2023-06-16 16:24:53 发布
SELECT IDENTITY(INT,1,1) AS ID ,fid INTO #ttt FROM Lab_Info_DvcDetail
update Lab_Info_DvcDetail set fvieworder = id from #ttt where #ttt.fid=Lab_Info_DvcDetail.fid