Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2DFE94774A1 for ; Mon, 7 Oct 2002 08:55:37 -0400 (EDT) Received: from m20.unixathome.org (m20.unixathome.org [66.11.168.227]) by postgresql.org (Postfix) with ESMTP id AD116477369 for ; Mon, 7 Oct 2002 08:37:49 -0400 (EDT) Received: by m20.unixathome.org (Postfix, from userid 1001) id F41F57A11; Mon, 7 Oct 2002 08:35:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by m20.unixathome.org (Postfix) with ESMTP id EEEBF1F05; Mon, 7 Oct 2002 08:35:08 -0400 (EDT) Date: Mon, 7 Oct 2002 08:35:08 -0400 (EDT) From: Dan Langille X-X-Sender: dan@m20.unixathome.org To: Brian Ward Cc: pgsql-sql@postgresql.org Subject: Re: timestamp In-Reply-To: Message-ID: <20021007083035.V12832-100000@m20.unixathome.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/89 X-Sequence-Number: 9807 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