SELECT * FROM ALL_TABLES;系统里有权限的表SELECT * FROM DBA_TABLES; 系统表SELECT * FROM USER_TABLES; 当前用户下的表
select 'TRUNCATE TABLE MZGL.'|| TABLE_NAME ||'; ANALYZE TABLE MZGL.' || TABLE_NAME || ' ESTIMATE STATISTICS;' from ALL_TABLES where owner='MZGL'