Package com.qulx.common

Examples of com.qulx.common.ConnDB.executeQuery()


   
    String sql = "select * from myuser";
    //ʵ��������
    List users = new ArrayList();
    ConnDB db = new ConnDB();
    ResultSet rs = db.executeQuery(sql);//��ȡ��ѯ����
    try {
      while(rs.next()){
        UserBean userBean = new UserBean();
        userBean.setUserid(rs.getInt("sid"));
        userBean.setUsername(rs.getString("sname"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.