SELECT 'DROP '||table_name||' AS'||' CASCADE;' as dropsql FROM DBA_tables where owner=upper('scott')
--查询当前用户下的所有表
select * from user_tables;
SELECT 'DROP '||table_name||' AS'||' CASCADE;' as dropsql FROM DBA_tables where owner=upper('scott')
--查询当前用户下的所有表
select * from user_tables;
转载于:https://www.cnblogs.com/joeshang/p/10859976.html