Re: Autoincremental value

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Autoincremental value
Дата
Msg-id 20040813200923.GA8550@wolff.to
обсуждение исходный текст
Ответ на Autoincremental value  (adburne@asocmedrosario.com.ar)
Список pgsql-general
On Fri, Aug 13, 2004 at 13:50:48 -0300,
  adburne@asocmedrosario.com.ar wrote:
> Hi I'm a newbie in postgresql, I came from MSSQL, MySQL and now
> I'm testing postgres.
> In mysql there is a way to make a second autoincrement field, just:

Use serial for the type. You probably want to read up on sequences
and the serial type (which is really a macro for an int plus a default
based on a sequence) as the semantics are not identical with autoincrement.

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

Предыдущее
От: Josué Maldonado
Дата:
Сообщение: Re: Autoincremental value
Следующее
От: Mage
Дата:
Сообщение: Re: Autoincremental value