ARRAYs and INDEXes ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема ARRAYs and INDEXes ...
Дата
Msg-id 20050816014906.G1002@ganymede.hub.org
обсуждение исходный текст
Ответы Re: ARRAYs and INDEXes ...  (Michael Fuhr <mike@fuhr.org>)
Re: ARRAYs and INDEXes ...  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
Can't seem to find anything concerning this in the docs, and I don't think 
it is something that can be done, but figure I'll double check before I 
write it off completely ...

If I create a table:

CREATE TABLE customers (  customer_id SERIAL,  monthly_balance DECIMAL(7,2)[12]
);

Is it possible to create an INDEX on customers.monthly_balance such that I 
could do something like:

SELECT * FROM customers WHERE monthly_balance[6] = 0.00;

As an example ... or

SELECT * FROM customers WHERE 0.00 = any (monthly_balance);



----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Parentheses in FROM clause and evaluation order.
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: ARRAYs and INDEXes ...