Re: sequence last_value - Mailing list pgsql-novice

From Vijay Deval
Subject Re: sequence last_value
Date
Msg-id 3BC82AB9.47FBE8FC@giaspn01.vsnl.net.in
Whole thread Raw
In response to sequence last_value  ("Duncan Adams (DNS)" <duncan.adams@vcontractor.co.za>)
List pgsql-novice
The syntax for insertion could be like

insert into loc (bulding_key,floor,ref) values (1,1 'help');

If you have dropped table, it would be necessary to drop
key_location_seq explicitly.

Vijay

"Duncan Adams (DNS)" wrote:
>
> Hi
>
> I really need help on this one. can any one please explain to me how
> "SERIAL PRIMARY KEY "
>
> wireman=# insert into loc values (1,1,'HELP');
> ERROR:  Cannot insert a duplicate key into unique index loc_pkey



pgsql-novice by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: installation problem -please help
Next
From: Vijay Deval
Date:
Subject: Re: installation problem -please help