Re: PRIMARY KEY - Mailing list pgsql-sql

From Richard Huxton
Subject Re: PRIMARY KEY
Date
Msg-id 45EEA72B.1020607@archonet.com
Whole thread Raw
In response to PRIMARY KEY  ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>)
List pgsql-sql
Shavonne Marietta Wijesinghe wrote:
> Hello
> 
> I have created a table
> CREATE TABLE MOD48_00_2007 ( ID text, N_GEN int PRIMARY KEY, FORMSTORE text, COD_NOTAIO text, PA_COGNOME text);
> 
> And i insert the rows via a form in ASP. When the form loads i have a functin that goes and gets the value of the
fieldN_GEN adds 1 to it and shows it to the user.
 
> The problem is when i have 2 users working at the same time.

Check the manuals for "sequences" and "serial type".

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: "Shavonne Marietta Wijesinghe"
Date:
Subject: PRIMARY KEY
Next
From: "M.P.Dankoor"
Date:
Subject: Re: PRIMARY KEY