Re: extracting date from timestamp

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: KeithW(at)narrowpathinc(dot)com
Cc: "PostgreSQL Novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: extracting date from timestamp
Date: 2005-01-25 00:29:57
Message-ID: 27599.1106612997@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Keith Worthington" <keithw(at)narrowpathinc(dot)com> writes:
> I have timestamp information in a table. I want to extract the date portion
> for insertion into another table.

You're doing it the very very hard way. Just cast the timestamp value
to date.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Rodolfo J. Paiz 2005-01-25 01:39:36 SQL and function reference?
Previous Message Alexander Borkowski 2005-01-25 00:14:20 Re: extracting date from timestamp