| От | Bruno Wolff III |
|---|---|
| Тема | Re: A few things on intervals |
| Дата | |
| Msg-id | 20060428170416.GA20186@wolff.to обсуждение исходный текст |
| Ответ на | A few things on intervals (Alban Hertroys <alban@magproductions.nl>) |
| Список | pgsql-general |
On Fri, Apr 28, 2006 at 13:52:09 +0200, Alban Hertroys <alban@magproductions.nl> wrote: > I realize that this isn't possible for intervals like '1 year 3 months', > but we only use relatively simple intervals like '3 months', '6 weeks' > and '100 hours'. > > Is there some easy way to query such intervals in a way that can be > reliably split up? Internally intervals store time in months and seconds (in 7.4.x - 8.1.x also stores days), so you are not going to be able to do what you want only using what is stored in an interval. However, you might be able to use that data combined with your restrictions on allowed values to figure out the desired type.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера