X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2D2F3D1DD65 for ; Mon, 1 Mar 2004 21:18:34 +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 03002-06 for ; Mon, 1 Mar 2004 17:18:19 -0400 (AST) Received: from e-mail-gate-1.nuvo.com (unknown [216.191.35.10]) by svr1.postgresql.org (Postfix) with SMTP id 010B1D1DF40 for ; Mon, 1 Mar 2004 17:18:17 -0400 (AST) Received: from EXCHANGE.nuvo.com ([172.20.10.130]) by e-mail-gate-1.nuvo.com (SAVSMTP 3.1.3.37) with SMTP id M2004030116182205469 for ; Mon, 01 Mar 2004 16:18:22 -0500 Received: by EXCHANGE.nuvo.com with Internet Mail Service (5.5.2653.19) id <1YBWQMDX>; Mon, 1 Mar 2004 16:18:17 -0500 Message-ID: From: Louie Kwan To: "'pgsql-sql@postgresql.org'" Subject: SYSDATE in PostgreSQL !? Date: Mon, 1 Mar 2004 16:18:15 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/11 X-Sequence-Number: 17110 How can I define a table with columns with sysdate as the default value.. If there is no SYSDATE defined in PostgreSQL , what can I do ? Any help is appreciated. CREATE TABLE channels ( channelID NUMBER PRIMARY KEY, name VARCHAR2(64) NOT NULL, status INTEGER NOT NULL, remedyID VARCHAR2(15) UNIQUE, remedySchemaID NUMBER default 48, remedyLastModified INTEGER, updateTimeStamp DATE default (SYSDATE), createTimeStamp DATE default (SYSDATE) ); Regards, Louie Kwan