日期:2014-05-17 浏览次数:20782 次
ConnectionProvider cp = ActiveRecordBase.getConnectionProvider(ActiveRecordBase.class);
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try {
conn = cp.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next()) {
}
rs.close();
stmt.close();
conn.close();
catch{
}