Oracle: '= ANY()' vs. 'IN ()'
Posted
by eidylon
on Stack Overflow
See other posts from Stack Overflow
or by eidylon
Published on 2010-02-19T18:07:26Z
Indexed on
2010/05/18
2:10 UTC
Read the original article
Hit count: 337
Hi all, I just stumbled upon something in ORACLE SQL (not sure if it's in others), that I am curious about. I am asking here as a wiki, since it's hard to try to search symbols in google...
I just found that when checking a value against a set of values you can do
WHERE x = ANY (a, b, c)
As opposed to the usual
WHERE x IN (a, b, c)
So I'm curious, what is the reasoning for these two syntaxes? Is one standard and one some oddball Oracle syntax? Or are they both standard? And is there a preference of one over the other for performance reasons, or ?
Just curious what anyone can tell me about that '= ANY' syntax. CheerZ!
© Stack Overflow or respective owner