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

Home -> Community -> Usenet -> c.d.o.server -> Re: dynamically query from multip tables

Re: dynamically query from multip tables

From: Valentin Minzatu <valentinminzatu_at_yahoo.com>
Date: 13 Feb 2007 07:14:00 -0800
Message-ID: <1171379640.497289.276510@j27g2000cwj.googlegroups.com>


On Feb 13, 10:05 am, "Peter Parker" <spider..._at_home.com> wrote:
> Hello,
>
> Is it possible to use pl/sql script to dynamically query all the tables
> owned by a user with a select statement and flag the query that yield
> result? For example, I like to apply the following statement:
>
> select * from [table_name] where id = 'some_id'
>
> to all tables and out put the table_name(s) that satisfies the query. Please
> help. Thanks

Yes. Take a look at EXECUTE IMMEDIATE syntax in PL/SQL User's Guide and Reference manual. Received on Tue Feb 13 2007 - 09:14:00 CST

Original text of this message

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