H
hcx
Unregistered / Unconfirmed
GUEST, unregistred user!
请教:
......
query.sql.add('select field1,sum(field2) from table where sddate>=:sd and sddate<=:ed group by field1);
query.prarams[0].asstring:=datetostr(datetimepicker1.date);
query.prarams[1].asstring:=datetostr(datetimepicker2.date);
......
运行结果等于sd的那天的数据没有,且当field2为负数时sum(field2)的结果为零。
......
query.sql.add('select field1,sum(field2) from table where sddate>=:sd and sddate<=:ed group by field1);
query.prarams[0].asstring:=datetostr(datetimepicker1.date);
query.prarams[1].asstring:=datetostr(datetimepicker2.date);
......
运行结果等于sd的那天的数据没有,且当field2为负数时sum(field2)的结果为零。