Created
October 16, 2013 02:09
-
-
Save weilu/7001592 to your computer and use it in GitHub Desktop.
PostgreSQL NULL comparison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=# select (1!=1); | |
?column? | |
---------- | |
f | |
(1 row) | |
=# select (1=1); | |
?column? | |
---------- | |
t | |
(1 row) | |
=# select (NULL=NULL); | |
?column? | |
---------- | |
(1 row) | |
=# select (NULL!=NULL); | |
?column? | |
---------- | |
(1 row) | |
=# select (NULL is NOT NULL); | |
?column? | |
---------- | |
f | |
(1 row) | |
=# select (NULL is NULL); | |
?column? | |
---------- | |
t | |
(1 row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment