关于PreparedStatement中的getParameterMetaData()出错,需要大侠帮助
try {
//连接数据库
.....
.....
sql = "update general.employee set name = 'OX' where ID = 66";
ps = con.prepareStatement(sql);
int n = ps.executeUpdate();
System.out.println("SUCCESS :" + n);
ParameterMetaData pm = ps.getParameterMetaData();
int m = pm.getParameterCount();
//System.out.println("m = " + m);
ps.close();
con.commit();
con.close();
} catch (
SQLException e) {
System.out.println("ERROR MESSAGE : " + e.getMessage());
System.out.println("SQLSTATE : " + e.getSQLState());
System.out.println("ERROR CODE : " + e.getErrorCode());
e.printStackTrace();
} catch (Exception e) {
System.out.println("ERROR MESSAGE : " + e.getMessage());
e.printStackTrace();
}
}
异常消息:Exception in thread "main"
java.lang.AbstractMethodError: com.fujitsu.symfoware.jdbc.SYMPreparedStatement.getParameterMetaData()Ljava/sql/ParameterMetaData;
at com.fujitsu.preparedstatement.PreparedStatementTest.c(PreparedStatementTest.java:136)
at com.fujitsu.preparedstatement.PreparedStatementTest.main(PreparedStatementTest.java:32)
求解决
------解决方案--------------------大侠哪里去了????
------解决方案--------------------已解决,调用时有错