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?
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)
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!