| От | Fran Fabrizio |
|---|---|
| Тема | subtratcing dates |
| Дата | |
| Msg-id | 3AF32443.CB2E50FE@exchange.webmd.net обсуждение исходный текст |
| Ответы |
Re: subtratcing dates
|
| Список | pgsql-general |
Hello all, I have a table that has two columns, tstamp of type timestamp, and limit of type int. I want to have a query that tells me whether or not the timestamp is within 'limit' minutes of the current time. so, something like: select tstamp > now() + '-60 minute' from log; except i need the 60 to be the value of the 'limit' column instead so... select tstamp > now() + '-limit minute' from log; which of course doesn't work. I can't seem to get it right no matter what I try. Any ideas? Thanks! -Fran
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера