You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Library/src/test/Test.java

25 lines
750 B

package test;
import java.sql.ResultSet;
import java.sql.SQLException;
s
import javabean.Base;
public class Test {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
// Connection connection = Base.getConnection();
// String sql = "select * from system_manager";
// PreparedStatement pstmt = null;//(PreparedStatement) connect.prepareStatement(sql);
//
// ResultSet resultSet = null;
// resultSet = Base.executequery(connection, pstmt, resultSet, sql, null);
// while(resultSet.next()) {
// System.out.println(resultSet.getString("username"));
// }
// Base.closeResource(connection, pstmt, resultSet);
// resultSet.close();
// System.out.println(resultSet);
//System.out.println(resultSet);
}
}