Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection_("jdbc:mysql://localhost:3306/students","admin","123");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("select * from studentinfo");
如何判断rs有记录存在和有多少条记录啊
谢谢了
Connection con=DriverManager.getConnection_("jdbc:mysql://localhost:3306/students","admin","123");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("select * from studentinfo");
如何判断rs有记录存在和有多少条记录啊
谢谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货