如下两张表
table A
field id
field name
table B
field id
filed my_name
执行连表update语句
UPDATE A a, B b SET a.name = b.my_name WHERE a.id = b.id
本文出自 “quietboy's blog” 博客,请务必保留此出处http://quietboy.blog.51cto.com/6711298/1545444
原文地址:http://quietboy.blog.51cto.com/6711298/1545444