小编Yos*_*mit的帖子

在内连接条件之前过滤表

这里有一个类似的问题,但我的疑问略有不同:

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

哪种方法是最好的?

sql join predicate inner-join where-clause

2
推荐指数
1
解决办法
9274
查看次数

标签 统计

inner-join ×1

join ×1

predicate ×1

sql ×1

where-clause ×1