"select brief from newtype where id=7 for update";//是什么SQL语句, 有for update这句的吗?

解决方案 »

  1.   

    for update是oracle里锁定记录,防止别人访问导致崩溃。看来你不懂。谁懂呀
      

  2.   

    oracle.sql.CLOB clobtt = null;
    if(rs.next())
            clobtt = (oracle.sql.CLOB)rs.getClob("brief");//这里报错
    java.lang.AbstractMethodError,如果直接写(1)也是同样的错误。高手们谁遇到过?//你的数据库版本??
    //JDBC版本??
    // String sqll2="select brief from newtype where id=7 for update";
    没有道理出现这个错误啊!我试试看啊!
      

  3.   

    //不好意思,没有仔细看!
    clobtt = (oracle.sql.CLOB)rs.getClob("brief");
    应该改为 
    clobtt = (oracle.sql.CLOB)rs.getObject("brief");  
    // rs.getClob 是 java1.4后才推出的新方法!
    // ORACLE JDBC 应该没有实现该方法!