1
I’m trying to build a Query but they’re not succeeding, in my database I have 28 information with code 32, and 62 information with code 23, but there is information with null code, and I wanted to bring them all together, the problem is that when I try to fetch the result by throwing the codes in the WHERE tag the query comes empty.
Example:
SELECT * FROM tabela WHERE campo IN (23, 32, NULL);
I tried that way too:
SELECT * FROM tabela WHERE campo IN (23, 32) AND campo IS NULL;
Someone would have a solution ?
SELECT * FROM tabela WHERE campo IN (23, 32) OR campo IS NULL
, have tried?– Marconi
Yes, in that case I only brought the nulls and I didn’t bring the fields with 23 and 32 together... I need you to bring the nulls and those with code 23 and 32.
– Lucas Lima