Re: Creating a table

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Creating a table
Дата
Msg-id 200111120354.fAC3siE13775@candle.pha.pa.us
обсуждение исходный текст
Ответ на Creating a table  ("Reuben Olson" <reuben.olson@clear.net.nz>)
Список pgsql-general
> Hi there
>
> I am converting a mySQL database to postgresql database and I
> was wondering if there was any auto increment function like
> there is in mysql or di I need to use a sequence or something...

Sure, sequences.  If you define a column as type SERIAL you get a
sequence default on the column.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Creating a table
Следующее
От: Travis Bauer
Дата:
Сообщение: [general] Permissions