db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 赵峰 <zf...@hotmail.com>
Subject help me
Date Fri, 03 Oct 2008 18:43:27 GMT
Apache Derby Network Server - 10.4.2.0


String sql="insert into test (id,name) value(1,?)";
PreparedStatement ps=con.prepareStatement(sql);
ps.setObject(1,null);
ps.executeUpdate()


java.sql.SQLException: 不支持此类型。
 at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source)
 at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
 at org.apache.derby.client.am.PreparedStatement.setObject(Unknown Source)

----------------------------
      feng zhao
----------------------------
Mime
View raw message