Re: Primary Key: How Do I Generate One For Insert ... - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Primary Key: How Do I Generate One For Insert ...
Date
Msg-id 20020806114542.A85827-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Primary Key: How Do I Generate One For Insert ...  (Jim <REMOVEjimdon@sympatico.caREMOVE>)
List pgsql-general
On Sun, 4 Aug 2002, Jim wrote:

> Hello,
>
> How do I generate a primary key (that is an INTEGER) to insert data into
> a table. Or do I need to know whats used?

If you want an autogenerated one (ie, you don't have values you want to
insert specifically), you probably want to look at serial and sequences.



pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Cannot use more than 16 attributes in an index
Next
From: "scott.marlowe"
Date:
Subject: Re: Cannot use more than 16 attributes in an index