How to make the key in table increase automatically?

Mathias Göthberg <s97math@student.informatik.gu.se>

From: Mathias Göthberg <s97math@student.informatik.gu.se>
To: <pgsql-novice@postgresql.org>
Date: 2000-08-24T18:24:32Z
Lists: pgsql-novice
How to make the key in a table increase automatically with 1 every time a new row is added?

That is, when I add a new row with all attributes except the primary key, I want the primary key in that row to have a unique number that is 1 higher than the previous row.

Mathias