Re: Why does this work?

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема Re: Why does this work?
Дата
Msg-id 1181935965.951553.93250@w5g2000hsg.googlegroups.com
обсуждение исходный текст
Ответ на Why does this work?  ("Ian Harding" <harding.ian@gmail.com>)
Список pgsql-general
On Jun 15, 1:56 pm, harding....@gmail.com ("Ian Harding") wrote:
> I accidentally formatted a string for tsearch before trying to cast it
> to a date, and it worked!
>
>  select 'June&15&2007'::date
>     date
> ------------
>  2007-06-15
> (1 row)
>
> Is this a happy accident, or is it OK to count on it continuing to
> work this way?
>
> Thanks,
>
> Ian

select
'June&15&2007'::date
,'June.15.2007'::date
,'June__15__2007'::date

See: http://www.postgresql.org/docs/8.2/static/x71171.html


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

Предыдущее
От: "guillermo arias"
Дата:
Сообщение: is it possible to recover more than one recordset or cursor from a function?
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: is it possible to recover more than one recordset or cursor from a function?