stats on select

Поиск
Список
Период
Сортировка
От admin
Тема stats on select
Дата
Msg-id Pine.BSF.4.10.10001121207390.68073-100000@server.b0x.com
обсуждение исходный текст
Список pgsql-sql
I would like to keep statistics for records which are being selected from
my product table. If my table looks something like:
CREATE TABLE product ( name varchar(32), stats int2 );

... I would like to be able to increase product.stats when executing a
query which could look something like:
SELECT * FROM product WHERE name='3com' LIMIT 100,0;

Considering there is a LIMIT, I can't simply use UPDATE. Perhaps I should
be using rules or triggers, but I am not familiar with either. I have been
reading the Programmer's Guide and I am still having a hard time figuring
out the proper solution.

Suggestions would be very appreciated,
Marc



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

Предыдущее
От: Alexandr Listopad
Дата:
Сообщение: help.
Следующее
От: Greg Youngblood
Дата:
Сообщение: Rules, triggers, ??? - What is the best way to enforce data-valid ation tests?