From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Marcos <marcos(at)second(dot)ival(dot)es> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: auto increment |
Date: | 2000-11-09 11:58:21 |
Message-ID: | 200011091158.eA9BwN526524@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Marcos wrote:
>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,
^^^^^^^^^^^^^^
should be SERIAL
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"O death, where is thy sting? O grave, where is
thy victory?" 1 Corinthians 15:55
From | Date | Subject | |
---|---|---|---|
Next Message | Martin A. Marques | 2000-11-09 12:00:13 | Re: TEXT and BLOBS |
Previous Message | Denis Perchine | 2000-11-09 11:28:47 | ERROR: Index 1821202 does not exist |