Топ-100
 

MOD

База данных: MySQL
Текст

Syntax:
MOD(N,M), N % M, N MOD M

Modulo operation. Returns the remainder of N divided by M.

URL: https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html

Пример

mysql> SELECT MOD(234, 10);
-> 4
mysql> SELECT 253 % 7;
-> 1
mysql> SELECT MOD(29,9);
-> 2
mysql> SELECT 29 MOD 9;
-> 2