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 -> Oracle Procedure Problem

Oracle Procedure Problem

From: Kuldeep <kuldeepchitrakar_at_gmail.com>
Date: 21 Apr 2006 06:05:12 -0700
Message-ID: <1145624712.459251.266620@i40g2000cwc.googlegroups.com>


create procedure tab_rows

                IS
                tab_name varchar(50);
                declare cursor all_tabs is
                        select table_name
                        from user_tables;
                begin
                        create table temptab (rowc number (10));
                        open all_tabs;
                        Loop
                            fetch all_tabs into tab_name;
                                insert into temptab(rowc) select
count(*) from tab_name;
                            exit when all_tabs%notfound;
                        End loop;
                close all_tabs;
        End;

temptab has only one column rowc(number)

Objective : ; procedure will return count(*) of all user tables.

But above procedure is giving Error :Procedure created with compilation errors.

Can anybody has workaround over it Received on Fri Apr 21 2006 - 08:05:12 CDT

Original text of this message

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