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号和日期区间来查询数据。
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号和日期区间来查询数据。
相关文章推荐
- GlusterFS无法启动原因及处理方案
- GlusterFS无法自动启动原因及处理方案
- Maven编译jar出现:无法确定 T 的类型参数的异常的原因和处理方案
- dubbo项目启动报无法读取方案文档 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档;
- dubbo 启动:无法读取方案文档 'http://code.alibabatech.com/sch,原因为 1) 无法找到文档; 2) 无法读取文档; 3) ...
- Maven编译jar出现:无法确定 T 的类型参数的异常的原因和处理方案
- Glusterfs文件系统删除文件异常原因及处理方案
- dubbo 启动:无法读取方案文档 'http://code.alibabatech.com/sch,原因为 1) 无法找到文档; 2) 无法读取文档; 3) ...
- IIS无法启动:发生意外错误0x8ffe2740的原因
- Visual Studio2005无法启动web调试的真正原因
- 无法在web服务器上启动调试。服务器因语法无效而未能处理调试请求。
- IIS 无法启动:发生意外错误0x8ffe2740 的原因
- OSPF无法达到FULL状态的常见原因及处理!
- 电脑死机、无法启动故障处理
- Domino小结--SMTP server无法启动的原因
- Windows Server 2003 SP2装完无法启动(蓝屏)的原因与解决方法
- 无法在web服务器上启动调试。服务器因语法无效而未能处理调试请求。
- 无法在web服务器上启动调试 原因的新发现
- 对于从其他server上复制过来的数据库无法启动em,或者别的原因无法启动em
- Oracle数据库报告"本地计算机无法启动OracleOraHome92TNSListener服务"的处理办法