SQL IS NULL sleutelwoord
IS NULL
Die IS NULL
opdrag word gebruik om te toets vir leë waardes (NULL-waardes).
Die volgende SQL lys alle kliënte met 'n NULL waarde in die "Adres" veld:
Voorbeeld
SELECT CustomerName, ContactName, Address
FROM Customers
WHERE Address
IS NULL;
Let wel: 'n NULL-waarde verskil van 'n nulwaarde of 'n veld wat spasies bevat. 'n Veld met 'n NULL-waarde is een wat leeg gelaat is tydens rekordskepping!
Wenk: Gebruik altyd IS NULL om NULL-waardes te soek.