UPDATE DB1.A SET a = ( SELECT b FROM DB2.B WHERE B.Id = A.id)
实例:
UPDATE wordpress.`wp_posts` SET post_content = ( SELECT `内容` FROM test.`content` WHERE content.Id = wp_posts.`ID`)
UPDATE DB1.A SET a = ( SELECT b FROM DB2.B WHERE B.Id = A.id)
实例:
UPDATE wordpress.`wp_posts` SET post_content = ( SELECT `内容` FROM test.`content` WHERE content.Id = wp_posts.`ID`)