Re: currval, lastval, nextvar?
От
Andreas Kretschmer
Тема
Re: currval, lastval, nextvar?
Дата
Msg-id
20090423161739.GA8570@tux
Ответ на
Re: currval, lastval, nextvar? (Tom Lane)
Список
Дерево обсуждения
currval, lastval, nextvar? Carol Walter <walterc@indiana.edu>
Re: currval, lastval, nextvar? johnf <jfabiani@yolo.com>
Re: currval, lastval, nextvar? Andreas Wenk <a.wenk@netzmeister-st-pauli.de>
Re: currval, lastval, nextvar? "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: currval, lastval, nextvar? Tom Lane <tgl@sss.pgh.pa.us>
Re: currval, lastval, nextvar? Andreas Kretschmer <akretschmer@spamfence.net>
Re: currval, lastval, nextvar? Tom Lane <tgl@sss.pgh.pa.us>
Re: currval, lastval, nextvar? Carol Walter <walterc@indiana.edu>
Tom Lane wrote: > "A. Kretschmer" writes: > > Yes. You don't need call nextval. > > Well, you do, but the point is that the default expression for a > serial column includes the nextval() call. Look at the table with > \d, eg > > So if you do an insert that doesn't provide a value for that column, > the nextval is done implicitly. Right, i know. You don't need call nextval _explicit_, okay? Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
В списке pgsql-novice по дате отправления