top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to list the tables from Schema with more than X rows in Oracle PLSQL

+2 votes
513 views
How to list the tables from Schema with more than X rows in Oracle PLSQL
posted Sep 15, 2014 by Vidhya Sagar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

CREATE OR REPLACE FUNCTION rowcount(tname VARCHAR2)
RETURN NUMBER
IS
x NUMBER;
stmt VARCHAR2(200);
BEGIN
stmt := 'select count(*) from '||tname;
execute immediate stmt into x;
return x;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN 0;
END;

answer Sep 15, 2014 by Arun Gowda
Similar Questions
+1 vote

when ever i run the anonymous plsql block, sql*plus request me enter the parameter input value

I have a variable value like customer_name='xxxcust & lt pvt'

please help me

+1 vote

Do i need to write in PL/SQL or is it possible in SQL query?

...