|
lQuery.CommandText:=' select sum(case '
+' when terminalpolicytbl.rablefee /**/ '
+' <> 0 then '
+' terminalpolicytbl.rableCommi /**/ '
+' / terminalpolicytbl.rablefee /**/ '
+' else '
+' 0 '
+' end) / count(*) as RecordCount '
+' from terminalpolicytbl, policy_ins '
+' where terminalpolicytbl.guid = policy_ins.policy_id '
+' and policy_ins.ismain = ''True'' '
+' and terminalpolicytbl.dockind = ''0'' '
+' and policy_ins.insType='''+strType+''' and '+dateString2+' and '+corpFilter;
//if 1=1 then;
lQuery.Open;
执行到lQuery.open报错:
java.lang.Exception: error occur during invoke getRecords method, FMTBcd Scale no match: 40(Def: 8)
我还没有对数据集进行赋值呢,我这个语句跟踪出来拿到pl/sql developer执行是对的。结果是 0.160689654152722
难道query本身还对小数位数有限制?
版本是2617 |
|