dt.Select("father like '"+strfather+"%'"...

解决方案 »

  1.   

    2楼的不对
    不是这样的
    我要查找左边相似的。
    如果strfather字符窜等于
    123456
    DataTable 里面有123这样的。那么也能找出来你那样的只是查找右边相似的。
      

  2.   

    或者告诉我 IN 怎么写才可以string   strfather   =   " '123456 ' ";   dt.Select( "father IN("+ strfather + ") ",   "Layer   ASC ");如果dt 的father 里面有 123为什么找不出来的?