Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我创建一个物化视图时,我在查询中使用了一个order by蚂蚁,它工作正常。但是当我用一切刷新MV时,DBMS_MVIEW.REFRESH(('T_SEARCH', 'C')一切都变得一团糟。那么有没有办法避免这个问题呢?
order by
DBMS_MVIEW.REFRESH(('T_SEARCH', 'C')
谢谢
如果您的意思是SELECT * FROM T_SEARCH不提供连贯的排序顺序,那是我所知道的所有 SQL 方言中的预期行为。不是物理表的事实T_SEARCH不会触发任何异常:您需要在查询中提供一个ORDER BY子句。SELECT
SELECT * FROM T_SEARCH
T_SEARCH
ORDER BY
SELECT