2022-08-19
select count(*) 的数据量和 select * 的数据量不一致? 颠覆三观。请求解答。
--- databbase : 12.1.0.2.0
select count(*) from (select * from xxx where xxx ) -- 44046 行
with tmp as (select * from xxx where xxx ) select count(*) from tmp -- 33条。
select count(*) from (select * from xxx where xxx and xxx is not null ); -- 33 行
select * from xxx where xxx ; -- 33 行
select * from xxx where xxx and xxx is not null; -- 33 行
我来答
添加附件
收藏
分享
问题补充
3条回答
默认
最新
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
