wyj12501's recent timeline updates
wyj12501

wyj12501

V2EX member #171650, joined on 2016-05-04 12:41:14 +08:00
Per wyj12501's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
wyj12501's recent replies
薪资明确的招聘贴好评!
订单尾号 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
select *
from (select rownum rn, a.*
from (select * from XXX where YYY order by ZZZ) a
where rownum < 50)
where rn > 30;
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2904 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 13:39 · PVG 21:39 · LAX 06:39 · JFK 09:39
♥ Do have faith in what you're doing.