From: Dan Langille <dan@langille.org>
To: Brian Ward <brian0@verizon.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: timestamp
Date: Mon, 7 Oct 2002 08:35:08 -0400 (EDT)
Message-ID: <20021007083035.V12832-100000@m20.unixathome.org> (raw)
In-Reply-To: <anphrb$24se$1@news.hub.org>
On Sun, 6 Oct 2002, Brian Ward wrote:
> How do I create a time stamp column in a table that default to the current
> time
> when a row is inserted?
> I tried putting in now() as the default but I have something wrong
> with the syntax or something I think
> Any one have an example of a table creation script that has a timestamp
> column?
When you have an example which does not do what you want, it is better to
provide that so we can see how to correct it.
I am using : firstlogin timestamp default current_timestamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dan@langille.org, brian0@verizon.net
Subject: Re: timestamp
In-Reply-To: <20021007083035.V12832-100000@m20.unixathome.org>
References: <anphrb$24se$1@news.hub.org> <20021007083035.V12832-100000@m20.unixathome.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox