Re: Strategy for Primary Key Generation When Populating Table

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Strategy for Primary Key Generation When Populating Table
Дата
Msg-id alpine.LNX.2.00.1202091249550.5256@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Strategy for Primary Key Generation When Populating Table  (Andy Colson <andy@squeakycode.net>)
Список pgsql-general
On Thu, 9 Feb 2012, Andy Colson wrote:

> If you create a serial column, dont put the column name or a value into your
> insert statement.
>
> create table junk (id serial, stuff text);
> insert into junk(stuff) values ('my stuff');

Andy,

   That's what I assumed would work but did not know for sure.

Thanks,

Rich


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

Предыдущее
От: Gary Chambers
Дата:
Сообщение: Re: Warning: you don't own a lock of type ExclusiveLock
Следующее
От: Daniel Vázquez
Дата:
Сообщение: initdb $PGDATA not working