From: Stoyan Genov <genov@digsys.bg>
To: Andy Lewis <alewis@roundnoon.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Another Date question
Date: Fri, 03 Dec 1999 10:32:38 +0200
Message-ID: <199912030832.KAA19606@lorna.digsys.bg> (raw)
In-Reply-To: <Pine.LNX.4.05.9912022154120.9296-100000@rns.roundnoon.com>
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: genov@digsys.bg, alewis@roundnoon.com
Subject: Re: [SQL] Another Date question
In-Reply-To: <199912030832.KAA19606@lorna.digsys.bg>
References: <Pine.LNX.4.05.9912022154120.9296-100000@rns.roundnoon.com> <199912030832.KAA19606@lorna.digsys.bg>
* 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