Re: date_part???

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: date_part???
Дата
Msg-id 20020829065730.K96596-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на date_part???  (jerome <jerome@gmanmi.tv>)
Список pgsql-general
On Thu, 29 Aug 2002, jerome wrote:

> i have a table
>  Attribute |   Type    | Modifier
> -----------+-----------+----------
>  test      | timestamp |
>
> SELECT date_part('hour', TIMESTAMP 'timestamp(test)') from testing;
> ERROR:  Bad timestamp external representation 'timestamp(test)'
>
> ** this one gives me an error but the DOCU says:
>   --  date_part(text, timestamp)

TIMESTAMP '...' is for timestamp literals.  timestamp(test) isn't a
literal.  You probably just want test.



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Deleting foreign key constraints
Следующее
От: Tom Lane
Дата:
Сообщение: Re: rules and functions as arguments