Re: Eliminating seconds fractions from timestamps? - Mailing list pgsql-general

From David Fetter
Subject Re: Eliminating seconds fractions from timestamps?
Date
Msg-id 20060214224507.GA9066@fetter.org
Whole thread Raw
In response to Eliminating seconds fractions from timestamps?  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
On Tue, Feb 14, 2006 at 02:43:05PM -0800, CSN wrote:
> I have a bunch of timestamps like:
>
> 2005-11-20 20:45:48.281653-07
>
> How can I change it so they never get saved with
> seconds fractions?

You could set the fields to be of type TIMESTAMP(0) WITH TIME ZONE.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

pgsql-general by date:

Previous
From: CSN
Date:
Subject: Eliminating seconds fractions from timestamps?
Next
From: andrew
Date:
Subject: stateful UDF?