Extracting the year

How to select records from a choosen year?
Something like this

select myfield from mytable where year(myfield) 06

Regards R. Stormo
none [ So, 05 März 2006 08:59 ] [ ID #1215402 ]

Re: Extracting the year

none wrote:
> How to select records from a choosen year?
> Something like this
>
> select myfield from mytable where year(myfield) 06

It's in the documentation:
http://www.postgresql.org/docs/

-> SQL Language
-> Functions and Operators
-> Date/Time Functions and Operators


/Bent
Bent Stigsen [ Do, 01 Juni 2006 01:33 ] [ ID #1338217 ]
Datenbanken » comp.databases.postgresql.sql » Extracting the year

Vorheriges Thema: select returning resuts in wrong order
Nächstes Thema: Timestamp not working