DELETE A
OUTPUT
DELETED.PORequestID,
DELETED.BackOrderID,
GETDATE(),
@RequestUserID,
DELETED.LastEditDate,
DELETED.LastEditUser
INTO aaa.dbo.bbb
(
PORequestID,
BackOrderID,
InDate,
InUser,
LastEditDate,
LastEditUser
)
FROM aaa.dbo.ccc AS A
INNER JOIN @TempTable AS T
ON A.BackOrderID = T.BufferID
网友评论