0
次の2つのクエリのどちらがパフォーマンスの点で良いか理解してください。両方のクエリで同じExplain Planコストを確認しました。PLSQL:パフォーマンスの点でどちらが良いか
1)
select tbl_LP.fn FNr, s.sourceNr SNr, Product.quantity
from tbl_Source s, tbl_LP, Product
where Product.tbl_Source_id=s.id and Product.tbl_LP_m_id=tbl_LP.id
and s.sourceNr like 'T%';
2)
Select tbl_LP.fn FNr, s.sourceNr SNr, Product.quantity
from tbl_Source s
INNER JOIN Product ON Product.tbl_Source_id=s.id AND s.sourceNr like 'T%'
INNER JOIN tbl_LP ON Product.tbl_LP_m_id=tbl_LP.id;
Explain Planが示しているとおり、パフォーマンスの観点からは同じです。それらは論理的に同一であり、異なる構文で表現されているだけです。 –