From: Andy Lewis <alewis@roundnoon.com>
To: Stoyan Genov <genov@digsys.bg>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Another Date question
Date: Fri, 3 Dec 1999 08:04:08 -0600 (CST)
Message-ID: <Pine.LNX.4.05.9912030802590.12901-100000@rns.roundnoon.com> (raw)
In-Reply-To: <199912030832.KAA19606@lorna.digsys.bg>
I knew I was close, this example should be used in the documentation. I'd
certainly be helpful!
Thanks.
Andy
On Fri, 3 Dec 1999, Stoyan Genov wrote:
> 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
> >
> >
> > ************
> >
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alewis@roundnoon.com, genov@digsys.bg
Subject: Re: [SQL] Another Date question
In-Reply-To: <Pine.LNX.4.05.9912030802590.12901-100000@rns.roundnoon.com>
References: <199912030832.KAA19606@lorna.digsys.bg> <Pine.LNX.4.05.9912030802590.12901-100000@rns.roundnoon.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox