From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: enzovenegas@mixmail.com
Cc: pgsql-php@postgresql.org <pgsql-php@postgresql.org>
Subject: Re: format query
Date: Wed, 09 Mar 2005 23:16:43 +0800
Message-ID: <422F135B.5040600@familyhealth.com.au> (raw)
In-Reply-To: <E1D90DF-0006f0-00@relay.mixmail.com>
References: <E1D90DF-0006f0-00@relay.mixmail.com>
> I am trying to build a query sql that select all rows in my table with a
> spesific month (format timestamp, yyy-mm-dd hh:mm:ss), for example, all of
> january, select * from table where field_date = 01.
> but i don't know the specific query
select * from table where extract(month from field) = 1;
Chris
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-php@postgresql.org
Cc: chriskl@familyhealth.com.au, enzovenegas@mixmail.com
Subject: Re: format query
In-Reply-To: <422F135B.5040600@familyhealth.com.au>
References: <E1D90DF-0006f0-00@relay.mixmail.com> <422F135B.5040600@familyhealth.com.au>
* 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