查詢當(dāng)前用戶下沒(méi)有數(shù)據(jù)的表
select u.table_name from user_tables u where u.num_rows = 0;
查詢某個(gè)用戶下沒(méi)有數(shù)據(jù)的表
select t.table_name from all_tables t where t.owner='用戶' and t.num_rows=0;
查詢當(dāng)前用戶下沒(méi)有數(shù)據(jù)的表
select u.table_name from user_tables u where u.num_rows = 0;
查詢某個(gè)用戶下沒(méi)有數(shù)據(jù)的表
select t.table_name from all_tables t where t.owner='用戶' and t.num_rows=0;