select * from TAB where TABTYPE='TABLE';和select * from user_tables;是一个意思,取的是用户表。
select * from all_tables;是系统所有表。
select * from tab; 是用户表和一些视图。
所以select * from all_tables遍历的速度要慢。
第一种速度要快。