Wildcard in date field???

Поиск
Список
Период
Сортировка
От Web Manager
Тема Wildcard in date field???
Дата
Msg-id 39526E9B.418BB807@inter-resa.com
обсуждение исходный текст
Ответы Re: Wildcard in date field???  (Dorin Grunberg <dorin@visgen.com>)
Список 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 по дате отправления:

Предыдущее
От: Francisco Hernandez
Дата:
Сообщение: eliminating duplicates in results..
Следующее
От: Dorin Grunberg
Дата:
Сообщение: Re: Wildcard in date field???