|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: MOD
Definition: MOD(x,y) The remainder will be returned when 'x' is divided by 'y' The mod function will return x if y is 0. If y = 0, it returns x. Example Usage: The SQL below returns the remainder when 10 is divided by 3 (leaving '1'). SQL> SELECT MOD(10,3) RES FROM DUAL; The SQL below shows a case where the dividend is less than the divisor. SQL> SELECT MOD(3,10) RES FROM DUAL; Related Links:
Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2024 psoug.org |