2013-12-12 86 views

回答

1
DECLARE @T TABLE (Status INT) 

UPDATE A 
SET STATUS = 5 
OUTPUT inserted.STATUS INTO @T(Status) 
FROM TABLEA A INNER JOIN TABLEB B 
ON A.EMAIL = B.VALUE 

SELECT * FROM @T 
+1

也可以使用以下:UPDATE TOP(10)TABLEA SET STATUS = 5 OUTPUT插入*,B.blabla FROM TABLEA甲 INNER JOIN TABLEB乙 ON A.EMAIL = B.VALUE。 – user1029829