From: Jack Zhu <jzhu@netcom-sys.com>
To: pgsql-admin@postgresql.org
Subject: Output from 'timestamp' column!?
Date: Tue, 2 May 2000 18:01:28 -0400
Message-ID: <NDBBJFPPMJIBCJDIGANMIEMKCAAA.jzhu@netcom-sys.com> (raw)
Hi, all:
PostgreSQL 7 Beta 5 on Red hat Linux 6.0
We have a a table which has a column col_a with 'timestamp' data type. When
insert time value to this column, we use format which is 'MM/DD/YYYY
HH24:MI:SS' (such as '05/01/2000 13:20:02'). Insertion is OK.
But when we try to read this column, the output is '05/01/2000
13:20:02.20-04', which is not what we need. We don't need the '.20-04' part
of the output, that is nano second and time zone part.
Is there any ways that make the output doesn't contain the nano second and
time zone part?
Thnx a lot!
Jack
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-admin@postgresql.org
Cc: jzhu@netcom-sys.com
Subject: Re: Output from 'timestamp' column!?
In-Reply-To: <NDBBJFPPMJIBCJDIGANMIEMKCAAA.jzhu@netcom-sys.com>
References: <NDBBJFPPMJIBCJDIGANMIEMKCAAA.jzhu@netcom-sys.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