Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

exec procedure

pramodh kotagiriApr 15 2011 — edited Apr 15 2011
Hi All,

I am using 10g.

my requirement i will exec a procedure which will have parameter, the parameter will be table which will be sent in run time.

In output i need count of table, display all the data, display the table datatype


This is the procedure which i have wrote. please suggest the change i have to do.

CREATE OR REPLACE PROCEDURE TEST_PROC_123(input varchar2) is
begin

DBMS_OUTPUT.PUT_LINE('select count(*) from' || ' ' || input||';');
DBMS_OUTPUT.PUT_LINE('select * from' || ' ' || input||';');
DBMS_OUTPUT.PUT_LINE('select count(*) from' || ' ' || input||';');
end;

Thanks in advance.

Edited by: user10285804 on Apr 15, 2011 10:11 PM

Edited by: user10285804 on Apr 15, 2011 10:39 PM

Edited by: user10285804 on Apr 15, 2011 10:43 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2011
Added on Apr 15 2011
8 comments
156 views