L
lfqbl
Unregistered / Unconfirmed
GUEST, unregistred user!
count(),sum()在设计的时候写入SQL语句
select count(*),sum(*)
from table
group by fieldname
这样是可以运行的,但是如果在运行的时候,也就动态加入SQL语句
sql.add('select count(*),sum(*)');
sql.add('from table');
sql.add('group by fieldname');
就运行不了,请问应该怎么做?
select count(*),sum(*)
from table
group by fieldname
这样是可以运行的,但是如果在运行的时候,也就动态加入SQL语句
sql.add('select count(*),sum(*)');
sql.add('from table');
sql.add('group by fieldname');
就运行不了,请问应该怎么做?