How can I truncate all user table in oracle? I have problem with tables constraints.
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