Re: [SQL] Date fields and libpq.... - Mailing list pgsql-sql

From Kachun Lee
Subject Re: [SQL] Date fields and libpq....
Date
Msg-id 3.0.1.32.19980626164554.006ac384@rr.pathlink.com
Whole thread Raw
In response to Re: [SQL] Date fields and libpq....  (Colin Dick <cdick@mail.ocis.net>)
List pgsql-sql
At 04:17 PM 6/26/98 -0700, you wrote:
>> It should be:
>>
>>   select date_part(datetime(start),'epoch') from timebase;
>
>Hi,
>    What version of postgres are you running?  I have tried the above
>query and get the following result:
>
>WARN:func_get_detail: function date_part(datetime, unknown) does not exist
>
>Is this perhaps something that has been written specifically for your
>postgres or is it included in the latest version?  I am currently running
>version 6.1.....  Thanks again for your fast responses.
>
>--
>Colin Dick
>On Call Internet Services
>cdick@mail.ocis.net

Oops! Should have checked the manual first, it should be:

    select date_part('epoch', datetime(start)) from timebase

and I am using v6.3.2.

pgsql-sql by date:

Previous
From: Colin Dick
Date:
Subject: Re: [SQL] Date fields and libpq....
Next
From: James Olin Oden
Date:
Subject: Re: [SQL] isnull function]