update cdb_members,'uchome.uchome_member' set cdb_members.username='uchome.uchome_member'.username where 'uchome.uchome_member'.uid=cdb_members.uid and cdb_members.uid in (select a.uid FROM `cdb_members` a, uchome.uchome_member b
WHERE a.uid = b.uid
AND a.username <> b.username
)
一开始是写成这样的 说什么错误
update cdb_members t set username=(select username from uchome.uchome_member t1 where t.uid=t1.uid) where uid in (select a.uid FROM `cdb_members` a, uchome.uchome_member b
WHERE a.uid = b.uid
AND a.username <> b.username
)