首页 > 其他 > 详细

子查询语句

时间:2017-09-20 19:03:59      阅读:262      评论:0      收藏:0      [点我收藏+]

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,

子查询语句

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!