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: How do you search through multiple tables?

Re: How do you search through multiple tables?

From: Buck Turgidson <jc_va_at_hotmail.com>
Date: Wed, 19 Feb 2003 08:43:44 -0500
Message-ID: <3e538548$1_6@news.teranews.com>


Something like this?

declare

        l_stmt varchar2(2000);
begin

        for X in (select table_name from user_tables where ...)
        loop
            l_stmt := 'select * from ' || x.table_name || ' where...';
            execute immediate l_stmt;
        end loop;

end; Received on Wed Feb 19 2003 - 07:43:44 CST

Original text of this message

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