IS NULL and IS NOT NULL tutorial in php
SELECT with IS NULL Syntax :
SELECT column1, column2, column3...FROM table_name WHERE column IS NULL;
SELECT with IS NOT NULL Syntax :
SELECT column1, column2, column3...FROM table_name WHERE column IS NOT NULL;
If we want to select records which is NULL from table name "personal" using IS NULL as shown below sql query :
All the black records which is present the table must be NULL instead of Blank record.
SELECT * FROM personal WHERE gender IS NULL;
Comments
Post a Comment