Re: automatic numbering in a new column

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: automatic numbering in a new column
Дата
Msg-id 1314211948.2193.39.camel@localhost.localdomain
обсуждение исходный текст
Ответ на automatic numbering in a new column  (ppdcc@sapo.pt)
Список pgadmin-support
A few comments before answering:
1. Don't top post. It makes it hard to read.
2. Reply to the list.
3. Choose your list more carefully. pgadmin-support is about pgAdmin  support, not about SQL.

This being said, I'll quickly answer your question...

On Wed, 2011-08-24 at 19:47 +0100, ppdcc@sapo.pt wrote:
> and how i do that?
> 
> cAN you make a example for me
> 

CREATE TABLE t1 (c1 serial, c2 text);

c1 will be automatically numbered if you don't set a value for it. Just
like this: INSERT INTO t1 (c2) VALUES ('hello');


-- 
Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com



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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: automatic numbering in a new column
Следующее
От: "Cuddihy, Joe"
Дата:
Сообщение: admin