代码之家  ›  专栏  ›  技术社区  ›  none

查询过滤器

  •  0
  • none  · 技术社区  · 15 年前

    您能给我一个在Delphi7中使用ADOquery的filter属性的简单例子吗?

    谢谢。

    1 回复  |  直到 15 年前
        1
  •  3
  •   Community Mohan Dere    9 年前

    在研究历史问题时,我提出了这个问题:

    Delphi ADO Query

    罗兹说:

    AdoQuery1.close;
    AdoQuery1.filter := 'your condition goes here';
    AdoQuery1.filtered := true;
    AdoQuery1.Open;
    

    编辑:或者只是:

    AdoQuery1.filter := 'your condition goes here';
    AdoQuery1.filtered := true;
    
    推荐文章