oracle 写错了!前辈请指点,如何在long类型的字段中判断是否包含一个字符串?

解决方案 »

  1.   

    where cast(content as varchar(255)) like '%d%'
      

  2.   

    我写的是行不通。
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96540/sql_elements2a.htm#45887LONG columns cannot appear in WHERE clauses or in integrity constraints (except that they can appear in NULL and NOT NULL constraints). 
      

  3.   

    where  convert(varchar(20),content) like '%d%'
      

  4.   

    convert 是什么函数,ERROR 位于第 1 行:
    ORA-00936: 缺少表达式;
      

  5.   

    ERROR 位于第 1 行:
    ORA-00936: 缺少表达式
      

  6.   

    应该不太可能通过sql语句直接检索出来