Re: autotimestamping - Mailing list pgsql-novice

From Nabil Sayegh
Subject Re: autotimestamping
Date
Msg-id 1056565499.15395.26.camel@billy
Whole thread Raw
In response to autotimestamping  (Michael Hanna <zen@hwcn.org>)
List 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 by date:

Previous
From: Michael Hanna
Date:
Subject: autotimestamping
Next
From: Bruce Momjian
Date:
Subject: Re: Name limitation question