Primary key

From: "Peter Evens" <peter(at)bandit(dot)be>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Primary key
Date: 2011-03-14 07:58:39
Message-ID: 916ACFE2E2684C7E9FFBD5D8EBBBCEA0@PCPETER
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hello,

i have a question about the PRIMARY KEY,

how can we let it start from for example 1000 instead of 1?

This is our program:

CREATE TABLE hy3_pack

(

hy3_id serial NOT NULL,

hy3_serie_nummer text NOT NULL,

hy3_barcode text NOT NULL,

hy3_type_vulling text NOT NULL,

hy3_tarra_gewicht text,

hy3_artikel_id numeric NOT NULL,

hy3_refill boolean,

vernietigd boolean,

opmerking text,

CONSTRAINT hy3_pack_pkey PRIMARY KEY (hy3_id)

)

WITH (

OIDS=FALSE

);

ALTER TABLE hy3_pack OWNER TO postgres;

what must i change in my program?

Met vriendelijke groeten,
Peter Evens
BANDIT nv/sa
Nijverheidslaan 1547
B-3660 Opglabbeek
België
Tel. 0032/89/85.85.65
Fax 0032/89/51.85.47
peter(at)bandit(dot)be

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vogt, Michael 2011-03-14 09:24:17 Autocommit off - commits/rollbacks
Previous Message Peter Evens 2011-03-14 07:57:07 primary key