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

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

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 17:37

    If you're working with PostgreSQL, '&&' means overlap (have elements in common):

    example: ARRAY[1,4,3] && ARRAY[2,1]

    https://www.postgresql.org/docs/9.1/static/functions-array.html

提交回复
热议问题