Oracle中快速清空当前用户的所有表数据

写一个函数

begin
for x in (select table_name from user_tables) loop
execute immediate 'truncate table ' || x.table_name ;
end loop ;
end ;

原文地址:https://www.cnblogs.com/adamgq/p/13138912.html