| From: | "Jason Wong" <postgresql(at)gremlins(dot)com(dot)hk> |
|---|---|
| To: | "macky" <macky(at)edsamail(dot)com>, <pgsql-novice(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: Arithmetic operation on DATE |
| Date: | 2001-08-13 10:02:34 |
| Message-ID: | 00be01c123df$1365c380$0400000a@gremlins.com.hk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice pgsql-sql |
I know you can do it for days, thus:
expires = CURRENT_TIMESTAMP + 10
would be 10 days from now. Don't know about months though.
HTH
--
Jason Wong
Gremlins Associates
www.gremlins.com.hk
----- Original Message -----
From: macky <macky(at)edsamail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>; <pgsql-sql(at)postgresql(dot)org>
Sent: Monday, August 13, 2001 5:48 PM
Subject: [NOVICE] Arithmetic operation on DATE
> is it possible to add a date datatype column to a number resulting to a
> date......
>
>
> theoretically it should do this,,,
>
> X is in months
>
> date + X = date
>
> --> 2001-08-20 + 6 = 2002-02-20
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Sawtell | 2001-08-13 10:03:40 | Re: [SQL] Arithmetic operation on DATE |
| Previous Message | Antti Linno | 2001-08-13 10:02:17 | Re: [SQL] Arithmetic operation on DATE |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Sawtell | 2001-08-13 10:03:40 | Re: [SQL] Arithmetic operation on DATE |
| Previous Message | Antti Linno | 2001-08-13 10:02:17 | Re: [SQL] Arithmetic operation on DATE |