dbTalk Databases Forums  

using views for updating

comp.database.oracle comp.database.oracle


Discuss using views for updating in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vertigo
 
Posts: n/a

Default using views for updating - 12-21-2004 , 10:22 AM






Hello

Can i use view for updateing row in table ?

Thanx
Michal


Reply With Quote
  #2  
Old   
Hilarion
 
Posts: n/a

Default Re: using views for updating - 12-21-2004 , 11:35 AM






Quote:
Can i use view for updateing row in table ?
Yes you can. To be more precise: INSERT, UPDATE or DELETE statements executed
against views can result in changing contents of some tables. SELECT statement
on view (or table) can't.
IMHO the best way (and sometimes only way) to do it, is to write INSTEAD OF
trigger on the view.


Hilarion




Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: using views for updating - 12-21-2004 , 07:01 PM



vertigo wrote:
Quote:
Hello

Can i use view for updateing row in table ?

Thanx
Michal
Only if it is a simple view. One you make direct mapping impossible,
for example with a group by or concatenation you must use instead-of
triggers.

--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.