Re: EPOCH TIMESTAMP Conversion Problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Amitanand Chikorde" <amit99rs(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: EPOCH TIMESTAMP Conversion Problem
Date: 2007-11-07 15:35:08
Message-ID: 16805.1194449708@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Amitanand Chikorde" <amit99rs(at)gmail(dot)com> writes:
> I want to convert MAX(mydate) from myTable to Epoch.

Do you mean
SELECT EXTRACT(EPOCH FROM MAX(mydate)) FROM myTable

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Vivek Khera 2007-11-08 16:45:45 Re: Partitioning and Foreign Keys
Previous Message Philippe Lang 2007-11-07 13:22:55 Temporal databases