这里有一个类似的问题,但我的疑问略有不同:
select *
from process a inner join subprocess b on a.id=b.id and a.field=true
and b.field=true
Run Code Online (Sandbox Code Playgroud)
那么,在使用 时inner join,哪个操作先出现:连接还是a.field=true条件?
由于这两个表非常大,我的目标是process首先过滤表,然后仅连接用 table 过滤的行subprocess。
哪种方法是最好的?