X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9379DD1E90C for ; Mon, 1 Mar 2004 21:32:26 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 08209-08 for ; Mon, 1 Mar 2004 17:32:25 -0400 (AST) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 70397D1E923 for ; Mon, 1 Mar 2004 17:32:22 -0400 (AST) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id i21LVLsw000882; Mon, 1 Mar 2004 14:31:22 -0700 (MST) Date: Mon, 1 Mar 2004 14:19:17 -0700 (MST) From: "scott.marlowe" To: Bjoern Metzdorf Cc: Louie Kwan , "Pgsql-Admin (E-mail)" Subject: Re: SYSDATE in PostgreSQL !? In-Reply-To: <4043A82C.9090707@turtle-entertainment.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-IHS-MailScanner-Envelope-Sender: scott.marlowe@ihs.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/11 X-Sequence-Number: 12581 On Mon, 1 Mar 2004, Bjoern Metzdorf wrote: > Louie Kwan wrote: > > > If there is no SYSDATE defined in PostgreSQL , what can I do ? > > > > createTimeStamp DATE default (SYSDATE) > > Perhaps NOW() ist what you are looking for? > > createTimeStamp DATE default 'NOW()' I don't think you want the quotes around now(), otherwise it will always insert the same date / time each time.