From: hubert depesz lubaczewski Date: 2005-06-24T16:40:39+09:00 Subject: Re: PostgreSQL Inserted OID nexus wyrze�bi�(a): > always one offs so I'm just looking for the simplest/quickest way to get > the data imported. i assume that you do it more or less this way: insert into tablea (...) values (...); getoid(); insert into tableb (...) values (this_oid, ...); in this case - just use sequences, and to: insert into tablea (...) values (...); insert into tableb (...) values (currval('name_of_sequence_from_tablea'), ...); depesz -- *------------------------------------------------------------------* najwspanialsz� rzecz� jak� da�o nam nowoczesne spo�ecze�stwo, jest niesamowita wr�cz �atwo�� unikania kontakt�w z nim