Re: timestamp no fractional seconds

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brandon Metcalf <brandon(at)geronimoalloys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp no fractional seconds
Date: 2009-06-02 16:46:04
Message-ID: 14567.1243961164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brandon Metcalf <brandon(at)geronimoalloys(dot)com> writes:
> I suppose my question really boils down to how do I cast the timestamp
> with no fractional seconds part? For example, if I have a table where
> I haven't put a limit on the fractional seconds part, how would I
> select the timestamp without fractional seconds?

Cast to timestamp(0) ... which is something entirely different
from timestamp[0].

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-06-02 16:51:21 Re: timestamp no fractional seconds
Previous Message Edmundo Robles L. 2009-06-02 16:45:47 Forcing the use of one index instead other.