Stumped. Somebody Help me please!

Поиск
Список
Период
Сортировка
От Arthur M. Kang
Тема Stumped. Somebody Help me please!
Дата
Msg-id 387CFB3A.E5E1C7A9@levelogic.com
обсуждение исходный текст
Список pgsql-general
I'm trying to create a table which has two keys, but on of the keys auto-increments depending on the second key.

key1  | key2
------------
1     | NJ
2     | NJ
1     | CA
2     | CA
3     | CA
4     | CA

Now, with a single insert statement, I would like the next entry to be (3,'NJ');
Can anyone point me in the right direction or give me any clues?

I would be MOST appreciative.  TIA.

Arthur

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Simulating an outer join
Следующее
От: "Arthur M. Kang"
Дата:
Сообщение: Help Please!