ID EN
Comparison Functions and Operators

<

MySQL 8.4

Less than:

Syntax

MYSQL
SELECT 2 < 2;
0

Examples

Example

For row comparisons, (a, b) < (x, y) is equivalent to:

MYSQL
SELECT 2 < 2;
0
Example 2
MYSQL
(a < x) OR ((a = x) AND (b < y))