How would I make a table of autonumbers/sequences?

Поиск
Список
Период
Сортировка
От joseph.castille@wcom.com (Joseph Castille)
Тема How would I make a table of autonumbers/sequences?
Дата
Msg-id 5849caa3.0108170558.1c62bba7@posting.google.com
обсуждение исходный текст
Список 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


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

Предыдущее
От: David Ford
Дата:
Сообщение: Re: OID unsigned long long
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Progress report on locale safe LIKE indexing