Re: Timestamp with timezone with Default value

Поиск
Список
Период
Сортировка
От Jasmin Dizdarevic
Тема Re: Timestamp with timezone with Default value
Дата
Msg-id a0eee4d40907180325s2ac61859g71de0746825c28e2@mail.gmail.com
обсуждение исходный текст
Ответ на Timestamp with timezone with Default value  ("Gianvito Pio" <pio.gianvito@gmail.com>)
Список 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.gianvito@gmail.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.dizdarevic@gmail.com
+43 664 411 79 29

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Gianvito Pio"
Дата:
Сообщение: Timestamp with timezone with Default value
Следующее
От: "Gianvito Pio"
Дата:
Сообщение: Table inheritance problem