关于ORACLE 的查询问题
with adoperiodup do
begin
close;
sql.Clear;
sql.Add('select phaseinfo from its.lightconfig where (crossingid =:crossingid) and (projectid=:projectid) group by phaseinfo');
Parameters.ParamByName('crossingid').Value := crossingid;
Parameters.ParamByName('projectid').Value := strtoint(SchemeIDEdit.Text);
open;
end;
提示 ORA-00979 不是GROUP BY 表达试
with adoperiodup do
begin
close;
sql.Clear;
sql.Add('select phaseinfo from its.lightconfig where (crossingid =1) and (projectid=1) group by phaseinfo');
open;
end;
正常!
请高手帮忙看看!难道不能带变量参数吗?
问题点数:0、回复次数:0Top




