Re: copy row tree - Mailing list pgsql-general

From Michael Raven
Subject Re: copy row tree
Date
Msg-id 8445042.post@talk.nabble.com
Whole thread Raw
In response to copy row tree  ("Toni Casueps" <casueps@hotmail.com>)
List pgsql-general

Toni Casueps wrote:
>
>
> I have a set of tables with one-to-many relationships between them:
>
> T1 <-->> T2 <-->> T3 <-->> T4
>
> I need to copy some rows of these tables to another set of tables which
> have
> the same fields. There are two rows on T1 that I want to copy, and then
> those rows of T2 linked to the other ones, and so on.
>
> Is there a way to accomplish this? I have pgadminIII, DBManager and EMS
> Postgresql Manager.
>
>

Is there foreign keys constrains between tables T1, T2, T3 and T4 or just
logical relationship?
EMS Postgresql Manager has visual query designer and dependency viewer. Use
it features to select disired records and insert it into second set of
tables. Also
--
View this message in context: http://www.nabble.com/-GENERAL--copy-row-tree-tf3026502.html#a8445042
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: "Jan Muszynski"
Date:
Subject: Multiple column index question.
Next
From: Benedict Faria
Date:
Subject: Help : Microsoft SQL Server equivalents in PostGreSQL