Re: logical fields with defaults

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: logical fields with defaults
Дата
Msg-id 1409360422717-5816994.post@n5.nabble.com
обсуждение исходный текст
Ответ на logical fields with defaults  (Jude DaShiell <jdashiel@panix.com>)
Список pgsql-novice
Jude DaShiell wrote
> How would one do a statement in a create table structure such that a
> logical field was defined with a default value a user could change with
> populating that table?

Not syntax checked, look at the create table documentation if it doesn't
work...

CREATE TABLE tbl (
bool_field Boolean DEFAULT true
);

Insert into tbl (bool_field) values (false);

David J.



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/logical-fields-with-defaults-tp5816951p5816994.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


В списке pgsql-novice по дате отправления:

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: Join three tables and specify criteria... I know this should be easy!
Следующее
От: Jude DaShiell
Дата:
Сообщение: Re: weekdays display in postgresql