Automatic index numbers

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

Automatic index numbers

От:
Daniel Mendyke <daniel@clacknet.com>
Дата:

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 <keeskuip@technologist.com>
Дата:
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
)

FAQ