wyj12501 最近的时间轴更新
wyj12501

wyj12501

V2EX 第 171650 号会员,加入于 2016-05-04 12:41:14 +08:00
根据 wyj12501 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
wyj12501 最近回复了
薪资明确的招聘贴好评!
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   ·   我们的愿景   ·   实用小工具   ·   2574 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 15:22 · PVG 23:22 · LAX 08:22 · JFK 11:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.