Re: interval +variable

Поиск
Список
Период
Сортировка
Искать
От
Bruno Wolff III
Тема
Re: interval +variable
Дата
Msg-id
20050309141908.GA32013@wolff.to
Ответ на
interval +variable (Fatih Cerit)
Список
Дерево обсуждения
Re: interval +variable "ALÝ ÇELÝK" <ali@verus.com.tr>
On Wed, Mar 09, 2005 at 10:58:05 +0200, Fatih Cerit  wrote:
> Dear all
> 
> Is there anyone at there who knows howto use dateadd in pgsql. I have a 
> problem in my function that is like this ;
> 
> Select into futuredate now() + interval '30 days';  <- this is ok
> but how can I use a variable intead of '30 days'    :(

A better solution may to be to use the date type instead of the timestamp type.
Then you can just add an integer number to the date. You also don't have
to worry about daylight savings time changes.

В списке pgsql-sql по дате отправления
От: lucas@presserv.org
Дата:
Сообщение: Table like a field
От: Bruno Wolff III
Дата:
Сообщение: Re: order by question
FAQ