How to do auto numbering on INT column

From: "Junkone" <junkone1(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to do auto numbering on INT column
Date: 2006-08-10 15:06:00
Message-ID: 1155222360.588541.77300@m73g2000cwd.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HI
I have a simple table created using PGAdmin III. How do i do a auto
numbering on a column SYMBOL_ID?
My table is
CREATE TABLE "SYMBOL"
(
"SYMBOL_ID" int4 NOT NULL,
"SYMBOL2EXCHANGE" int2 NOT NULL,
"SYMBOL_ALIAS" text[],
"RELATED_SYMBOLS_OTHER_EXCHANGES" int8[],
"SYMBOL_NAME" text,
"COMPANY_NAME" text,
"SYMBOL2SECTOR" int2,
"SYMBOL2INDUSTRY" int4,
"STOCK_SUMMARY" text
)

Thanks

Seede

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2006-08-10 15:33:42 Re: CURRENT_TIMESTAMP wierd behaviour
Previous Message Tom Laudeman 2006-08-10 15:00:00 Re: Tuning to speed select