Re: [SQL] Another Date question - Mailing list pgsql-sql

From Andy Lewis
Subject Re: [SQL] Another Date question
Date
Msg-id Pine.LNX.4.05.9912030802590.12901-100000@rns.roundnoon.com
Whole thread Raw
In response to Re: [SQL] Another Date question  (Stoyan Genov <genov@digsys.bg>)
List pgsql-sql
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
> > 
> > 
> > ************
> > 
> 
> 



pgsql-sql by date:

Previous
From: jdibartolomeo@agency.com
Date:
Subject: ...
Next
From: Mario Jorge Nunes Filipe
Date:
Subject: Wierd stuff