casting for dates - Mailing list pgsql-hackers

From Vince Vielhaber
Subject casting for dates
Date
Msg-id Pine.BSF.4.30.0109261627240.55979-100000@paprika.michvhf.com
Whole thread Raw
Responses Re: casting for dates
List pgsql-hackers
I'm trying to use an integer from a table to add/subtract time in months.
IOW:

create table foo(nummonths int);

select now() - nummonths months;

So far nothing I've tried will work - short of a function.  Is there a
way to do this?

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH    email: vev@michvhf.com    http://www.pop4.net        56K Nationwide Dialup from $16.00/mo
atPop4 Networking       Online Campground Directory    http://www.camping-usa.com      Online Giftshop Superstore
http://www.cloudninegifts.com
==========================================================================





pgsql-hackers by date:

Previous
From: "D. Hageman"
Date:
Subject: Re: Spinlock performance improvement proposal
Next
From: Andrew McMillan
Date:
Subject: Re: casting for dates