Go4Oracle

Member Login






Powered by CodeRevolts
You are here  :Home

Latest Articles

article thumbnaiResolving Slow Client Server Architecture

Thursday, 18 December 2008 | Amal

Resolving A Slow Client/Server Application By Increasing the array processing size    If A client server application takes several...
+ Full Story

article thumbnaiWhats Is Database Trigger

Sunday, 07 December 2008 | Amal

Whats is Database triggers  Database triggers is a consist os sql and plsq statement which is executed on an predefined event.Database triggers...
+ Full Story

article thumbnaiBasic Cursor Writing

Monday, 27 October 2008 | Amal

Basic Cursors In PLSQLA cursor is a memory area allocated to work with select statements and is declared by a name.Need For CursorIn any PLSQL...
+ Full Story

Another Articles

Latest Downloads


No Documents
what is a View as object in oracle Views E-mail
(0 votes)
Written by Amal   
Friday, 26 September 2008
 

Views : 231    


View is oracle objects that can be created by issuing a DDL "CREATE VIEW" Statement. A view can be basically defined as a projection of one or more tables. View has basic advantages and some disadvantages.At time no DML operation can be conduction on a view this depends on the type of view...To understand what is view read details....

VIews are generally create by basic CREATE statement with a Query.

Eg

Create View View_Name as (Select colname1,colname2 from tablename)
The above statement creates a view by the name specified (VIEW_NAME). Such view which is a simple projection of one table is  created by using a simple select statement. In such view DML statement can work if its not voilating any integrating contraints of the TABLE on which  it is create and also the user has all the DML priveledges on the TABLE(if view created in different user)

Consider another example where view is created by issuing following Query Statement

Create View View_Name as (Select a.colname1,b.colname2 from tablename1 a, tablename2 b
where a.colname1=b.colname1)
The above view wich is a project of 2 tables and  will not permit any DML operation on the view .

 Consider another example where view is created by issuing following Query Statement

Create View View_Name as (Select count(colname) ,colname2 from tablename
Group by colname2
The above view which is again a projection of 1 table will not permit any DML operation on the view .

So To Conclude We can Say DML operation in a view cannot be performed if the view is based on more than one tables or if the view has some group functions used.

To create or to Over write an existing view use the command as
CREATE OR REPLACE VIEW VIEW_NAME AS (select ..........)

Other type of View are INLINE VIEW  which are not an object but a runtime view. 

 





Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Smarking!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites! title=

   

Users' Comments  
 

Average user rating

   (0 vote)

 


Add your comment
Name
E-mail
Title  
 
Comment
 
Available characters: 600
   Notify me of follow-up comments
  Mathguard security question:
J9B         4        
P I    M    O I   S3M
2 H   Q8X   3TA      
R 5    K      T   TTU
G88           4      
   
   

No comment posted

< Prev   Next >
Register Now

Bookmark Us

 
 

Polls

How do you like the new Go4Oracle site ?.
 
Are Articles Usefull
 

Who's Online

No Users Online

Advertisement

Linux Indore - 2007

Hello, you either have JavaScript turned off or an old version of Macromedia's Flash Player. Get the latest flash player.

Most Commented Items

Basic Cursor Writing
(1 comment)
Files that control oracle inst
(1 comment)
ROWID OF A RECORD (PSUEDO COLU
(1 comment)
rownum a pseudocolumn
(1 comment)

Visitors Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday42
mod_vvisit_counterYesterday104
mod_vvisit_counterThis week146
mod_vvisit_counterThis month509
mod_vvisit_counterAll22663

Our Recommendations

Get Firefox browser!
Go to Google!Get a free mail account!Get The Gimp!Get Openoffice!Get Videolan!