Anda dapat menggunakan tes sederhana ini:
WHERE (requires = 'privacy-weight' AND privacy-weight = 0) OR requires <> 'privacy-weight' OR requires IS NULL
Bagian pertama (requires = 'privacy-weight' AND privacy-weight = 0)
mencegah keluaran dari:
privacy-weight | requires
-------------------------
1 | privacy-weight
Tapi tetap:
privacy-weight | requires
-------------------------
0 | privacy-weight
Sedangkan bagian kedua OR requires <> 'privacy-weight' OR requires IS NULL
akan menyimpan yang berikut:
privacy-weight | requires
-------------------------
0 | NULL
1 | NULL
1 | NULL