Strange? BETWEEN behaviour.

Поиск
Список
Период
Сортировка
От Bjørn T Johansen
Тема Strange? BETWEEN behaviour.
Дата
Msg-id 20161020135134.1387b6ca@arch-btj.norsvin.local
обсуждение исходный текст
Ответы Re: Strange? BETWEEN behaviour.  (William Ivanski <william.ivanski@gmail.com>)
Re: Strange? BETWEEN behaviour.  (vinny <vinny@xs4all.nl>)
Re: Strange? BETWEEN behaviour.  (rob stone <floriparob@gmail.com>)
Re: Strange? BETWEEN behaviour.  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-general
I have the following SQL:

SELECT * from table WHERE date BETWEEN to_timestamp('20.10.2016 00:00:00','DD.MM.YYYY HH24:MI:SS') AND
to_timestamp('20.10.201623:59:59','DD.MM.YYYY 
HH24:MI:SS')

date is of type timestamp.

I was expecting to get all the records that had datepart = 20.10.2016 but I am not getting that..

What am I missing?


Regards,

BTJ

--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------


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

Предыдущее
От: "Jaisingkar, Piyush"
Дата:
Сообщение: Re: Unnest an array in postgresql
Следующее
От: William Ivanski
Дата:
Сообщение: Re: Strange? BETWEEN behaviour.