Обсуждение: Automatic index numbers

Поиск
Список
Период
Сортировка

Automatic index numbers

От
Daniel Mendyke
Дата:
How can I automatically create a unique index
number when I add new data to a table?

Does this have to be done through a high level
language or does the database provide a function
for this?

-Daniel

--

To reach me remove the 'nospam.' from my address.
I can be reached at 'daniel at clacknet dot com'







Re: Automatic index numbers

От
Kees Kuip
Дата:
Daniel Mendyke wrote:
> 
> How can I automatically create a unique index
> number when I add new data to a table?
> 

Try 

CREATE TABLE test
(  id serial
)