Re: interval +variable

From: "AL ELK" <ali(at)verus(dot)com(dot)tr>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: interval +variable
Date: 2005-03-10 09:30:45
Message-ID: d0p449$1mae$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

+ '1 days'::interval

""Fatih Cerit"" <fatih(at)intersan(dot)com(dot)tr>, haber iletisinde unlar
yazd:008a01c52486$1c1c9520$bb41ccd5(at)cerit(dot)(dot)(dot)
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Henry Ortega 2005-03-10 20:09:42 best way to auto-update a field when row is updated
Previous Message Stef 2005-03-09 17:19:14 Re: [SQL] [SOLVED] Postgres schema comparison.