[求助]连接数据库说列表名无效??
报错说 Czydh,搞了很久都不知道是什么原因,哪位高手指点一下.try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("!!!");
String source="jdbc:odbc:BankSystem";
Connection con=DriverManager.getConnection(source);
System.out.println("!!!");
Statement stmt=con.createStatement();
System.out.println("!!!");
ResultSet rs=stmt.executeQuery("SELECT * FROM Czydh WHERE Czydh = '" + tf1.getText() + "' and Czyxm = '" + tf2.getText() + "' and Dlrq = '" + tf3.getText() + "'");
System.out.println("!!!");
frm.dispose();//关闭窗口并释放资源
jiemian jiemiandx=new jiemian();
while(rs.next())
{
i++;
}
}catch(Exception ex)
{
System.out.println(ex.getMessage());//throwable的详细信息
}