From: Louie Kwan <lkwan@nuvo.com>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: SYSDATE in PostgreSQL !?
Date: Mon, 1 Mar 2004 16:18:15 -0500
Message-ID: <FB4FDC17A002D711BC0C009027DE84AF027F6BF3@EXCHANGE.nuvo.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: lkwan@nuvo.com
Subject: Re: SYSDATE in PostgreSQL !?
In-Reply-To: <FB4FDC17A002D711BC0C009027DE84AF027F6BF3@EXCHANGE.nuvo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox