Re: Auto incrementing an integer

From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Sylte <Sylte_(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Auto incrementing an integer
Date: 2001-05-14 15:15:45
Message-ID: 989853345.3afff6a1a3a45@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Quoting Sylte <Sylte_(at)hotmail(dot)com>:

> How do I construct a datatype that autoincrement in postgreSQL?

See sequences and the SERIAL type.

Saludos... :-)

--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Cwhisperer 2001-05-14 15:21:07 Case
Previous Message David D. Kilzer 2001-05-14 14:42:15 Re: Using ORDER BY with AGGREGATE/GROUP BY in a SELECT statement