From: Nikolay Mijaylov <nmmm@nsi.bg>
To: pgsql-sql@postgreSQL.org
Subject: Stupid question about default time value
Date: Mon, 12 Jul 1999 11:21:02 +0300
Message-ID: <001001becc3f$7e2962c0$ce2a18c3@skillbrokers.bg> (raw)
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: nmmm@nsi.bg
Subject: Re: Stupid question about default time value
In-Reply-To: <001001becc3f$7e2962c0$ce2a18c3@skillbrokers.bg>
References: <001001becc3f$7e2962c0$ce2a18c3@skillbrokers.bg>
* 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