Javatpoint Logo
Javatpoint Logo

MySQL NOT Condition

The MySQL NOT condition is opposite of MySQL IN condition. It is used to negate a condition in a SELECT, INSERT, UPDATE or DELETE statement.

Syntax:

Parameter

condition: It specifies the conditions that you want to negate.

MySQL NOT Operator with IN condition

Consider a table "officers", having the following data.

MySQL NOT Condition

Execute the following query:

Output:

MySQL NOT Condition

MySQL NOT Operator with IS NULL condition:

Execute the following query:

Output:

MySQL NOT Condition

MySQL NOT Operator with LIKE condition:

We are taking the same table "officer" for this operation also:

Execute the following query:

Output:

MySQL NOT Condition

MySQL NOT Operator with BETWEEN condition:

We are taking the same table "officer" for this operation also:

Execute the following query:

Output:

MySQL NOT Condition
Next TopicMySQL Not Equal





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA