Collections:
MOD() - Remainder of X divided by Y
How to calculate the remainder of X divided by Y using the MOD() function?
✍: FYIcenter.com
MOD(X, Y) is a MySQL built-in function that
calculates the remainder of X divided by Y.
For example:
SELECT MOD(253, 7), MOD(34.5, 3), MOD(2.6, 1.2); -- +-------------+--------------+---------------+ -- | MOD(253, 7) | MOD(34.5, 3) | MOD(2.6, 1.2) | -- +-------------+--------------+---------------+ -- | 1 | 1.5 | 0.2 | -- +-------------+--------------+---------------+
Reference information of the MOD() function:
MOD(X, Y): val Returns the remainder of X divided by Y. Arguments, return value and availability: X: Required. The dividend. Y: Required. The divisor. val: Return value. The remainder of the division. Available since MySQL 4.0.
⇐ MAKE_SET() - Filtering List with Binary Set
2023-11-15, 1039🔥, 0💬
Popular Posts:
What Is "mysqld" in MySQL? "mysqld" is MySQL server daemon program which runs quietly in background ...
How To Use GO Command in "sqlcmd" in SQL Server? "sqlcmd" is a command line client application to ru...
What are single-byte character string data types supported in SQL Server Transact-SQL? Single-byte c...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...