Home >Database >Mysql Tutorial >mysql div除法的取模运算和 mod取余运算

mysql div除法的取模运算和 mod取余运算

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 09:56:544208browse
mysql MOD取余运算的函数
<code class="language-sql">​SELECT MOD(234, 10); </code>
结果:4

mysql div除法的取模运算
<code class="language-sql">SELECT 234 div 10; </code>
结果:2

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn