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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Why using MOD in this manner does not show any errors?

422864Aug 27 2005 — edited Aug 27 2005
Hi,
I know that this may be funny but I use MOD function in a wrong manner such as this: 11 MOD 4 within a function.It compiled successfully without any errors.Then I recalled the right syntax: MOD(11,4) and use it and ofcourse it compiled successfully.I tried this:
select (11 mod 4) from dual;
And I got:ORA-00907: missing right parenthesis.
I surprised that why this did not throw any error within a function?Is there any other meaning or usage for MOD function that I don't know?Just curious!
-Regards

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 24 2005
Added on Aug 27 2005
3 comments
150 views