Home >Database >Mysql Tutorial >In MySQL, what is the priority of !? Does operator compared to NOT operator depend on HIGH_NOT_PRECEDENCE SQL mode?

In MySQL, what is the priority of !? Does operator compared to NOT operator depend on HIGH_NOT_PRECEDENCE SQL mode?

PHPz
PHPzforward
2023-09-09 10:25:061015browse

在MySQL中,!的优先级如何?与 NOT 运算符相比的运算符取决于 HIGH_NOT_PRECEDENCE SQL 模式吗?

In MySQL, basically! Operator compared to NOT operator depends on enabling or disabling HIGH_NOT_PRECEDENCE SQL mode as shown below -

  • Disable HIGH_NOT_PRECEDENCE SQL - In this case, the ! operator has higher precedence than the NOT operator.
  • Enable HIGH_NOT_PRECEDENCE SQL - In this case, the ! operator has the same precedence as the NOT operator.

The above is the detailed content of In MySQL, what is the priority of !? Does operator compared to NOT operator depend on HIGH_NOT_PRECEDENCE SQL mode?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete