sql中 in , not in , exists , not exists效率分析

sql中 in , not in , exists , not exists效率分析 分類: 數據庫 2011-06-30 16:20 in和exists執行時,in是先執行子查詢中的查詢,而後再執行主查詢。而exists查詢它是先執行主查詢,即外層表的查詢,而後再執行子查詢。sql exists 和 in 在執行時效率單從執行時間來講差很少,exists要稍微優於in。在使用時通常應該是用exi
相關文章
相關標籤/搜索