Oracle查询数据库中所有表的记录数
来源:互联网 发布:天宝软件 编辑:程序博客网 时间:2024/05/29 02:09
原文链接: http://m.blog.csdn.net/article/details?id=6683697
select t.table_name,t.num_rows from user_tables t
若以上SQL查找不到,执行如下脚本即可:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
create or replace function count_rows(table_name in varchar2,
owner in varchar2 default null)
return number
authid current_user
IS
num_rows number;
stmt varchar2(2000);
begin
if owner is null then
stmt := 'select count(*) from "'||table_name||'"';
else
stmt := 'select count(*) from "'||owner||'"."'||table_name||'"';
end if;
execute immediate stmt into num_rows;
return num_rows;
end;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
之后,再查select table_name, count_rows(table_name) nrows from user_tables ,OK
- Oracle查询数据库中所有表的记录数
- 转至Oracle查询数据库中所有表的记录数
- Oracle查询数据库中所有表的记录数
- Oracle查询数据库中所有表的记录数
- Oracle查询数据库中所有表的记录数
- Oracle查询数据库中所有表的记录数
- Oracle查询数据库中当前登录用户所有表的记录数
- SQL查询数据库中所有表的记录条数
- oracle查询所有表的记录数
- Oracle 查询所有表的记录数
- 查询数据库所有表的记录数
- 查询Oracle数据库中各个表的实际记录数
- oracle查询所有表的表名+注释+记录数
- oracle查询所有表的记录数SQL
- mysql-oracle查询所有表的记录数
- 数据库查询 所有表 以及 表的记录数
- 查询数据库所有表的记录数(sqlserver)
- SqlServer查询数据库所有用户表的记录数
- 第十周—小学数学考试系统1
- UIButton 的setimage 图片的颜色是蓝色
- javascript :解析json数据
- iOS开发之Xcode常用调试(Debug)技巧总结
- 第十周项目二(1)判断是否为回文数
- Oracle查询数据库中所有表的记录数
- 大数据学习笔记-------------------(33)
- 如何用Perl向MySQL中插入数据
- H.264视频压缩标准
- PhET开发概述
- 第十周回文数(1)
- Forbidden You don't have permission to access /phpmyadmin/ on this server 解决办法
- android获取友盟渠道名,补充3个注意点
- 面向对象的三大基本特性