Re: Oddity with extract microseconds? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Oddity with extract microseconds?
Date
Msg-id 43964D51.6050707@familyhealth.com.au
Whole thread Raw
In response to Re: Oddity with extract microseconds?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Oddity with extract microseconds?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
> Looks like MySQL doesn't allow a space before the open parenthesis
> (there isn't one in the manual's example):
> 
> mysql> SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:00.00123');
> +-------------------------------------------------------+
> | EXTRACT(MICROSECOND FROM '2003-01-02 10:30:00.00123') |
> +-------------------------------------------------------+
> |                                                  1230 |
> +-------------------------------------------------------+
> 1 row in set (0.01 sec)

Ok, and what does this give:

SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123');

Chris



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: row is too big: size 8916, maximum size 8136
Next
From: Michael Fuhr
Date:
Subject: Re: Oddity with extract microseconds?