logoalt Hacker News

codesniktoday at 4:04 AM1 replyview on HN

aren't they the same in Postgres?


Replies

frollogastontoday at 5:13 AM

Yes, according to the manual, IN is equivalent to = ANY() https://www.postgresql.org/docs/current/functions-subquery.h...

I had to check because for some reason, I always thought =ANY was somehow better than IN.

show 3 replies