如题 不知道下面几种方式的count哪个最快
select count(*)into num from table;
select count(*)into num from table where rowid = 1;
最好是讲解一下count 和 where的运行机理
另外除了这种方法之外有没有什么其他的方式判断表是否为空 要快
...全文
2252打赏收藏
oracle关于count()的效率问题 以及判断表是否为空的问题
如题 不知道下面几种方式的count哪个最快 select count(*)into num from table; select count(*)into num from table where rowid = 1; 最好是讲解一下count 和 where的运行机理 另外除了这种方法之外有没有什么其他的方式判断表是否为空 要快