4)select * from B where exists(select id from A where id=B.id) -->效率低,用到了A表上id列的索引. 方式二:遍歷使用. 1)in()只執行一次,它查出B表中的所有id欄 ...
確定! 回上一頁