Skip to Main Content

SQL & PL/SQL

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,549 views