select * from tablename where columnname like '%text%' ;

解决方案 »

  1.   

    不行,这对long字段好象没用,会报
    select id from main where content like '%2%'
                              *
    ERROR 位于第 1 行:
    ORA-00932: inconsistent datatypes
    我怀疑是不可以模糊搜索.如果不可以我就惨了.
      

  2.   

    我有一个数据库,里面的文章内容放到content字段中(long型)里去了,现在要求是对内容字段(long)能进行查询,也就是模糊搜索!
    我想知道的是在数据库里可不可以实现这种功能?