千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
select gcmc,gcxm,nf,yf,bysm,byq,byqt,byt,bydl,bygjg,
sum(bysm) smh, sum(byq) qh,sum(byqt) qth,sum(byt) th,
sum(bydl) dlh,sum(bygjg) gjgh
from detail
where gcmc=:gcmc and gcxm=:gcxm and (nf<:nf or (nf=:nf and yf<:yf))
在用field editor 增加字段的时候,出现如下错误:
General SQL error:
Column 'detail.gcmc' is invalid in the select list
because it's not contained and aggregate function
and there is no group by?
该怎么改呢?
sum(bysm) smh, sum(byq) qh,sum(byqt) qth,sum(byt) th,
sum(bydl) dlh,sum(bygjg) gjgh
from detail
where gcmc=:gcmc and gcxm=:gcxm and (nf<:nf or (nf=:nf and yf<:yf))
在用field editor 增加字段的时候,出现如下错误:
General SQL error:
Column 'detail.gcmc' is invalid in the select list
because it's not contained and aggregate function
and there is no group by?
该怎么改呢?