SQL優化-關聯查詢不要用not in

首先,我們看not in寫法及執行計劃 SELECT count(*)   FROM test t1  WHERE  1234          NOT IN (SELECT t2.object_id                    FROM test  t2                   WHERE t1.owner = t2.owner                       
相關文章
相關標籤/搜索