when I create a materialize view, I use in the query an order by
ant it works fine.
But when I refresh the MV with DBMS_MVIEW.REFRESH(('T_SEARCH', 'C')
everything is completely messed up. So is there a way to avoid that problem ?
Thanks
when I create a materialize view, I use in the query an order by
ant it works fine.
But when I refresh the MV with DBMS_MVIEW.REFRESH(('T_SEARCH', 'C')
everything is completely messed up. So is there a way to avoid that problem ?
Thanks
If you mean that SELECT * FROM T_SEARCH
does not provide a coherent sort order, that's the expected behaviour in all SQL dialects I know. The fact that T_SEARCH
is not a physical table does not trigger any exception: you need to provide an ORDER BY
clause in the SELECT
query.