Thread SQL: != oder <>? (6 answers)
Opened by Kuerbis at 2023-08-07 09:38

haj
 2023-08-07 14:10
#195224 #195224
User since
2015-01-07
561 Artikel
BenutzerIn

user image
Ich verwende <>, weil ich's so gelernt habe und ein Gewohnheitstier bin. Alle Datenbanken, mit denen ich je zu tun hatte, verstehen aber auch !=.

PostgreSQL beschreibt das so:

Quote
Note

<> is the standard SQL notation for “not equal”. != is an alias, which is converted to <> at a very early stage of parsing. Hence, it is not possible to implement != and <> operators that do different things.

View full thread SQL: != oder <>?