mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
436 B
436 B
Checking Inequality
In most languages there is a != operator for checking inequality of two
things.
Postgres also supports the synonymous <> operator for checking inequality.
> select 1 <> 1;
?column?
----------
f
> select true <> false;
?column?
----------
t
> select 'taco' <> 'burrito';
?column?
----------
t
h/t Brian Dunn