sql server view pl sql Oracle view Oracle
 

Oracle PL/SQL VIEW TABLES


A sql server view is a logical representation of another table or combination of tables that do not physically exist. These tables are called base tables. Base tables might in turn be actual tables or might be views themselves.

All operations performed on a oralce database view actually affect the base table of the view. You can use views in almost the same way as tables. You can query, update, insert into, and delete from views, just as you can standard tables. Views can provide a different representation (such as subsets or supersets) of the data that resides within other Oracle tables and views. Oracle views are very powerful because they allow you to tailor the presentation of data to different types of users. The following sections explain how to create, replace, and drop views using SQL commands.

 

HOW TO CREATE a VIEW in Oracle PL/SQL

The Oracle VIEW DEFINITION in pl sql Oracle is:

CREATE VIEW view_name AS SELECT columns FROM table WHERE predicates;

This would create a virtual table based on the result set of the select statement. You can now query the view as follows:

HOW TO UPDATE a VIEW in Oracle

You can update a VIEW without dropping it by using the REPLACE command:

CREATE OR REPLACE VIEW view_name AS SELECT columns FROM table WHERE predicates;

HOW TO DROP a VIEW in Oracle

The syntax for dropping a VIEW is:

DROP VIEW view_name;

 

 

 
 

VIEW Oracle TABLES FAQ


Question:  Can you update the data in a sql server view?

Answer:  A view is created by joining one or more tables. When you update record(s) in a view, it updates the records in the underlying tables that make up the view.

So, yes, you can update the data in a Oracle sql view providing you have the proper privileges to the underlying tables

Question:  Can you use it in stored procedure Oracle?

Answer:  Yes, you can because you will use it like a table.

Learn more about Oracle order by Learn more about insert into where Learn more about Oracle select into Learn more about Oracle select where

 
 
Oracle news Oracle guide
     
  29-11-2006 Guida Oracle 10g
     
  29-11-2006 Oracle Errors
     
  29-11-2006 Create Functions
Delete Delete
Between Between
Check Check
Count Count
Datatypes Datatypes
Delete Oracle Delete Statement
Distinct Distinct
Exists Exists
Functions Functions
Grant revoke Grant Revoke
Group by Oracle Group by
Having Having
Oracle Function in Oracle Function in
Indexes Indexes
Insert Insert
Intersect Intersect
Isnull Is null
Joins Joins
Oracle guide Oracle declare vars
 
Oracle Functions PLSQL  l Consulenza Software Verona  l  Siti Web Verona  l   Exceptions  l  Oracle Errors  l  Oracle Collaborations Suite  l  Products  l  Contact
stored procedure Oracle