Re: date function problem

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: date function problem
Дата
Msg-id 401FC647.4090505@klaster.net
обсуждение исходный текст
Ответ на date function problem  (mohan@physics.gmu.edu)
Список pgsql-sql
Dnia 2004-02-03 16:51, Użytkownik mohan@physics.gmu.edu napisał:
> Hi All
> I have an expiration_date column in my table with data type as timestamp.
> I need to set that as one year after the current time. how do i do that. I
> am getting a casting problem whenever i try something.
> 
> something like now()+ 1 year. Please let me know

now()+'1 year'::interval

I suggest you reading more about interval datatype in documentation.

Regards,
Tomasz Myrta


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Sometimes referential integrity seems not to work
Следующее
От: arun raj
Дата:
Сообщение: request to plsql tutorial