MySQL與SQLServer的update left join語法區別


mysql作法:
UPDATE table A
LEFT JOIN
table B
ON
A.B_ID = B.B_ID
SET
A.A_NAME = B.B_NAME;
SQLServer作法:
update A
set A_NAME = B.B_NAME
from table A left join table B
ON
A.B_ID = B.B_IDmysql

相關文章
相關標籤/搜索