Re: customising serial type - Mailing list pgsql-sql

From Stefan Becker
Subject Re: customising serial type
Date
Msg-id 200506211834.39833.stefan@yukonho.de
Whole thread Raw
In response to customising serial type  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
List pgsql-sql
Am Dienstag, 21. Juni 2005 12:01 schrieben Sie:
> hi,in a table with a serial datatype, how do i get the sequence to start at
> a specific number like 100000?


Use START in the create sequence statement.
#

create sequence seq_xeingang increment 1 start 1000;
;

CREATE TABLE xeingang  
(  id            integer default nextval('seq_xeingang'), buch        char not null,  eingdt      date not null, jnr
      integer not null, grp           integer, code          integer not null
 
);



my best regards..

Stefan




pgsql-sql by date:

Previous
From: Zac
Date:
Subject: SELECT INTO returning more than one row
Next
From: MRB
Date:
Subject: ENUM like data type