4
I have a table in a Mysql comic that has 5 fields. This would be a model query:
select * from myTable where campo1= 4 and campo2=1 and campo3 =7.
However field 3 may have null value and I would need to select or exclude combinations that involve this value.
Example1:
select * from myTable where campo1= 4 and campo2=1 and campo3 = null.
Exemplo2:
select * from myTable where campo1= 4 and campo2=1 and campo3 <> null.
The problem is that these two examples do not work.
I’ve tried to use "null"
and 'null'
but I can’t select.
Any idea?