mysql中mod()和%比,哪个的效率高?为什么?
mod()
二者只是语法不同而已,实际上是等效的,性能差异可以忽略不计 https://database.guide/mysql-mod-function-perform-a-modulo-operation-in-mysql/