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

Popular posts from this blog

Logical_Operators

SubQuery with EXISTS and NOT EXISTS in PHP

Get Functions