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, 1781🔥, 0💬
Popular Posts:
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How To Convert a Unicode Strings to Non-Unicode Strings in SQL Server Transact-SQL? Since Unicode ch...
How To Fix the INSERT Command Denied Error in MySQL? The reason for getting the "1142: INSERT comman...
Where Is the Export Dump File Located in Oracle? If you are not specifying the dump directory and fi...
What Happens to an Arithmetic Operation with Two Different Data Types in SQL Server Transact-SQL? Wh...