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  胡一生  阅读(2354)  评论(3编辑  收藏  举报