| От | Greg Stark |
|---|---|
| Тема | Re: ARRAYs and INDEXes ... |
| Дата | |
| Msg-id | 877jemvsfj.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | ARRAYs and INDEXes ... ("Marc G. Fournier" <scrappy@postgresql.org>) |
| Список | pgsql-sql |
"Marc G. Fournier" <scrappy@postgresql.org> writes: > SELECT * FROM customers WHERE monthly_balance[6] = 0.00; This, like the other poster said, can be accomplished with a set of simple expression indexes. > As an example ... or > > SELECT * FROM customers WHERE 0.00 = any (monthly_balance); This would require a GiST index. Look at the intarray contrib module. I don't think there's any equivalent for other data types. You might have to store these values as fixed precision numbers and divide or multiple by 100 to convert. -- greg
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера