Re: Timestamp with timezone with Default value

From: Jasmin Dizdarevic <jasmin(dot)dizdarevic(at)gmail(dot)com>
To: Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Timestamp with timezone with Default value
Date: 2009-07-18 10:25:06
Message-ID: a0eee4d40907180325s2ac61859g71de0746825c28e2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

i think:
create. ...(

myCol timestamp with timezone default now()
)
the function now() returns a timestamp with timezone (
http://www.postgresql.org/docs/8.4/static/functions-datetime.html)

i currently have no db to test it - but it should work.

jasmin
2009/7/18 Gianvito Pio <pio(dot)gianvito(at)gmail(dot)com>

> Hi all,
> how can I define a column of timestamp with timezone type...with a default
> value?
>
> Thanks
>
>

--
Mit freundlichen Grüßen

Dizdarevic Jasmin
Sonnenbergstr. 3
6714 Nüziders, AUT

jasmin(dot)dizdarevic(at)gmail(dot)com
+43 664 411 79 29

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gianvito Pio 2009-07-18 17:09:31 Table inheritance problem
Previous Message Gianvito Pio 2009-07-18 08:19:52 Timestamp with timezone with Default value