Re: creating "job numbers"

Поиск
Список
Период
Сортировка
От jdassen@cistron.nl (J.H.M. Dassen (Ray))
Тема Re: creating "job numbers"
Дата
Msg-id slrn9bk07e.v22.jdassen@odin.cistron-office.nl
обсуждение исходный текст
Ответ на creating "job numbers"  ("postgresql" <pgsql@symcom.com>)
Список pgsql-sql
postgresql <pgsql@symcom.com> wrote:
>I can not first ask with the number will be, and asking for the previous
>oid after  the fact can also lead to  the same problem.

If you use sequences and the currval() and nextval() functions, you can. See
e.g. http://www.postgresql.org/docs/aw_pgsql_book/node85.html .

HTH,
Ray
-- 
"a infinite number of monkeys typing into GNU emacs would never make a good
program".../linux/Documentation/CodingStyle



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

Предыдущее
От: "postgresql"
Дата:
Сообщение: creating "job numbers"
Следующее
От: Andrew Perrin
Дата:
Сообщение: Re: creating "job numbers"