Re: [GENERAL] datetime problems

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Memphisto <szoli(at)valerie(dot)inf(dot)elte(dot)hu>, PostgreSQL mailinglist <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] datetime problems
Date: 1998-10-21 13:14:04
Message-ID: l03110704b2538d2ce9e2@[147.233.159.109]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 13:50 +0200 on 21/10/98, Memphisto wrote:

> I'd like to issue a query that lists all the rows of a table whose 'date'
> columns(its type is datetime) is falls in a month, i.e. these rows were
> inserted in , say August. How can I do that?

SELECT *
FROM the_table
WHERE the_date BETWEEN '1998-08-01' AND '1998-08-31';

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sferacarta Software 1998-10-21 13:21:12 Re: [GENERAL] aggregate question
Previous Message Memphisto 1998-10-21 11:57:00 That bug I mention in my prev. letter