ID EN
Comparison Functions and Operators

<>

MySQL 8.4 🇮🇩 Bahasa Indonesia

, !=

Syntax

MYSQL
SELECT '.01' <> '0.01';
1
SELECT .01 <> '0.01';
0
SELECT 'zapp' <> 'zappp';
1

Contoh

Example

Not equal:

MYSQL
SELECT '.01' <> '0.01';
1
SELECT .01 <> '0.01';
0
SELECT 'zapp' <> 'zappp';
1
Example 2

For row comparisons, (a, b) (x, y) and (a, b) != (x, y) are equivalent to:

MYSQL
(a <> x) OR (b <> y)