Re: Sequence Incrementing by 2 insted of 1

Поиск
Список
Период
Сортировка
От David
Тема Re: Sequence Incrementing by 2 insted of 1
Дата
Msg-id 20090428071955.GC17477@daboyz.dyndns.org
обсуждение исходный текст
Ответ на Re: Sequence Incrementing by 2 insted of 1  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Ok got permission to send the code I think I have got all the relevent bits.

On Tue, Apr 28, 2009 at 01:01:39AM -0600, Scott Marlowe wrote:
> On Tue, Apr 28, 2009 at 12:38 AM, David <david@vanlaatum.id.au> wrote:
> > Looked for that can't find anything and there is no reason why someone would have added that.
>
> Well, unless you've got some example code for us to look at, it's
> kinda hard to tell you what's wrong.
>
> Often, you see people do something like this:
>
> insert into autoincrementingtable values (DEFAULT, 'a', 500);
> select nextval('autoinctable_seq');
> yada yada yada
>
> or something like that.  i.e. there's an implicit call to the nextval
> with the insert, and another explicit one somewhere in your code.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--

Вложения

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Sequence Incrementing by 2 insted of 1
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: Sequence Incrementing by 2 insted of 1