Increment primary key

From: impala <bhnnc(at)yahoo(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Increment primary key
Date: 2002-04-03 18:58:32
Message-ID: 20020403185832.42583.qmail@web14908.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

I created a table and the primary key must increment
automatically with e.g 1 each time I insert a new row.
How do I write the psql code to make this happen?

Nic

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-04-03 19:07:41 Re: [SQL] Logging option
Previous Message mlw 2002-04-03 18:43:21 Re: Suggestions please: names for function