In Oracle, VIEW is simply the representation of a SQL statement that is stored in memory so that it can easily be re-used. A VIEW can derive its data from one or more table.
To create a new VIEW, use the following syntax:
Parameters:
view_name: The name of the View that you wish to create.
conditions: The conditions optional parameter.
Note:
In the above example, we have created a virtual table called "customer_view" based on the result set of the SELECT statement.
To modify or update existing VIEW without dropping it by using the Oracle REPLACE VIEW Statement, use the following syntax:
Parameters:
view_name: The name of the View that you wish to replace.
conditions: The conditions optional parameter.
Note:
In the above example, update the definition of the Oracle VIEW called customer_view without dropping it.
To drop a VIEW, use Oracle DROP VIEW Statement, use the following syntax:
Parameters:
view_name: The name of the View that you wish to replace.
Note:
In the above example, it would drop/delete the Oracle VIEW called customer_view.