MYSQL INTERVAL Function Returns with No Bigger Number



In this case, MySQL INTERVAL() function returns the index number of the last number in argument list plus 1. In other words, the last index number in the list plus 1 would be returned by this function. 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)
Updated on: 2020-06-22T06:43:37+05:30

90 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements