Properties connectionProps = new Properties(); connectionProps.put("user", "your_username"); connectionProps.put("password", "your_password"); connectionProps.put("url", "jdbc:kinetica://localhost:9191/kinetica"); Connection connection = DriverManager.getConnection(connectionProps.getProperty("url"), connectionProps); String query = "SELECT * FROM your_table"; Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { } resultSet.close(); statement.close(); connection.close();


上一篇:
下一篇:
切换中文