Re: What is the syntax for setting a default date in PostgreSQL?

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: What is the syntax for setting a default date in PostgreSQL?
Дата
Msg-id 43F9A441.6030202@magproductions.nl
обсуждение исходный текст
Ответ на What is the syntax for setting a default date in PostgreSQL?  (Frank Church <pgsql@adontendev.net>)
Список pgsql-general
Frank Church wrote:
> This issue always stumps me. I need to set the default date for a column in
> postgres. A value for today, today + x days, now (timestamp), now + x amount of
> days.

CURRENT_DATE, CURRENT_DATE + x, now(), now() + 'x days'::interval are a
few options.

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

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

Предыдущее
От: Frank Church
Дата:
Сообщение: What is the syntax for setting a default date in PostgreSQL?
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: psql Copy question