how do i add a number of days to now()?

Поиск
Список
Период
Сортировка
Искать
От
stig erikson
Тема
how do i add a number of days to now()?
Дата
Msg-id
do3hv7$dba$1@floppy.pyrenet.fr
Список
Дерево обсуждения
how do i add a number of days to now()? stig erikson <stigerikson_nospam_@yahoo.se>
Re: how do i add a number of days to now()? Michael Glaesemann <grzm@myrealbox.com>
hi.

i am trying to do something like:
insert into table (limitDate) VALUES( now() + 2 days);

my problem is, how do i make postgresql understand that i want to add 2 
days to the current time?

the column limitDate is of the timestamp type.

thanks
stig
В списке pgsql-novice по дате отправления
От: Stephen Simpson
Дата:
Сообщение: Error connecting to database
От: max chin
Дата:
Сообщение: Questions about server.
FAQ