Home > Database > Mysql Tutorial > What does the MYSQL INTERVAL() function return if there is no number in the parameter list that is greater than the number of the first parameter?

What does the MYSQL INTERVAL() function return if there is no number in the parameter list that is greater than the number of the first parameter?

王林
Release: 2023-08-25 11:37:04
forward
1265 people have browsed it

如果参数列表中没有比第一个参数的数字更大的数字,那么 MYSQL INTERVAL() 函数返回什么?

In this case, the MySQL INTERVAL() function returns the index number of the last number in the parameter list plus 1. In other words, adding 1 to the last index number in the list will return this function. The following example will demonstrate it -

mysql> Select INTERVAL(50,20,32,38,40);
+--------------------------+
| INTERVAL(50,20,32,38,40) |
+--------------------------+
| 4                        |
+--------------------------+
1 row in set (0.00 sec)
Copy after login

The above is the detailed content of What does the MYSQL INTERVAL() function return if there is no number in the parameter list that is greater than the number of the first parameter?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template