The difference between 'AND' and '&&' in SQL

前端 未结 4 1505
日久生厌
日久生厌 2020-12-03 16:55

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

4条回答
  •  生来不讨喜
    2020-12-03 17:45

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

    AND, &&

    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.

    The operator precedence page also makes no distiction.

提交回复
热议问题