long類型是不行的。應該使用clob或者blob,甚至long raw也比long要方便。
看看sql reference的關于datatype的內容就知道使用long有非常多的限制。http://expert.csdn.net/Expert/topic/1813/1813692.xml?temp=.7677423
对于long raw
where instr(utl_raw.CAST_TO_VARCHAR2(col_name),'..')>0
对于blob
where instr(dbms_lob.substr(col_name),'..')>0

解决方案 »

  1.   

    long類型是不行的。應該使用clob或者blob,甚至long raw也比long要方便。
    看看sql reference的關于datatype的內容就知道使用long有非常多的限制。http://expert.csdn.net/Expert/topic/1813/1813692.xml?temp=.7677423
    对于long raw
    where instr(utl_raw.CAST_TO_VARCHAR2(col_name),'..')>0
    对于blob
    where instr(dbms_lob.substr(col_name),'..')>0
      

  2.   

    参考
       select * from memo WHERE dbms_lob.instr(memo .a, '非典',1,1);
     
       http://www.oradb.net/sql/sqlplus_005.htm