function year! - Mailing list pgsql-sql

From Jerome Knobl
Subject function year!
Date
Msg-id 35D7F0FA.4C48F4C9@mandanet.ch
Whole thread Raw
Responses Re: [SQL] function year!  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List 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




pgsql-sql by date:

Previous
From: Herouth Maoz
Date:
Subject: Re: [SQL] returning the current date in a SQL query
Next
From: Jerome Knobl
Date:
Subject: How create an index on a timespamp col!