Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
aforty
· 3y ago · 0 comments
When should you use IN instead of the OR operator?
Tl;dr;
Always.
Comments
[–]
angry__panda
3y ago
This is true for Postgres. But might not be true for other databases. For example, for MySQL, in some cases OR is faster than IN operator based on our experiments.