Auto increment/sequence on multiple columns?

Поиск
Список
Период
Сортировка
От nboutelier@hotmail.com (Nick)
Тема Auto increment/sequence on multiple columns?
Дата
Msg-id ce0d844c.0409101632.4d648dd8@posting.google.com
обсуждение исходный текст
Ответы Re: Auto increment/sequence on multiple columns?
Список pgsql-general
Is it possible to have a sequence across two columns. For example

table1
+---+---+
| a | b |
+---+---+
| 1 | 1 |
| 1 | 2 |
| 1 | 3 |
| 2 | 1 |
| 2 | 2 |
| 2 | 3 |
| 3 | 1 |
| 3 | 2 |
| 3 | 3 |
+---+---+

Would I have to create a new sequence for every unique 'a' column?
That seems pretty tedious. -Nick

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Salt in encrypted password in pg_shadow
Следующее
От: Alex Soto
Дата:
Сообщение: help turning of NOTICE messages