tab是一个sys视图, select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+)用户所建的表一般放在用户所建的表空间中,用于存放用户自己所需处理的数据的
select o.name,
decode(o.type#, 2, 'TABLE', 3, 'CLUSTER',
4, 'VIEW', 5, 'SYNONYM'), t.tab#
from sys.tab$ t, sys.obj$ o
where o.owner# = userenv('SCHEMAID')
and o.type# >=2
and o.type# <=5
and o.linkname is null
and o.obj# = t.obj# (+)用户所建的表一般放在用户所建的表空间中,用于存放用户自己所需处理的数据的