码迷,mamicode.com
首页 > 数据库 > 详细

常用mysql

时间:2018-02-28 10:32:10      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:常用   group   blog   select   gate   class   gpo   group by   mysq   

搜索差价

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;

常用mysql

标签:常用   group   blog   select   gate   class   gpo   group by   mysq   

原文地址:https://www.cnblogs.com/xielisen/p/8481767.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!