0% found this document useful (0 votes)
30 views1 page

Returns and On or Is Null. All As Is For Function To Work Is Is

INTERVAL(N,N1,N2,N3,...) returns an integer between 0 and n based on comparing the first argument N to a series of threshold numbers, returning -1 if N is NULL. All arguments must be integers and be in ascending order for the binary search algorithm to work correctly.

Uploaded by

Irwan Bros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

Returns and On or Is Null. All As Is For Function To Work Is Is

INTERVAL(N,N1,N2,N3,...) returns an integer between 0 and n based on comparing the first argument N to a series of threshold numbers, returning -1 if N is NULL. All arguments must be integers and be in ascending order for the binary search algorithm to work correctly.

Uploaded by

Irwan Bros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Syntax:

INTERVAL(N,N1,N2,N3,...)
Returns 0 if N < N1, 1 if N < N2 and so on or -1 if N is NULL. All
arguments are treated as integers. It is required that N1 < N2 < N3 <
... < Nn for this function to work correctly. This is because a binary
search is used (very fast).
URL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html

You might also like