| PostgreSQL 9.0.0 Documentation | ||||
|---|---|---|---|---|
| Prev | Fast Backward | Chapter 8. Data Types | Fast Forward | Next | 
PostgreSQL provides the standard SQL type boolean; see Table 8-19. The boolean type can have one of only two states: "true" or "false". A third state, "unknown", is represented by the SQL null value.
Valid literal values for the "true" state are:
| TRUE | 
| 't' | 
| 'true' | 
| 'y' | 
| 'yes' | 
| 'on' | 
| '1' | 
| FALSE | 
| 'f' | 
| 'false' | 
| 'n' | 
| 'no' | 
| 'off' | 
| '0' | 
Example 8-2 shows that boolean values are output using the letters t and f.