Received: from temp.joelburton.com (temp.joelburton.com [209.190.238.101]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9JKWfP75561 for ; Fri, 19 Oct 2001 16:32:41 -0400 (EDT) (envelope-from joel@joelburton.com) Received: by temp.joelburton.com (Postfix, from userid 501) id 579D02B996; Fri, 19 Oct 2001 16:34:26 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by temp.joelburton.com (Postfix) with ESMTP id 559C32B991; Fri, 19 Oct 2001 16:34:26 -0400 (EDT) Date: Fri, 19 Oct 2001 16:34:26 -0400 (EDT) From: Joel Burton To: Stefan Lindner Cc: Subject: Re: system maintained keys In-Reply-To: <9qf06v$20bh$1@news.tht.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200110/285 X-Sequence-Number: 5238 On Mon, 15 Oct 2001, Stefan Lindner wrote: > Is there any way to get system maintained keys from postgres? e.g. to > have a table with a primary key column (varchar or int) and let postgres > chose the next unique value for this column? \h CREATE SEQUENCE will give syntax, or look up SEQUENCES and SERIAL data type in the documentation. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant