V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wyj12501  ›  全部回复第 1 页 / 共 1 页
回复总数  5
薪资明确的招聘贴好评!
2017-06-30 22:27:17 +08:00
回复了 dingzi 创建的主题 推广 115 网盘会员特价 限时返现优惠 少年要不要上车呢?
订单尾号 4642
select send_id, count(1)
from (select distinct send_id, receive_id from table)
group by send_id;

搜到一篇优化文章,可能有用
https://www.oschina.net/translate/use-subqueries-to-count-distinct-50x-faster
2016-05-11 09:42:18 +08:00
回复了 wbing 创建的主题 问与答 oracle 如何”更快的“返回指定行数之间的查询结果???
select *
from (select rownum rn, a.*
from (select * from XXX where YYY order by ZZZ) a
where rownum < 50)
where rn > 30;
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2357 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 12:24 · PVG 20:24 · LAX 05:24 · JFK 08:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.