How can I truncate all user table in oracle? I have problem with tables constraints.
A:
No need for variables
begin
for r in (select table_name from user_tables) loop
execute immediate 'truncate table ' || r.table_name;
end loop;
end;
Regards K
Khb
2009-11-08 15:08:29
-1 Doesn't address the need to handle constraints
APC
2009-11-09 12:11:51