Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Verweis auf unbekannte Tabelle?

Re: Verweis auf unbekannte Tabelle?

From: Dirk Schwarzmann <Dirk.Schwarzmann_at_gmx.de>
Date: Sun, 2 Feb 2003 18:40:47 +0100
Message-ID: <b1jl3u$1446bg$1@ID-93128.news.dfncis.de>


Sorry, I´ve forgotten that this is an english newsgroup. So, once again in english:

I´d like to save (in a table called X) the ID of rows of currently unknown tables.

I created a structure for table X as following:

FOREIGN_ID number, -- id of the row in the unknown table
FOREIGN_PK varchar2(30), -- name of the table's primary key
FOREIGN_SCHEMA varchar2(30), -- schema name
FOREIGN_TABLE varchar(30) -- table name

Now, how can I select the specified row? I would think of something like this:

select * from
  FOREIGN_SCHEMA.FOREIGN_TABLE a
where
  a.FOREIGN_PK = 'FOREIGN_ID'

In this, all FOREIGN_* values should be evaluated and replaced with the values stored in table X.

Many thanks in advance,
Dirk Received on Sun Feb 02 2003 - 11:40:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US