Ai
1 Star 1 Fork 0

冯际成/Oracle_SQL_Scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
table_stats.sql 1006 Bytes
一键复制 编辑 原始数据 按行查看 历史
Abdul mohammed 提交于 2016-02-06 08:58 +08:00 . Fri Feb 5 18:58:16 CST 2016
UNDEF OWNER_NAME
UNDEF TABLE_NAME
COLUMN owner format a20 wrap heading "Table|Owner"
COLUMN table_name format a20 wrap heading "Table|Name"
COLUMN Tablespace_name format a20 wrap heading "Tablespace|Name"
COLUMN num_rows format 999,999,999,999 Heading "Numer|Of|Rows"
COLUMN blocks format 999,999,999 Heading "Numer|Of|Blocks"
COLUMN empty_blocks format 999,999,999 Heading "Numer|Of|Empty|Blocks"
COLUMN avg_row_len format 999,999,999 Heading "Average|Row|Length"
COLUMN sample_size format 999,999,999,999 Heading "Sample|Size"
COLUMN last_analyzed heading "Date|Last|Analyzed"
SELECT owner, table_name, tablespace_name, num_rows, blocks, empty_blocks,
avg_row_len, sample_size, last_analyzed
FROM dba_tables
WHERE owner like upper(nvl('%&OWNER_NAME%',owner))
AND table_name=upper('&TABLE_NAME')
ORDER BY owner, table_name;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sapall/Oracle_SQL_Scripts.git
git@gitee.com:sapall/Oracle_SQL_Scripts.git
sapall
Oracle_SQL_Scripts
Oracle_SQL_Scripts
master

搜索帮助