Re: Autoincremental value

Поиск
Список
Период
Сортировка
От Mage
Тема Re: Autoincremental value
Дата
Msg-id 411D1C61.8060007@mage.hu
обсуждение исходный текст
Ответ на Autoincremental value  (adburne@asocmedrosario.com.ar)
Ответы Re: Autoincremental value  (adburne@asocmedrosario.com.ar)
Список pgsql-general
adburne@asocmedrosario.com.ar wrote:

>when insert rows:
>
>insert into table1 (field1) values (1);
>insert into table1 (field1) values (1);
>insert into table1 (field1) values (2);
>
>and then select * from table1, you get:
>field1| field2
>------+-------
>  1   |  1
>  1   |  2
>  2   |  1
>------+-------
>
>
Do you mean:


 field1| field2
 ------+-------
   1   |  1
   1   |  2
   2   |  3
 ------+-------

You need the serial type.

          Mage

--
http://mage.hu


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Autoincremental value
Следующее
От: Ben
Дата:
Сообщение: Re: Autoincremental value