How to perform a loop through all tables in pl/sql?
Answer Posted / chandrakant rathod
We can get all tables for particular instance using below block .
SET SERVEROUTPUT ON;
begin
for rec in (select object_name from user_objects where object_type='TABLE')
loop
dbms_output.put_line('TABLE'||rec.object_name);
end loop;
end;
/
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the difference between rollback and rollback to statements?
What is optimistic concurrency control? : Transact sql
What is sql entity?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
Name some usages of database trigger?
What is a record in pl/sql?
Can we use ddl commands in pl sql?
what is meant by urlencode and urldocode? : Sql dba
What is consistency?
What are the sql commands?
How are sql commands classified?
Why do we use function in pl sql?
What is difference between table and view?
what is table? : Sql dba
how can I make a script that can be bi-language (supports english, german)? : Sql dba