Re: autotimestamping

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: autotimestamping
Дата
Msg-id 1056565499.15395.26.camel@billy
обсуждение исходный текст
Ответ на autotimestamping  (Michael Hanna <zen@hwcn.org>)
Список pgsql-novice
Am Mit, 2003-06-25 um 20.17 schrieb Michael Hanna:
> want an auto timestamping on my table.. SQL of create:
> create table healthnotes (  "posted" timestamptz not null default
> current_timestamp,
> "notes"  text,
> primary key (posted))
>
> was succ. but how do I set it to autotimestamp when adding entries?
>
> tried:
>
> insert into healthnotes values ('my text notes entry my text notes
> entry my text notes entry')
>
> but said the value for timestamp was too long
> clearly the autotimestamp isn't set up yet

insert into healthnotes (notes) values ('my text notes entry my text
notes entry my text notes entry');

HTH
--
 e-Trolley Sayegh & John, Nabil Sayegh
 Tel.: 0700 etrolley /// 0700 38765539
 Fax.: +49 69 8299381-8
 PGP : http://www.e-trolley.de


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

Предыдущее
От: Michael Hanna
Дата:
Сообщение: autotimestamping
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Name limitation question