GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing www.postgresql.org — 8.6. Boolean Type November 19, 2026: PostgreSQL 19 Released!
Development Versions:
devel
8.6. Boolean TypePostgreSQL provides the standard SQL type Table 8.19. Boolean Data Type
Boolean constants can be represented in SQL queries by the SQL key words The datatype input function for type
and these representations for the “false” state:
Unique prefixes of these strings are also accepted, for example The datatype output function for type Example 8.2. Using the CREATE TABLE test1 (a boolean, b text); INSERT INTO test1 VALUES (TRUE, 'sic est'); INSERT INTO test1 VALUES (FALSE, 'non est'); SELECT * FROM test1; a | b ---+--------- t | sic est f | non est SELECT * FROM test1 WHERE a; a | b ---+--------- t | sic est The key words Note that the parser automatically understands that Submit correctionIf you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue. | ||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |