From: Jerome Knobl <jknobl@mandanet.ch>
To: pgsql-sql@postgresql.org
Subject: function year!
Date: Mon, 17 Aug 1998 10:59:38 +0200
Message-ID: <35D7F0FA.4C48F4C9@mandanet.ch> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: jknobl@mandanet.ch
Subject: Re: function year!
In-Reply-To: <35D7F0FA.4C48F4C9@mandanet.ch>
References: <35D7F0FA.4C48F4C9@mandanet.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox