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 C3BE7D1E8D3 for ; Mon, 1 Mar 2004 21:09:41 +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 97144-06 for ; Mon, 1 Mar 2004 17:09:39 -0400 (AST) Received: from e-mail-gate-1.nuvo.com (unknown [216.191.35.10]) by svr1.postgresql.org (Postfix) with SMTP id 2141CD1E2A2 for ; Mon, 1 Mar 2004 17:09:35 -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 M2004030116094005374 for ; Mon, 01 Mar 2004 16:09:40 -0500 Received: by EXCHANGE.nuvo.com with Internet Mail Service (5.5.2653.19) id <1YBWQMBG>; Mon, 1 Mar 2004 16:09:35 -0500 Message-ID: From: Louie Kwan To: "Pgsql-Admin (E-mail)" Subject: SYSDATE in PostgreSQL !? Date: Mon, 1 Mar 2004 16:09:24 -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/9 X-Sequence-Number: 12579 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