INTERVAL() function in mysql -


select interval (33, 5, 10, 15, 25, 27, 34); 

this query give result 5, because immediate highest value 33 found 34 @ index 5.

select interval (33, 5, 10, 15, 25, 27, 33);  

this query giving result 6.is right answer ? since there no integer greater 33 in list , giving highest index+1 result or other logic missing?

please me out! thanks


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -