用Filter吧。
Filter:='YourField like ''%Hello%''';

解决方案 »

  1.   

    在一段Text中查找一个字串,为什么不用Pos()?
      

  2.   

    你是指在text字段中查询吗?好象这用sql或者filter都不行。
    如果字段类型属于char的,用sql或filter都可以。filter的如楼上,sql如下:
    select field from table where field like %Hello%
      

  3.   

    以前我在table 里都可以用Sql查询的,就是不知道能不能在ClientDataSet生成的cds文件里用
    sql查询.
      

  4.   

    但是Locate只能是查询该字串打头的text段呀~~