-1

当我运行它时,我有一个小查询,我收到了错误。请帮我。询问:

update MozendaData set [Sub Device]=
(select [Sub Device] from oldMozendaData 
     where MozendaData.[Product Details]=oldMozendaData.[Product Details]) 
where UserID ='APAC\gsvivekanand'
4

1 回答 1

0

试试这个:

UPDATE m
SET m.[Sub Device] = o.[Sub Device] 
FROM MozendaData AS m
INNER JOIN oldMozendaData AS o ON m.[Product Details] = o.[Product Details]
WHERE m.UserID ='APAC\gsvivekanand';
于 2013-02-27T06:44:23.480 回答