Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

MINUTES function [Date and time] Next Page

MOD function [Numeric]

Returns the remainder when one whole number is divided by another.


MOD( dividend, divisor )


dividend    The dividend, or numerator of the division.

divisor    The divisor, or denominator of the division.


Division involving a negative dividend gives a negative or zero result. The sign of the divisor has no effect.

See also
Standards and compatibility

The following statement returns the value 2.

SELECT MOD( 5, 3 );