常用mysql

搜索差价

select count(*) from gate_okex_cj;
select 
	*
from 
	(select count(*) as a_cj,coin from gate_okex_cj where a_cj>0.006 group by coin) a
left join 
	(select count(*) as b_cj,coin from gate_okex_cj where b_cj>0.006 group by coin) b
on
	a.coin=b.coin;
posted @ 2018-02-28 07:52  geek程序员  阅读(108)  评论(0编辑  收藏  举报