Re: Strange? BETWEEN behaviour.

Поиск
Список
Период
Сортировка
От Bjørn T Johansen
Тема Re: Strange? BETWEEN behaviour.
Дата
Msg-id 20161020142708.17a25c44@arch-btj.norsvin.local
обсуждение исходный текст
Ответ на Re: Strange? BETWEEN behaviour.  (vinny <vinny@xs4all.nl>)
Ответы Re: Strange? BETWEEN behaviour.  (vinny <vinny@xs4all.nl>)
Re: Strange? BETWEEN behaviour.  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
On Thu, 20 Oct 2016 14:04:51 +0200
vinny <vinny@xs4all.nl> wrote:

> On 2016-10-20 13:51, Bjørn T Johansen wrote:
> > 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.2016
> > 23: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
> >
>
> What are you getting?
>
>

The sql returns 5 of the expected 72 rows...

BTJ


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

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Strange? BETWEEN behaviour.
Следующее
От: rob stone
Дата:
Сообщение: Re: Strange? BETWEEN behaviour.