Re: [SQL] Another Date question

Поиск
Список
Период
Сортировка
От Stoyan Genov
Тема Re: [SQL] Another Date question
Дата
Msg-id 199912030832.KAA19606@lorna.digsys.bg
обсуждение исходный текст
Ответ на Another Date question  (Andy Lewis <alewis@roundnoon.com>)
Ответы Re: [SQL] Another Date question  (Andy Lewis <alewis@roundnoon.com>)
Список pgsql-sql
Hi,
No need of functions. You can do it like this:

CREATE TABLE mytable (mydate datetime DEFAULT now() + '@60 days');

Regards,
Stoyan Genov

> Hello All!
> 
> I'd like to create a table with a datetime field that defaults to +60
> days.
> 
> mydate datetime default 'now() +@60 days',
> ...
> 
> Doesn't seem to work.
> 
> What am I missing?
> 
> Thanks
> 
> Andy
> 
> 
> ************
> 




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] the book and sql92
Следующее
От: wieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [SQL] PL/PgSQL: selects into strings