NULL-SAFE

SQL NULL-SAFE

Written by  on August 6, 2019

Liefert keine Felder zurück, wo eines oder beide Felder NULL sind:

select usr_id from usr_data where (usr_data.a != usr_data.b);

NULL-SAFE – schlägt auch an, wenn eines der Felder NULL ist:

select usr_id from usr_data where NOT (usr_data.a <=> usr_data.b);

MariaDB Doku