码迷,mamicode.com
首页 > 其他好文 > 详细

子查询语句

时间:2017-09-20 19:44:36      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:sele   and   item   from   rom   ota   type   查询语句   子查询   

select a.sm+b.sm+c.sm+d.sm+e.sm+f.sm+g.sm+h.sm+i.sm+j.sm+k.sm+l.sm+m.sm+n.sm+o.sm+p.sm+q.sm+r.sm+s.sm+t.sm+u.sm+v.sm+w.sm+x.sm+y.sm+z.sm+aa.sm+bb.sm+cc.sm+
dd.sm+ee.sm+ff.sm as total from
(select IFNULL(sum(amount),0)*100 sm from tb0 where uid = 333 and type in(10,12)) a ,
(select IFNULL(sum(amount),0) sm from tb1 where uid = 1382681670 and item_type in(10,12)) b,

子查询语句

标签:sele   and   item   from   rom   ota   type   查询语句   子查询   

原文地址:http://www.cnblogs.com/php-linux/p/7562939.html

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