"AND"和“&&"之间的区别在SQL中 [英] The difference between 'AND' and '&&' in SQL

查看:191
本文介绍了"AND"和“&&"之间的区别在SQL中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL解释逻辑运算符AND&&的方式是否有所不同?

Is there a difference in the way SQL interprets the logical operators AND and &&?

推荐答案

对于mySQL:

For mySQL: The manual is not saying it explicitly, but they are listed as identical:

AND,&&

逻辑与.如果所有操作数都不为零且不为NULL,则计算为1;如果一个或多个操作数为0,则计算为0,否则返回NULL.

Logical AND. Evaluates to 1 if all operands are nonzero and not NULL, to 0 if one or more operands are 0, otherwise NULL is returned.

运算符优先级页面也没有区别

这篇关于"AND"和“&&"之间的区别在SQL中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆