sql:update + join

UPDATE tablea a
JOIN tableb b
SET a.val = b.val
WHERE b.id = a.id

posted @ 2017-01-18 16:00  胡一生  阅读(2372)  评论(3)    收藏  举报