Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why not (1,2)=(1,2)?

730428Dec 17 2009 — edited Dec 18 2009
Hi guys,

can someone explain why this syntax is incorrect?
SQL> select 1 from dual where (1,2)=(1,2);
select 1 from dual where (1,2)=(1,2)
                               *
ERRORE alla riga 1:
ORA-00920: operatore relazionale non valido
while the following one is correct?
SQL> select 1 from dual where (1,2) in ((1,2));

         1
----------
         1
Thanks,
Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2010
Added on Dec 17 2009
7 comments
783 views