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 DECODE can only be used in sql statement

925726Oct 17 2013 — edited Oct 17 2013

Hi,

Why the sql1 works but sql2 doesn't.

sql 1 ) Select decode(1,0,0,1) into var from dual;

sql 2 ) var = decode(1,0,0,1);

Kindly clarify.

Regards,

Kishore

This post has been answered by BluShadow on Oct 17 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2013
Added on Oct 17 2013
13 comments
5,174 views