Oracle 5.0 Reference Manual page 899

Table of Contents

Advertisement

expr NOT IN (value,...)
This is the same as
NOT (expr IN
[879]
ISNULL(expr)
If
is NULL,
expr
ISNULL()
mysql>
SELECT ISNULL(1+1);
-> 0
mysql>
SELECT ISNULL(1/0);
-> 1
[879]
can be used instead of
ISNULL()
value to
using
NULL
The
[879]
ISNULL()
comparison operator. See the description of
INTERVAL(N,N1,N2,N3,...)
Returns
if
< N1,
0
N
1
is required that
<
N1
search is used (very fast).
mysql>
SELECT INTERVAL(23, 1, 15, 17, 30, 44, 200);
-> 3
mysql>
SELECT INTERVAL(10, 1, 10, 100, 1000);
-> 2
mysql>
SELECT INTERVAL(22, 23, 30, 44, 200);
-> 0
LEAST(value1,value2,...)
With two or more arguments, returns the smallest (minimum-valued) argument. The arguments are
compared using the following rules:
• If the return value is used in an
compared as integers.
• If the return value is used in a
as reals.
• If the arguments comprise a mix of numbers and strings, they are compared as numbers.
• If any argument is a nonbinary (character) string, the arguments are compared as nonbinary
strings.
• In all other cases, the arguments are compared as binary strings.
Before MySQL 5.0.13,
returns
if any argument is NULL.
NULL
mysql>
SELECT LEAST(2,0);
-> 0
mysql>
SELECT LEAST(34.0,3.0,5.0,767.0);
-> 3.0
mysql>
SELECT LEAST('B','A','C');
-> 'A'
Note that the preceding conversion rules can produce strange results in some borderline cases:
mysql>
SELECT CAST(LEAST(3600, 9223372036854775808.0) as SIGNED);
-> -9223372036854775808
Comparison Functions and Operators
[879]
(value,...)).
[879]
returns 1, otherwise it returns 0.
[875]
=
[875]
always yields false.)
=
function shares some special behaviors with the
[879]
if
<
and so on or
N
N2
<
<
<
for this function to work correctly. This is because a binary
N2
N3
...
Nn
[879]
INTEGER
context or all arguments are real-valued, they are compared
REAL
[879]
returns
LEAST()
879
to test whether a value is NULL. (Comparing a
[877].
IS NULL
if
is NULL. All arguments are treated as integers. It
-1
N
context or all arguments are integer-valued, they are
only if all arguments are NULL. As of 5.0.13, it
NULL
[877]
IS NULL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents