有两个表A和B, A表的内容是 id=67,tops=600 id=68,tops=522这两条数据,B表的内容是id=68,tops=566 想实现的是把A表中和B表ID相同的项的数据更新为B表中对应ID的项的数据 得到新的A表 id=67,tops=600 id=68,tops=566
然后我执行了下面这条语句db.execSQL("UPDATE A set tops = (select tops from B where id in(select id from B))");得到的结果却是 id=67,tops=566,id=68,tops=566 这样的!请问正确的更新语句要怎么写?