I'm working on a project, I would like to know the difference between using is not null
or <> null
in Mysql.
Why should we use IS NOT NULL
instead of <> NULL
? For when I do as in the second case, no results are found.
Example
Select * from table where name is not NUll;
select * from table where name <> NUll;