auto increment - Mailing list pgsql-general

From Marcos
Subject auto increment
Date
Msg-id 3A0A82E7.EDED0F1D@second.ival.es
Whole thread Raw
Responses Re: auto increment  ("Oliver Elphick" <olly@lfix.co.uk>)
Re: auto increment  ("Martin A. Marques" <martin@math.unl.edu.ar>)
List pgsql-general
hi,

    i am creating a table and i want to add an auto incrementable field

    is that correct?

psql ival << EOF
create table partes (
codigo int not null auto_increment,
usuario varchar(15),
fecha date,
proyecto varchar(30),
horas int4,
trabajo varchar(100),
observaciones varchar(90),
primary key(codigo));
EOF

how can i do it?

thanks in advance,

marcos

--
m a r c o s @ i v a l . e s


pgsql-general by date:

Previous
From: Hervé Piedvache
Date:
Subject: Re: Really SLOW using GROUP BY ...!?
Next
From: Denis Perchine
Date:
Subject: ERROR: Index 1821202 does not exist