From: Indraneel Majumdar <indraneel@www.cdfd.org.in>
To: pgsql-sql@postgresql.org
Subject: Re: Antw: many-many mapping between unique tables
Date: Mon, 16 Oct 2000 14:54:47 -0700 (PDT)
Message-ID: <Pine.SGI.3.96.1001016144209.121309E-100000@www.cdfd.org.in> (raw)
In-Reply-To: <s9ead40a.069@kopo001>
Sorry for splitting mails. Is there some way of using the oid of each
row to do the mapping instead of creating two more columns of integers?
The third table can then be like this:
create table T3(
T1 oid,
T2 oid
);
also how can I find out the oid of a particular row? and how can I use
this oid in a select statement?
Thanks,
Indraneel
On Mon, 16 Oct 2000, Gerhard Dieringer wrote:
> I don't know what type of data your columns x and y contain. If they are,
> for example, of type text and contain long strings, then it would be better
> to add an integer id column in each tables T1 and T2: x_id and y_id and
> use these ids in the table T12.
>
> Then you only have to repeat the (short) numeric vales in T12. But I think there
> is no way to totaly avoid any repetition.
>
> --------------
> Gerhard
>
/************************************************************************.
# Indraneel Majumdar ¡ E-mail: indraneel@123india.com #
# Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076 #
`************************************************************************/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: indraneel@www.cdfd.org.in
Subject: Re: many-many mapping between unique tables
In-Reply-To: <Pine.SGI.3.96.1001016144209.121309E-100000@www.cdfd.org.in>
References: <s9ead40a.069@kopo001> <Pine.SGI.3.96.1001016144209.121309E-100000@www.cdfd.org.in>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox