如何判断是否有符合查询条件的记录,如果有,有几条记录符合查询条件。我用ADOQuery,是多条件查询.。

解决方案 »

  1.   

    我做过。我用的是BDE,大致相同,请给我电子邮件!
      

  2.   

    :) 用 ADOQuery1.sql.add('select count(列名) from table');  也行 不过最好的方法是
      ADOQuery1.RecordCount; //总的记录学习中.........
      

  3.   

    adoquery.close;
    adoquery.sql.clear;
    adoquery.sql.add();
    adoquery.execute;
    ADOQuery.RecordCount
      

  4.   

    对呀!用adoquery.RecordConunt就可以将记录的个数取出来
    但有得时候不是很准
      

  5.   

    adoquery.sql.text:='select count(*) from tablename where '+tj