QUERY1.SQL.Add('where weight='+IntToStr(aa)+' ');

解决方案 »

  1.   

    QUERY1.SQL.Add('where weight='+inttostr(aa));
      

  2.   

    但是SQL语句是字符串,genphone_ru(票票)说的没错。
      

  3.   


    QUERY1.SQL.Add('where weight='+inttostr(aa)); 
      

  4.   

    虽然weight类型是整型,但query1.sql.add('字符串'),因此
    你必须将aa转化为字符。
      

  5.   

    谢谢genphone_ru(票票),joyhero!调试通过!
      

  6.   

    你还有没有其他的条件?如果weight是整型的话,你的语句是没有错的
      

  7.   

    var aa:integer
    QUERY1.SQL.Add('where weight="'+'aa'+'" ');