oracle怎么查询表的行数

在oracle中,可用“num_rows”和“user_tables”来查询表的行数,“num_rows”列一小时更新一次,语法为“select table_name,num_rows from user_tables where 条件”。 本教程操作环境:Windows10系统、Ora

    <blockquote><p>在oracle中,可用“num_rows”和“user_tables”来查询表的行数,“num_rows”列一小时更新一次,语法为“select table_name,num_rows from user_tables where 条件”。</p></blockquote>

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。

oracle怎么查询表的行数

语法为:

num_rows列并不是事实更新的,查新之前最好先ANALYZE下 analyze table 这里写表名compute statistics;

DBA权限下可以查询dba_tables,里面有个num_rows列

num_rows列并不是实时更新的,1小时更新一次。

推荐教程:《Oracle视频教程》

以上就是oracle怎么查询表的行数的详细内容,更多请关注每日运维其它相关文章!