Re: [SQL] Date fields and libpq....

From: Kachun Lee <kachun(at)pathlink(dot)com>
To: Colin Dick <cdick(at)mail(dot)ocis(dot)net>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Date fields and libpq....
Date: 1998-06-26 23:45:54
Message-ID: 3.0.1.32.19980626164554.006ac384@rr.pathlink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)mail(dot)ocis(dot)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.

In response to

Responses

  • Date at 1998-07-08 09:10:41 from Chairudin Sentosa Harjo

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1998-06-27 02:11:56 Re: [SQL] isnull function]
Previous Message Colin Dick 1998-06-26 23:17:44 Re: [SQL] Date fields and libpq....