postgresql <pgsql(at)symcom(dot)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