利用insertd查出更新记录
作者:互联网
DROP TABLE #table
CREATE TABLE #table(CompanyID VARCHAR(20),BillNo VARCHAR(40))
UPDATE dbo.SD_Inv_MoveReqMaster SET WmsStatus=1
OUTPUT Inserted.CompanyID,Inserted.BillNo INTO #table(CompanyID,BillNo)
WHERE CompanyID='L102' AND BillNo='IR190311L10236-003' AND WmsStatus=1 AND BillStatus=4
SELECT * FROM #table
标签:BillNo,VARCHAR,CompanyID,更新,insertd,查出,WmsStatus,table,TABLE 来源: https://www.cnblogs.com/wangdrama/p/10734409.html