Re: Oddity with extract microseconds?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Oddity with extract microseconds?
Дата
Msg-id 439701AF.1060202@dunslane.net
обсуждение исходный текст
Ответ на Re: Oddity with extract microseconds?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers

Christopher Kings-Lynne wrote:

>>> Why aren't 'minutes' considered too?  Because they aren't 'seconds'. 
>>> Well, seconds aren't microseconds either.
>>
>>
>> Yeah, they are: it's just one field.  The other way of looking at it
>> (that everything is seconds) is served by "extract(epoch)".
>
>
> Well, it's different in MySQL unfortunately - what does the standard 
> say?  Out of interest, can someone try this for me in MySQL 5:
>
> SELECT EXTRACT (MICROSECOND FROM '2003-01-02 10:30:00.00123');
> SELECT EXTRACT (MICROSECOND FROM '2003-01-02 10:30:10.00123');


mysql 4.1.5 gives back 123 in both cases. I assume they haven't changed 
that, although anything is possible.

cheers

andrew




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: About my new work at Command Prompt Inc.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Foreign key trigger timing bug?