---
title: "BOOLEAN data types"
url: "https://docs.yugabyte.com/stable/api/ysql/datatypes/type_bool/"
---

# BOOLEAN data types

Use the BOOLEAN data type to represent three different states - TRUE, FALSE, or NULL.

## Synopsis

The `BOOLEAN` data type represents three different states: `TRUE`, `FALSE`, or `NULL`.

## Description

```ebnf
type_specification ::= { BOOLEAN | BOOL }
literal ::= { TRUE | true | 't' | 'y' | 'yes' | 'on' | 1 |
              FALSE | false | 'f' | 'n' | 'no' | 'off' | 0 }
```
