Wildcard in date field???

From: Web Manager <web(at)inter-resa(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Wildcard in date field???
Date: 2000-06-22 19:52:59
Message-ID: 39526E9B.418BB807@inter-resa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

I need to make a query that will select items that have a date matching
the current month for example.

For June this means that any day between 2000-06-01 and 2000-06-30 are
ok. To do that I need a wildcard like "%" to replace the actual day in
the date field.

Ex.: select * from item where date = '2000-06-%%';

but that doesn't work... What is the right way?

Thanks!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marc Andre Paquin

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ed Loehr 2000-06-22 20:37:54 Re: Wildcard in date field???
Previous Message Jesus Aneiros 2000-06-22 14:53:36 Re: eliminating duplicates in results..