pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Ward <brian0@verizon.net>
To: pgsql-sql@postgresql.org
Subject: timestamp
Date: Sun, 6 Oct 2002 10:41:36 -0400
Message-ID: <anphrb$24se$1@news.hub.org> (raw)

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?





view thread (13+ messages)  latest in thread

Message-ID: <anphrb$24se$1@news.hub.org>
Permalink:  ../anphrb$24se$1@news.hub.org/
Also on:    postgresql.org/message-id/anphrb$24se$1@news.hub.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: brian0@verizon.net
  Subject: Re: timestamp
  In-Reply-To: <anphrb$24se$1@news.hub.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