Connection conn = null; conn = DriverManager.getConnection("jdbc:oracle:thin:@152.146.231.183:1521:crm","crm","p"); java.sql.Statement stmt = conn.createStatement(); java.sql.ResultSet rs = stmt.executeQuery(sql.toString()); rs.close(); stmt.close(); conn.close();原文链接:https://www.f2er.com/oracle/207357.html