Popular Tutorials
HTML
View allJavaScript
View allPage Index
Popular Tutorials
HTML
View allJavaScript
View allPopular Exercises
Page Index
MySQL EXISTS Operator
The EXISTS operator in MySQL is a type of Boolean operator which returns the true or false result. It is used in combination with a subquery and checks the existence of data in a subquery.
It means if a subquery returns any record, this operator returns true. Otherwise, it will return false. The true value is always represented numeric value 1, and the false value represents 0. We can use it with SELECT, UPDATE, DELETE, INSERT statement.
The following are the syntax to use the EXISTS operator in MySQL:
SELECT col_names FROM tab_name WHERE [NOT] EXISTS ( SELECT col_names FROM tab_name WHERE condition );
Let's move on to use of NOT in MySQL
Share this page on :
© 2022 AnalyzeCode.com All rights reserved.