Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1EDZMx29917 for ; Wed, 14 Feb 2001 08:35:22 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1DAV3x58955 for ; Tue, 13 Feb 2001 05:31:03 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f1DATUP63060 for pgsql-sql@postgresql.org; Tue, 13 Feb 2001 05:29:30 -0500 (EST) (envelope-from news) From: Dave Wedwick X-Newsgroups: comp.databases.postgresql.sql Subject: Trigger question Date: Sun, 11 Feb 2001 20:12:59 -0700 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 9 Message-ID: <3A8754BB.382CBDBE@wedwick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: scrappy@hub.org X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en,pdf To: pgsql-sql@postgresql.org X-Archive-Number: 200102/256 X-Sequence-Number: 1447 Hi! I have a table with an int4 field called inserttime. Regardless of what the user enters in this field, I want a trigger to put now() into it. What's the syntax for the trigger? Thanks!