Row ID and auto-increment? - Mailing list pgsql-general

From Raymond Chui
Subject Row ID and auto-increment?
Date
Msg-id 3A8AF3BB.C9370731@noaa.gov
Whole thread Raw
Responses Re: Row ID and auto-increment?  ("Brent R. Matzelle" <bmatzelle@yahoo.com>)
List pgsql-general
If I create a table like

create table tablename (
aNum    integer not null,
name    varchar(10)
);

If I do select * from tablename;

q1. Is there such thing rowid similar to Oracle in PostgreSQL?
q2. How do I make aNum auto increment by 1? Need to write
a trigger? how to write that?
I want to enforce column aNum 0,1,2,.....n.
I want to prevent data entry people input 0,1,4,5,8,...n.
Thank you very much in advance!




--Raymond


Attachment

pgsql-general by date:

Previous
From: Dan McGrath
Date:
Subject: Re: Row ID and auto-increment?
Next
From: Ramses Smeyers
Date:
Subject: statistics