user_bind_info_yybh 为表A
kh_ydkh 为表B
下面的例子
UPDATE user_bind_info_yybh INNER JOIN (SELECT kh_ydkh.YHBH,kh_ydkh.YYHBH,kh_ydkh.FWMM FROM user_bind_info_yybh JOIN kh_ydkh ON kh_ydkh.YHBH = user_bind_info_yybh.POWER_USER_NO) t2 ON user_bind_info_yybh.POWER_USER_NO = t2.YHBH SET user_bind_info_yybh.POWER_USER_NO = t2.YYHBH,user_bind_info_yybh.POWER_PWD = t2.FWMM