pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Louis Bertrand <louis@bertrandtech.on.ca>
To: Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
Cc: pgsql-php@postgresql.org
Subject: Re: phpPgAdmin users
Date: Thu, 11 Jan 2001 20:22:43 -0500 (EST)
Message-ID: <Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts> (raw)
In-Reply-To: <4.3.2.7.2.20010111163429.00b4afb8@rccd.cc.ca.us>

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  <louis@bertrandtech.on.ca> 


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
> 
> 




view thread (2+ messages)

Message-ID: <Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts>
Permalink:  ../Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts/
Also on:    postgresql.org/message-id/Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: louis@bertrandtech.on.ca, jcuz@rccd.cc.ca.us
  Subject: Re: phpPgAdmin users
  In-Reply-To: <Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts>
  References: <4.3.2.7.2.20010111163429.00b4afb8@rccd.cc.ca.us> <Pine.BSO.4.20.0101112017170.6558-100000@grendel.bts>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox