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 f1EDZWx29954 for ; Wed, 14 Feb 2001 08:35:32 -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 f1DAV4x58960 for ; Tue, 13 Feb 2001 05:31:04 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f1DATW163063 for pgsql-sql@postgresql.org; Tue, 13 Feb 2001 05:29:32 -0500 (EST) (envelope-from news) From: Dave Wedwick X-Newsgroups: comp.databases.postgresql.sql Subject: Trigger question Date: Sun, 11 Feb 2001 20:19:11 -0700 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 12 Message-ID: <3A87562F.7591A03D@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/257 X-Sequence-Number: 1448 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!