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.

Method to get mod (in PL/SQL)

Aketi JyuuzouOct 12 2013 — edited Oct 19 2013

There is 2 Methods to get mod (in PL/SQL)

begin

    --Method1

    DBMS_Output.Put_Line(mod(17,6));

    --Method2

    DBMS_Output.Put_Line(17 mod 6);

end;

/

My question is Which Method is better

I think Method2 is unDocumented PL/SQL Documented.

Therefore we should use Method1.

This post has been answered by Frank Kulash on Oct 12 2013
Jump to Answer

Comments

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

Post Details

Locked on Nov 16 2013
Added on Oct 12 2013
13 comments
3,849 views