Re: date_part??? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: date_part???
Date
Msg-id 20020829065730.K96596-100000@megazone23.bigpanda.com
Whole thread Raw
In response to date_part???  (jerome <jerome@gmanmi.tv>)
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Deleting foreign key constraints
Next
From: Tom Lane
Date:
Subject: Re: rules and functions as arguments