December 15th, 2008

MOD (division remainder)

The MOD function returns the remainder of a dividend divided by a divisor.
Format:                        MOD(dividend, divisor)

Example:           SELECT MOD(10, 7) FROM TABLEA;

Result:

                   

> Access, DB2, MySQL, PostgreSQL, SQL Server, and Sybase support the MOD function.

Comments are closed.

Sorry, the comment form is closed at this time.