Problem in populating tables

From: "dorellik1" <dorellik1(at)inwind(dot)it>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Problem in populating tables
Date: 2003-01-26 20:54:53
Message-ID: 000901c2c57d$2ddc6e80$0100a8c0@y5k4k1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

To populate the tables of a database ( drawn from a book )I
have followed two strategies.
The first one :

1)I create the tables without any definition of foreign keys.
2)I have altered the tables to add the foreign keys.
3)I populate the tables obtaining error ( obvious ).

The second one :

1)I create the tables without any definition of foreign keys.
2)I populate the tables without obtaining any error.
3)I have altered the tables to add the foreign keys with three
error out seven ALTER TABLE --- .

I think that the sql to create and alter the table is lawfull
because in the first try the steps 1) and 2) execute flawless.

Then where is the problem ?

In sqlcode.txt there is the sql to create and alter the tables.

In error.txt there are the reported errors.

The postgresql version is 7.2.2 on a Mandrake 9.0.


Thanks.

Attachment Content-Type Size
error.txt text/plain 2.0 KB
sqlcode.txt text/plain 1.4 KB

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Art Fore 2003-01-26 22:56:15 Re: postgresql with SuSE 8.0
Previous Message Ben Prescott 2003-01-26 19:26:49 Re: postgresql with SuSE 8.0