How would I make a table of autonumbers/sequences?

From: joseph(dot)castille(at)wcom(dot)com (Joseph Castille)
To: pgsql-hackers(at)postgresql(dot)org
Subject: How would I make a table of autonumbers/sequences?
Date: 2001-08-17 13:58:38
Message-ID: 5849caa3.0108170558.1c62bba7@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I want to make a field in a table contain numbers that increment each
time a record is updated. How would I go about doing this?

Example:

Table1
CustID balance
A12 255.32
B20 132.20

Table2
CustID transactions
A12 7
B20 33

Every time something is inserted or updated in table1 I want to
increment that customer's number of transactions in table2. How would
I go about doing this?

TIA,
Joseph

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-08-17 13:59:31 Re: [PATCHES] Re: JDBC pg_description update needed for CVS tip
Previous Message Karel Zak 2001-08-17 13:50:18 encoding names