type conversion date <-> timestamp

Поиск
Список
Период
Сортировка
От Ulrich Wisser
Тема type conversion date <-> timestamp
Дата
Msg-id 40A88A9E.6070603@relevanttraffic.se
обсуждение исходный текст
Список pgsql-general
Hi,

today I started to wonder about type conversion. I want to get all rows
of a table dated between two given dates. Until now I use

select * from mytable where to_date('20040115', 'YYYYMMDD') <= timestamp
and timestamp <= to_date('20040215', YYYYMMDD')

Does that query include the 15th January as well as the 15th February?

TIA

Ulrich


В списке pgsql-general по дате отправления:

Предыдущее
От: Nick Barr
Дата:
Сообщение: Re: table column information
Следующее
От: Milos Prudek
Дата:
Сообщение: serial autoincrement and related table