From: | Jean-Christophe Boggio <cat(at)thefreecat(dot)org> |
---|---|
To: | Aristide Aragon <aristide(at)lionking(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Error creating tables. |
Date: | 2000-10-12 19:01:37 |
Message-ID: | 17226788475.20001012210137@thefreecat.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Salut Aristide,
Le Thursday, October 12, 2000 à 7:23:18 PM, tu me disais:
AA> create table test (id serial, name varchar(10) ) ;
AA> returns:
AA> NOTICE: CREATE TABLE will create implicit sequence 'test_id_seq' for SERIAL column 'test.id'
AA> NOTICE: CREATE TABLE/UNIQUE will create implicit index 'test_id_key' for table 'test'
AA> ERROR: cannot create test_id_seq
Maybe the test_id_seq sequence already exists (you created the table
already, dropped it and, as someone said today, the DROP does not
automagically get rid of the automagic sequence created when you
declare a SERIAL field).
You can try :
DROP SEQUENCE test_id_seq;
Just guessing...
--
Jean-Christophe Boggio
cat(at)thefreecat(dot)org
Independant Consultant and Developer
Delphi, Linux, Oracle, Perl
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Lang | 2000-10-12 19:03:25 | Re: Re: PostgreSQL book |
Previous Message | K Parker | 2000-10-12 18:48:04 | Re: PostgreSQL book |