Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
i have data like this
ID Nu name 1 234 asd 2 566 asd 3 - sdf 4 356 sd 5 NULL sfsg
now how to get all data with - and null values
where nu is null or nu = '-'
NULL
select * from table_name;
this will give you all the data with - and null value
if you want to fetch only the data where nu is null and - use this:
-
select * from table_name where nu is null or nu = '-';
I think this should help.
Add a comment
select * from table_name where Nu is null or Nu='-'
To get all the info from the table you can use the following query:
To filter by null and dash values, try the where clause:
select * from table_name where nu is null; UNION ALL select * from table_name where nu = '-';
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
where nu is null or nu = '-'NULLis not a value - it's the absence of a value ....