ps_eno的datatype不应该是数组(ftArray),而应该是集合(ftSet)吧。

解决方案 »

  1.   

    你的方法是行不通的。
    1. 为什么所有Datatype的前面都有ft,因为它实际上是TFieldType type(字段类型)。
    2. 所以除非你的字段本身是ftArray类型,否则会出错。按你的写法,实际上是要一个整型字段的值(eno)和一个数组型字段的值(param_eno)比较,判断前者是否在后者之中,当然类型不匹配。
    3. 解决方法:'select * from employee where eno in (:param1,:param2,:param3...))'  //param1,2,3... 的类型同eno  如果你的参数可以从别的表里选出来:'select * from employee where eno in (select eno from OtherTable where ...)'不失为一个好方法。