Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
PostgreSQL 9.4.1 Documentation
PrevUpChapter 9. Functions and OperatorsNext

9.1. Logical Operators

The usual logical operators are available:

AND
OR
NOT

SQL uses a three-valued logic system with true, false, andnull, which represents"unknown". Observe the following truth tables:

aba ANDba ORb
TRUETRUETRUETRUE
TRUEFALSEFALSETRUE
TRUENULLNULLTRUE
FALSEFALSEFALSEFALSE
FALSENULLFALSENULL
NULLNULLNULLNULL

aNOTa
TRUEFALSE
FALSETRUE
NULLNULL

The operatorsAND andOR are commutative, that is, you can switch the left and right operand without affecting the result. But seeSection 4.2.14 for more information about the order of evaluation of subexpressions.


PrevHomeNext
Functions and OperatorsUpComparison Operators
Go to PostgreSQL 9.4
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp