adding years to a date field - Mailing list pgsql-general

From Christine Penner
Subject adding years to a date field
Date
Msg-id 4D9C8CCC.9000508@fp2.ca
Whole thread Raw
Responses Re: adding years to a date field
Re: adding years to a date field
List pgsql-general
I have to add a number of years to a date field. The years come from another field in the table.

I know I can do this:
select (ii_purchased + interval  '3 year') as date from inventory_item;

But I need to replace the 3 in 3 years with another field from the same table ii_expected_life but I can't seem to do that without getting syntax errors
-- 
Christine Penner
Ingenious Software
250-352-9495
chris@fp2.ca

pgsql-general by date:

Previous
From: Carlos Mennens
Date:
Subject: Re: Auto Adjust Age
Next
From: Andrew Sullivan
Date:
Subject: Re: temp tables not dropping at end of script