Re: [SQL] Another Date question

From: Stoyan Genov <genov(at)digsys(dot)bg>
To: Andy Lewis <alewis(at)roundnoon(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Another Date question
Date: 1999-12-03 08:32:38
Message-ID: 199912030832.KAA19606@lorna.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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() +(at)60 days',
> ...
>
> Doesn't seem to work.
>
> What am I missing?
>
> Thanks
>
> Andy
>
>
> ************
>

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 1999-12-03 10:01:26 Re: [SQL] PL/PgSQL: selects into strings
Previous Message Bruce Momjian 1999-12-03 07:56:27 Re: [SQL] the book and sql92