Class.forName("com.mysql.jdbc.Driver");
Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/db");
Statement stat=conn.createStatement();
ResultSet rs=stat.executeQuery(sql);或executeUpdate();
转载请注明原文地址: https://ju.6miu.com/read-36491.html