interval +variable

From: "Fatih Cerit" <fatih(at)intersan(dot)com(dot)tr>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: interval +variable
Date: 2005-03-09 08:58:05
Message-ID: 008a01c52486$1c1c9520$bb41ccd5@cerit
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dear all

Is there anyone at there who knows howto use dateadd in pgsql. I have a
problem in my function that is like this ;

Select into futuredate now() + interval '30 days'; <- this is ok
but how can I use a variable intead of '30 days' :(

Thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-03-09 09:17:36 Re: interval +variable
Previous Message Richard Huxton 2005-03-09 08:10:04 Re: datestyle setting