all_tables 描述当前用户访问的相关表:
[oracle@node01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on 星期四 10月 19 09:42:26 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create user tlcb identified by tlcb default tablespace users;
用户已创建。
SQL> grannt dba to tlcb;
SP2-0734: 未知的命令开头 "grannt dba..." - 忽略了剩余的行。
SQL> grant dba to tlcb;
授权成功。
SQL> create table test as select * from dba_objects;
表已创建。
SQL> select count(*) from test;
COUNT(*)
----------
1391440
SQL> select a.TABLE_NAME,a.NUM_ROWS,a.LAST_ANALYZED from user_tables a;
user_tables 的信息依赖于统计信息
最新推荐文章于 2024-11-15 14:06:24 发布
本文探讨了"user_tables"表中的信息如何依赖于数据库的统计信息,强调了统计信息在优化查询性能方面的重要性。通过实例分析,展示了当统计信息不准确时,可能对查询计划选择造成的影响以及如何更新这些统计信息以确保数据操作的效率。
订阅专栏 解锁全文
2369

被折叠的 条评论
为什么被折叠?



