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_ID

posted @ 2016-03-21 11:54  王八一瓶子  阅读(376)  评论(0编辑  收藏  举报