Learn DBMS and MySQL

Our tutorial provides basic and advance concepts of database management and MySQL commands with detailed examples

DBMS Introduction
MySQL Database
MySQL Tables
MySQL Queries
MySQL Clauses
MySQL Conditions
MySQL Keys

MySQL NOT EQUAL Operator

MySQL Not Equal is an inequality operator that used for returning a set of rows after comparing two expressions that are not equal. The MySQL contains two types of Not Equal operator, which are (< >) and (! =).

Difference Between (< >) and (! =) Operator

The Not Equal operators in MySQL works the same to perform an inequality test between two expressions. They always give the same result. However, they contain one difference that “< >” follows the ISO standard whereas “!=” does not follow ISO standard.

Let us understand it by this table example :

If you want to get the name of people who do not belong to Haryana, then you need to execute the following command:

Or you can do like this :

Let's move on to use of IS NULL in MySQL


Share this page on :