SQL.add('Select 产品,sum(数量)as 总数量,sum(合格) as 总合格,sum(不合格) as 不合格总数,sum(所用时间) as 总时间 from xx where 日期>=:p4 and 产品名称=:p1 and 型号=:p2 and 日期<=:p5'); 为什么用query查询出问题,还有在打印dbgrid!!!!加急啊
SQL.add('Select *,sum(数量)as 总数量,sum(合格) as 总合格,sum(不合格) as 不合格总数,sum(所用时间) as 总时间 from xx where 日期>=:p4 and 产品名称=:p1 and 型号=:p2 and 日期<=:p5');group by 产品加那里啊,怎么直接打印啊,(小弟学delphi才第3天)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货