lQuery:=TQuery.Create(nil);
lQuery.ConnectionString:=dsbWHPlace.dataSet.ConnectionString;
lQuery.Close;
lQuery.CommandText:='Select round(aa,10) as a from SJB1 where GJZ='1';
lQuery.Open;
和
lQuery:=TQuery.Create(nil);
lQuery.ConnectionString:=dsbWHPlace.dataSet.ConnectionString;
lQuery.Close;
lQuery.CommandText:='Select aa as a from SJB1 where GJZ='1';
lQuery.Open;
2个取数据时,前面那种报错,Oracel数据库,任意新建表,新建字段aa,数字型,长度15,小数位数12.
请问是什么问题?
报错:FMTBcd Scale no match: 10(Def:8)
不知道楼主的代码是直接在帖子上写的,还是从功能或者信息中粘贴出来的,首先
lQuery.CommandText:='Select aa as a from SJB1 where GJZ='1';
这句话就不对
要么
lQuery.CommandText:='Select aa as a from SJB1 where GJZ=''1''';
要么
lQuery.CommandText:='Select aa as a from SJB1 where GJZ=1';
不能可能是你那样的写法,你那样编译肯定报错,