- 使用sql-cli.
- 可以使用JDBC
Properties properties = new Properties();
properties.put(“user”, “test_admin”);
properties.put(“password”, “x-pack-test-password”);
try (Statement statement = connection.createStatement();
ResultSet results = statement.executeQuery(
“ SELECT name, page_count”
+ “ FROM library”
+ “ ORDER BY page_count DESC”
+ “ LIMIT 1”)) {
- ODBC