查找数据库中没有数据的表
2017-09-01 本文已影响0人
forever_smile
查询当前用户下没有数据的表
select u.table_name from user_tables u where u.num_rows = 0;
查询某个用户下没有数据的表
select t.table_name from all_tables t where t.owner='用户' and t.num_rows=0;
查询当前用户下没有数据的表
select u.table_name from user_tables u where u.num_rows = 0;
查询某个用户下没有数据的表
select t.table_name from all_tables t where t.owner='用户' and t.num_rows=0;