SQL update 语句
select PProduceID,SUBSTRING(PProduceID,3,len(PProduceID)) from dbo.Carton_BG_PProduceInfo
where PProduceID like '2015%'
select * into Carton_BG_PProduceInfo160113 from Carton_BG_PProduceInfo
update Carton_BG_PProduceInfo set PProduceID = SUBSTRING(PProduceID,3,len(PProduceID))
where PProduceID like '2015%'
update a set a.cCusPPerson=b.cCusPPerson from testclient a,UFDATA_303_2015.dbo.Customer b
where a.cCusCode=b.cCusCode
正文到此结束
- 本文标签: 暂无相关标签
- 本文链接: https://www.jimmy2k.top/article/116
- 版权声明: 本文由JimmyZ的个人博客原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权