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`)
2022-10-01 16:01:35
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`)