我正在尝试使用JDBC连接刷新实例化视图,但是数据似乎没有刷新。下面是查询。
private static final String REFRESH_X_MATERIALIZED_VIEW_SQL =
"refresh materialized view X.X_overview_mv;";
.
.
.
try (Connection connection = postgreSQLConnectionFactory.getXConnection();
PreparedStatement refreshMaterializedViewStmt =
connection.prepareStatement(REFRESH_X_MATERIALIZED_VIEW_SQL)) {
refreshMaterializedViewStmt.execute();
是否可以使用JDBC来实现?