Re: serial properties

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: serial properties
Дата
Msg-id 002d01c0a294$133b8060$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на serial properties  ("Martin A. Marques" <martin@math.unl.edu.ar>)
Список pgsql-general
From: "Martin A. Marques" <martin@math.unl.edu.ar>


> Hi, I would like to know which are the properties of the SERIAL type.
> Is a column defined SERIAL a primary key?
>
> Saludos... :-)

Basically serial is NOT NULL with DEFAULT of nextval(some-sequence) and a
primary key index defined on it. In fact if you do a \d on the table
concerned, that's what it'll say.

It's really just shorthand to save typing

- Richard Huxton


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

Предыдущее
От: "Jens Hartwig"
Дата:
Сообщение: AW: AW: Addison-Wesley looking for authors
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: EXECUTE in PLPGSQL