How to reference a table through a view
I'm using Oracle DB Version 19.
I have found the following which reduces invalidation.
https://docs.oracle.com/cd/B28359_01/server.111/b28318/dependencies.htm#CNCPT1867
Reference Each Table Through a View
Reference tables indirectly, using views. This enables you to do the following:
- Add columns to the table without invalidating dependent views or dependent PL/SQL objects
- Modify or delete columns not referenced by the view without invalidating dependent objects
The statement CREATE OR REPLACE VIEW
does not invalidate an existing view or its dependents if the new ROWTYPE
matches the old ROWTYPE
.
My question is how do you reference a table through a view. I have searched for examples but I cannot find. Can somebody explain this to me?