是否可以使用nativeQuery从Spring Data Repository重建oracle索引?
尝试:
@Repository
public interface PageDao extends CrudRepository<Page, String> {
@Query(value = "ALTER INDEX the_native_index_name REBUILD", nativeQuery = true)
String updateOracleTextIndex();
}
错误:
...
引起:java.sql.SQLException:ORA-01003:没有解析语句