oracle查表技巧

Posted wangziyi0513

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle查表技巧相关的知识,希望对你有一定的参考价值。

查每张表中有多少条记录

SELECT table_name,num_rows FROM user_tables order by num_rows desc;

https://www.cnblogs.com/xzhg/p/6473011.html

技术分享图片

 

 

查一张表中不同时间段分别有多少条记录:

select ttime, count(ttime) from VOLTE_GT_CELL_ANA_BASEDAY group by ttime;

select ttime,count(ttime) from VOLTE_GT_USER_ANA_BASEDAY t group by ttime;

 技术分享图片

 

待补充。。

 

以上是关于oracle查表技巧的主要内容,如果未能解决你的问题,请参考以下文章