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, 1055🔥, 0💬
Popular Posts:
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
Where to find answers to frequently asked questions I am new to Oracle database. Here is a list of f...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...