select * from table1 where text1 like '%[Fields(2)]%'
看不懂,有这样的写法吗?[Fields(2)]是什么?

解决方案 »

  1.   

    Fields(2)
    就是text2的这一列吧
      

  2.   

    select * from table1 where text1 like '%text2%'
      

  3.   

    select * from table1 where text1 like '%text2%'
    是要完全匹配text2才可以输出吧?我后来先把Fields(2)赋给一个变量$tt
    然后用select * from table1 where text1 like '%[$tt]%'可以实现了如果我是想匹配text2中任意两个连起来的汉字,那该怎么写呢?谢谢