| From: | Nabil Sayegh <postgresql(at)e-trolley(dot)de> |
|---|---|
| To: | Michael Hanna <zen(at)hwcn(dot)org> |
| Cc: | pgsql-novice <pgsql-novice(at)postgresql(dot)org> |
| Subject: | Re: autotimestamping |
| Date: | 2003-06-25 18:24:59 |
| Message-ID: | 1056565499.15395.26.camel@billy |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice pgsql-patches |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2003-06-25 21:41:41 | Re: Name limitation question |
| Previous Message | Michael Hanna | 2003-06-25 18:17:50 | autotimestamping |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-06-25 18:35:20 | Re: [GENERAL] Many Pl/PgSQL parameters -> AllocSetAlloc(128)? |
| Previous Message | Josh Berkus | 2003-06-25 18:20:58 | Re: Runtime.SGML diff ... please expedite! |