Re: help with to_date and to_char

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема Re: help with to_date and to_char
Дата
Msg-id 41759DA4.6070803@onesystem.com
обсуждение исходный текст
Ответ на Re: help with to_date and to_char  (Edmund Bacon <ebacon@onesystem.com>)
Ответы Which type of functions are best?
Список pgsql-sql
Edmund Bacon wrote:
>  When current_date is, say Aug 31 then
> 
> select to_char( to_date('05' || '/' || to_char(current_date, 'DD/YYYY'),
>                 'MM/DD/YYYY' ), 'MON' );
>

NUTS! that should have been  select ... to_date('02' || ...

{ cut, paste, ?edit? }

> returns 'MAR', which is probably not what you want.
> 
> This works with 7.3.2, 7.4.5 and 8.0beta2.
> 
-- 
Edmund Bacon <ebacon@onesystem.com>


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

Предыдущее
От: lorid
Дата:
Сообщение: Re: help with to_date and to_char
Следующее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: need query advice