写一个函数

 

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

相关文章: