PRIMARY KEYS

From: javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es>
To: pgsql-general(at)postgresql(dot)org
Subject: PRIMARY KEYS
Date: 2003-05-20 09:04:02
Message-ID: 200305200852.h4K8pmI23465@natura.cebas.csic.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi;
I'm pretty new in Postgres.
I've created several tables but I didn't care about PRIMARY KEYS in the
begining. Now I woul like to add them to the tables.
I've read that PostgreSQL adds an automatic column called OID to each table;
but when I do a SELECT, the OID column doesn't not appear.
Is this OID column a PRIMARY KEY by default? Can I see it?
How can I see what column is the primary key in a table?
Can I select, at any moment a different Prymary Key?
Can I alter the values of a Prymary Key in a Table?

Thanks and forgive me for these basic questions.

Best wishes
Javier

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kaarel 2003-05-20 10:01:01 INSERT/UPDATE/DELETE Views
Previous Message nolan 2003-05-20 08:10:09 Re: [General] pg_atoi problem with 7.3.2