From: JT Kirkpatrick <jt-kirkpatrick@mpsllc.com>
To: 'nmmm@nsi.bg' <nmmm@nsi.bg>
Cc: 'pgsql-sql@hub.org' <pgsql-sql@hub.org>
Date: Tue, 13 Jul 1999 08:39:50 -0400
Message-ID: <01BECD0B.45F87E00.jt-kirkpatrick@mpsllc.com> (raw)
niki --
in the creation of your table, use ->dt datetime default text 'now'
i had the same problem as you and this cured it. . .
i believe also it works with the other data types. . .
jt kirkpatrick
++++++++++++++
Date: Mon, 12 Jul 1999 11:21:02 +0300
From: "Nikolay Mijaylov" <nmmm@nsi.bg>
Subject: Stupid question about default time value
I made a table such as:
create teble x(
i int2,
d date default 'today',
t time default 'now',
dt datetime default 'now'
);
So these default values are not working as i think... they make the default
values to be equal to time when table was created....
i fixed problem in this way:
create teble x(
i int2,
d date default date( now() ), // or now() ::
date
t time default datetime_time(datetime (now ()) ),
dt datetime default now()
);
is there better way to do this?????
Niki
w3.nsi.bg/nmmm
www.nsi.bg/nmmm
nmmm.hypermart.net
?????
thanx
------------------------------
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jt-kirkpatrick@mpsllc.com, nmmm@nsi.bg, pgsql-sql@hub.org
Subject: Re:
In-Reply-To: <01BECD0B.45F87E00.jt-kirkpatrick@mpsllc.com>
References: <01BECD0B.45F87E00.jt-kirkpatrick@mpsllc.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