Re: Current Year - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Current Year
Date
Msg-id Pine.LNX.4.30.0102151933250.1211-100000@peter.localdomain
Whole thread Raw
In response to Current Year  (Hunter Hillegas <hunter@lastonepicked.com>)
List pgsql-general
Hunter Hillegas writes:

> I have an HTML form that submits to Postgre 7.1 beta 4 and I'm wondering how
> to get the current year from the database...

select extract(year from current_date);

> Also, is there a good reference to the PostgreSQL function library? I've
> looked around and can't seem to find one.

http://www.postgresql.org/users-lounge/docs/7.0/user/functions.htm

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: misc psql questions
Next
From: "bcs-brockmann.de"
Date:
Subject: Error by starting postmaster