您的位置:首页 > 其它

GlusterFS无法启动原因及处理方案

2014-09-26 15:46 337 查看
在项目中遇见了mysql库的多表联查,记录下来,供以后查阅。

select a.slzgh as Zgh,c.username as Xm,a.slksh as Ksh,d.Ksmc,a.Ffdate,b.Sortid,b.Sortname,sum(b.Silnum) as Silnum
from offmate a
inner join offmatedetail b on a.contentid=b.contentid
left join user c on a.slzgh=c.userid
left join ks d on a.slksh=d.ksh group by a.slzgh
where a.sflq=2 and b.sortid='"+sortid+"' and a.ffdate between '"+sdate+"' and '"+edate+"'"
前面两个表提供主要数据,后面两个表提供单项名称。
根据id号和日期区间来查询数据。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐