没有看懂,什么String变量啊。

解决方案 »

  1.   

    谢谢各位回复。
    还有问题:
    我从Informix 中得到text型的字段的值:RSIfx.getString(8)
    out.println(RSIfx.getString(8))结果为:"详细需求信息请在此处填写!"在Oracle中该字段定义为long类型(最大容量2GB字符的)。
    现在使用:ps.setLong(Long.parseLong(RSIfx.getString(8))) ,来写入数据,返回结果:java.lang.NumberFormatException: 详细需求信息请在此处填写!
    at java.lang.Long.parseLong(Long.java:310)
              ……………………