查询数据库的‘数量‘(FALOAT)字段的范围
用两个EDIT来输入范围值
怎么老是说:类型不对
SQL该怎么写

解决方案 »

  1.   

    adoquery.sql.text :='select * from table1 where 数量>'+edit1.text+' and 数量<'+edit2.text+'';
      

  2.   

    'select * from table1 where 数量 >'+edit1.text+' and 数量 <'+edit2.text
      

  3.   

    用STRTOFALOAT(edit1.text) 就报STRTOFALOAT不合法
      

  4.   

    adoquery.sql.text :='select * from table1 where 数量>'+edit1.text+' and 数量<'+edit2.text+'';或者加上strtoint()