@deron
To insert a boolean value into a table in PostgreSQL, you can use the following syntax:
1
|
INSERT INTO table_name (boolean_column) VALUES (true); |
In this syntax:
For example, if you have a table named "users" with a column named "active" that has a boolean data type, you can insert a true boolean value like this:
1
|
INSERT INTO users (active) VALUES (true); |
This will insert a row into the "users" table with the "active" column set to true.