相关代码 |
|
ConnPool.ConnPool cp = ConnPool.ConnPool.getInstance(); java.sql.Connection conn = cp.getConn(); if(conn==null){out.print("conn is null");return;} java.sql.Statement stmt = conn.createStatement(); java.sql.ResultSet rs = stmt.executeQuery("select * from userinfo"); while(rs.next()){ System.out.println (rs.getString(1)); } %>
相关资源 |
|