'NOT' Can Be Used With Another Operator To Combine Positive and Negative Conditions

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

'NOT' can be used with another operator to combine positive and negative conditions

mysql> SELECT * -> FROM employee -> WHERE ((employee.id = 1) -> AND (employee.city != 'Vancouver'));

'NOT' operator ('!') turns a positive into a negative


The following statement retrieves all records that do not contain 'Vancouver' as City.
mysql> SELECT * FROM employee WHERE (employee.city != 'Vancouver');

You might also like