>>> On Thu, Jan 31, 2008 at 12:34 PM, in message
<[EMAIL PROTECTED]>, "Roberts,
Jon" <[EMAIL PROTECTED]> wrote: 
 
> doesn't round the zeros off for timestamp
 
Sorry to have been so slow, but I think this is the crux of it:
 
A timestamp represents a moment in time, without storing any
precision information.  These timestamp literals represent exactly
the same moment, and therefore have exactly the same internal
representation:
 
timestamp '2008-01-31 12:31:40.50'
timestamp '2008-01-31 12:31:40.500'
timestamp '2008-01-31 12:31:40.500000'
  
to_char turns that into a string of your chosen format.
 
I hope that helps.
 
-Kevin
 



---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to