Boolean Type
Relyt supports the boolean type. The boolean type in Relyt has two states: true and false. The following table lists the accepted string representations for each state.
| true | false |
|---|---|
| true | false |
| t | f |
| yes | no |
| y | n |
| 1 | 0 |
The datetype output function for the boolean either uses t to indicate true, or f to indicate false.
Usage notes
When you write Boolean constants in your SQL queries, we recommend that you use TRUE and FALSE. You can still choose to use the string representations by employing the generic string-literal constant syntax, for example 'yes'::boolean. For more details, see Section 4.1.2.7 in the PostgreSQL documentation.