to indicate that the function returns the same result value whenever it is called with the same values for its arguments.
You must specify this keyword if you intend to call the function in the expression of a function-based index or from the query of a materialized view that is marked REFRESH FAST or ENABLE QUERY REWRITE. When Oracle Database encounters a deterministic function in one of these contexts, it attempts to use previously calculated results when possible rather than re-executing the function.
If you subsequently change the semantics of the function, you must manually rebuild all dependent function-based indexes and materialized views.
Do not specify this clause to define a function that
uses package variables or that accesses the database
in any way that might affect the return result of the function. The results of doing so will not be captured if Oracle Database chooses not to reexecute the functi
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/638844/viewspace-1062134/，如需转载，请注明出处，否则将追究法律责任。