ball是本地数据库试过Edit1.Text:=CurrToStr(Query1.FieldValues['column1']);不行

解决方案 »

  1.   

    select sum(xxx) as a ................把他AS一下就可以了
      

  2.   

    edit1.text:=query1.fields[0].asstring;
      

  3.   

    SELECT sum(Ball."Money") as a FROM "ball.DB" Ball
    取出来的时候
    a:=query.fieldbyname('a').asstring;
    或者
    a:=query.fields[0].asstring;
      

  4.   

    query1.close;
    query1.sql.clear;
    query1.sql.add('select sum(字段) as a1 from 表 group by 字段');
    query1.open;
    edit1.text:=query1.query1.FieldByName('a1').asstring;
      

  5.   

    有出错呀
    Project Project1.exe raised exception class EDBEngineError with 
    message 'An error occurred while attempting to initialize the Borland Database Engine (error $2501)'.Process stopped.Use Step or run to continue
      

  6.   

    这个错误不是由语句产生的,你看看就知道了,BDE的错误