Oracle 5.0 Reference Manual page 895

Table of Contents

Advertisement

Name
[878]
IN()
[879]
INTERVAL()
[877]
IS NOT NULL
[876]
IS NOT
[877]
IS NULL
[876]
IS
[879]
ISNULL()
[879]
LEAST()
[876]
<=
[876]
<
[896]
LIKE
NOT BETWEEN ... AND ...
[876]
!=,
<>
[879]
NOT IN()
[898]
NOT LIKE
[898]
STRCMP()
Comparison operations result in a value of
both numbers and strings. Strings are automatically converted to numbers and numbers to strings as
necessary.
The following relational comparison operators can be used to compare not only scalar operands, but
row operands:
=
>
<
>=
<=
<>
!=
For examples of row comparisons, see
Some of the functions in this section (such as
values other than
(TRUE),
1
comparison operations performed according to the rules described in
in Expression
Evaluation".
To convert a value to a specific type for comparison purposes, you can use the
function. String values can be converted to a different character set using
Section 12.10, "Cast Functions and
By default, string comparisons are not case sensitive and use the current character set. The default is
(cp1252 West European), which also works well for English.
latin1
[875]
=
Equal:
mysql>
SELECT 1 = 0;
-> 0
mysql>
SELECT '0' = 0;
-> 1
mysql>
SELECT '0.0' = 0;
-> 1
mysql>
SELECT '0.01' = 0;
-> 0
Comparison Functions and Operators
Description
Check whether a value is within a set of values
Return the index of the argument that is less than the first
argument
NOT NULL value test
Test a value against a boolean
NULL value test
Test a value against a boolean
Test whether the argument is NULL
Return the smallest argument
Less than or equal operator
Less than operator
Simple pattern matching
[878]
Check whether a value is not within a range of values
Not equal operator
Check whether a value is not within a set of values
Negation of simple pattern matching
Compare two strings
(TRUE),
1
Section 13.2.9.5, "Row
LEAST()
(FALSE), or NULL. However, the value they return is based on
0
Operators".
875
(FALSE), or NULL. These operations work for
0
Subqueries".
[879]
and
GREATEST()
Section 12.2, "Type Conversion
CONVERT()
[878]) return
[948]
CAST()
[948]. See

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents