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
Release: 2023-09-09 10:25:06
forward
1001 people have browsed it

在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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template