Received: from beastie.bertrandtech.on.ca (beastie.bertrandtech.on.ca [209.167.177.171]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0C0sep65475 for ; Thu, 11 Jan 2001 19:54:41 -0500 (EST) (envelope-from louis@bertrandtech.on.ca) Received: from grendel.bertrandtech.on.ca (cr120189-a.pr1.on.wave.home.com [24.114.29.31]) by beastie.bertrandtech.on.ca (Postfix) with ESMTP id D2331B48; Fri, 12 Jan 2001 00:54:56 +0000 (GMT) Received: from grendel.bts (grendel.bts [192.168.250.4]) by grendel.bertrandtech.on.ca (Postfix) with ESMTP id 3C7F611D0C; Thu, 11 Jan 2001 20:22:43 -0500 (EST) Date: Thu, 11 Jan 2001 20:22:43 -0500 (EST) From: Louis Bertrand X-Sender: louis@grendel.bts To: "Julio Cuz, Jr." Cc: pgsql-php@postgresql.org Subject: Re: phpPgAdmin users In-Reply-To: <4.3.2.7.2.20010111163429.00b4afb8@rccd.cc.ca.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200101/36 X-Sequence-Number: 101 Create a column with type SERIAL in the table, or if you want to have programmatic access to the number while you're handling the update, use a sequence. Don't take this as a flame, but if you're doing a lot of work with PostgreSQL, you really ought to buy the book. No conflict of interest here, just another satisfied reader... Ciao --Louis On Thu, 11 Jan 2001, Julio Cuz, Jr. wrote: > Hi-- > > I'm using phppgadmin for pgsql, how do i create a field called (i.e. ID) > that INCREASES by ONE AUTOMATICALLY each time a record is added? I want > pgsql to add it automatically. > > Thanks. > > Julio Cuz, Jr. > Riverside Community College > jcuz@rccd.cc.ca.us > >