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: Can you pass a table name into a stored procedure?

Re: Can you pass a table name into a stored procedure?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 08 Dec 2005 19:27:48 +0100
Message-ID: <elugp15ig44qm8hu3aqdppd75gq1cuufao@4ax.com>


On 8 Dec 2005 08:03:12 -0800, "dean" <deanbrown3d_at_yahoo.com> wrote:

>
>However, I did try you method Malcolm, in fact I had in mind to try a
>union at some point anyway, and it does work. However, although its
>fast enough doing counts, I think we would lose all indexes on
>individual tables if we we try joining to them. This works, anyway:

It also demonstrates you can merge the various tables into one, as every table has a column tab_num with a default value of the table number.
You should get right of the distinct tables asap. And, BTW, if they have been properly set up, you won't loose indexes.

--
Sybrand Bakker, Senior Oracle DBA
Received on Thu Dec 08 2005 - 12:27:48 CST

Original text of this message

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