glBean.executeUpdate(strSQL);改为
int iCount = glBean.executeUpdate(strSQL);
if (iCount>0)
    out.print("增加成功!") ;
else
    out.print("增加不成功!") ;你也可将insert into news(id,title,class,click,body) values(1,'eee',1,0,'eeeeeeee eeeeeeee') 用sqlPlus执行一下看成不成功。
注:blob类型不能这样增加的。

解决方案 »

  1.   

    blob类型的数据 应该怎么添加呢,??????
    我在用sqlPlus的时候,我用user name:my
    password:my
    host string:202.107.196.115
    连接,但是错误,我的用户名,密码,服务器ip是对的(这里是假的)但是不能连的,
    是不是表示方法不对???他说:
    ERROR:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
    descriptor
      

  2.   

    host string指的是实例名,即SID,不是IP
      

  3.   

    说明你连接数据库时出错了。
    sqlplus password/username@database数据库连接:
    http://www.csdn.net/expert/topic/670/670716.xml?temp=.3571741
      

  4.   

    感觉sql语句应该没错吧。
    应该连接有错误。