Wildcard in date field??? - Mailing list pgsql-sql

From Web Manager
Subject Wildcard in date field???
Date
Msg-id 39526E9B.418BB807@inter-resa.com
Whole thread Raw
Responses Re: Wildcard in date field???
List 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


pgsql-sql by date:

Previous
From: Francisco Hernandez
Date:
Subject: eliminating duplicates in results..
Next
From: Dorin Grunberg
Date:
Subject: Re: Wildcard in date field???