function year!

From: Jerome Knobl <jknobl(at)mandanet(dot)ch>
To: pgsql-sql(at)postgresql(dot)org
Subject: function year!
Date: 1998-08-17 08:59:38
Message-ID: 35D7F0FA.4C48F4C9@mandanet.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

I have a timestamp value, and I'm tring to get only the year, the month
or the day.
I'm using the function now() to put some value inside.

I tried the function year(..) (select year(thedate) from mytable;)

but that function are not define! I'm looking for a simple way to get my
informations?

Thank.

Jérôme Knöbl, MandaNEt, Switzerland

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jerome Knobl 1998-08-17 09:21:03 How create an index on a timespamp col!
Previous Message Herouth Maoz 1998-08-16 11:17:09 Re: [SQL] returning the current date in a SQL query