executeQuery();
应该是execute();
或者executeUpdate();
应该是execute();
或者executeUpdate();
解决方案 »
- axis2.wsdl文件的问题。
- 请问如何生成带soap header的 wsdl文件?我用的java语言xfire开发
- 头疼呀!谁能看看是什么问题呀!感谢啦!!!!
- SSH数据查询问题
- JAVA中如何通过XML来配置数据库的连接参数?
- 报错:The provider BC may not be signed by a trusted party 如何解决知道的请帮忙下
- 请教各位高手啊:为什么使用struts时提示:Servlet action is not available
- 如何导入源代码到JBUIDER?
- 一个struts的困惑
- 为什么装TOMCAT总是出现问题呢?召唤高手。。。
- long型的变量到底能表示多少位的数字??
- weblogic server是不是一定要装在服务器版的操作系统上?
//----------- JDBC-----------
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:MyClass");
Statement stmt = con.createStatement();
ResultSet result = stmt.executeQuery("select * from Class"); while(result.next()){
String name = result.getString("Name");
Date Birthday= result.getDate("Birthday");
int phone = result.getInt("phone");
}
con.close();
}catch(Exception e){
System.out.println(e.toString());