[PERL DBI] Insertiing data across multiple tables

From: "JD Wong" <asi4man(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: [PERL DBI] Insertiing data across multiple tables
Date: 2008-07-24 20:36:27
Message-ID: cc843d4e0807241336s65e467dcmf69708f2584bce68@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does anybody know how to insert data over multiple tables transactionally?
The relationship is 1:1 with the latter table having a foreign key
constraint. In order to add data to Table2 I need to know the primary key
value of the same record in Table1 before it's committed, which in this case
is a serial integer which of course is regulated by an implicit index. Does
anybody know how to access a column's index in the Perl DBI?
-thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message SCassidy 2008-07-24 21:17:18 Re: [PERL DBI] Insertiing data across multiple tables
Previous Message Dave Page 2008-07-24 20:25:25 Re: mac install question