From: | admin <admin(at)wtbwts(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | stats on select |
Date: | 2000-01-12 12:12:07 |
Message-ID: | Pine.BSF.4.10.10001121207390.68073-100000@server.b0x.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Alexandr Listopad | 2000-01-12 13:44:32 | help. |
Previous Message | Thomas Leavitt | 2000-01-12 10:29:47 | function parameters/output values |