autotimestamping

Поиск
Список
Период
Сортировка
От Michael Hanna
Тема autotimestamping
Дата
Msg-id 549B8742-A739-11D7-8DBC-00039308EB2C@hwcn.org
обсуждение исходный текст
Ответ на Re: connectby(... pos_of_sibling)  (Nabil Sayegh <postgresql@e-trolley.de>)
Ответы Re: autotimestamping  (Nabil Sayegh <postgresql@e-trolley.de>)
Список pgsql-novice
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

Michael


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

Предыдущее
От: Nabil Sayegh
Дата:
Сообщение: Re: connectby(... pos_of_sibling)
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: autotimestamping