Re: Timestamp comparison with string in some special cases
В списке pgsql-general по дате отправления:
| От | Andreas Kretschmer |
|---|---|
| Тема | Re: Timestamp comparison with string in some special cases |
| Дата | |
| Msg-id | 20071119160723.GA13681@KanotixBox обсуждение исходный текст |
| Ответ на | Timestamp comparison with string in some special cases (Dragan Matic <mlists@panforma.co.yu>) |
| Список | pgsql-general |
Dragan Matic <mlists@panforma.co.yu> schrieb: > I have just found out that when comparing timestamp with time value where > time value is represented in 24h format + AM/PM sign doesn't work always. > for instance, the following query works in this format: > > select * from table where timestamp_column < '11/19/2007 3:46:09 PM' This isn't a timestamp, this is a simple string. But you can CAST it to a TIMESTAMP: test=*# select now() > '11/19/2007 3:46:09 PM'::timestamp; ?column? ---------- t Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknow) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера