oracel 批量删除当前用户下所有的表的数据及所有的表
拼接删除数据的语句:
SELECT 'DELETE FROM '|| table_name || ';' FROM USER_TABLES
ORDER BY TABLE_NAME;
拼接删除表的语句:
select 'drop table '||table_name||';' from cat where table_type='TABLE'
oracel 批量删除当前用户下所有的表的数据及所有的表
拼接删除数据的语句:
SELECT 'DELETE FROM '|| table_name || ';' FROM USER_TABLES
ORDER BY TABLE_NAME;
拼接删除表的语句:
select 'drop table '||table_name||';' from cat where table_type='TABLE'