Updating table through view in oracle

You can use subqueries in the SET portion of the UPDATE command.

The FROM clause of such subqueries can reference either the local database or a remote database.

Consider another table STUDENT_N, which holds updates for the target table STUDENT.

Every week, table STUDENT needs to be synchronized with the data in STUDENT_N – any new entries for students who attempted the GMAT to be inserted, plus corrections if any made to the existing details.

This is typically the case when you have to synchronize a table periodically with data from another source (table/view/query).

In place of 3 separate unwieldy INSERT, UPDATE and DELETE statements with conditional sub-queries, the all-in-one MERGE does the job in one shot.

Views, which are a type of virtual tables allow users to do the following − Database views are created using the CREATE VIEW statement.

Views can be created from a single table, multiple tables or another view.

For example, to change the RATING values for books in a remote BOOKSHELF table, you would execute the UPDATE command shown in the following listing: This UPDATE command uses the REMOTE_CONNECT database link to log into the remote database.

It then updates the BOOKSHELF table in that database, based on the SET and WHERE conditions specified.

The database link syntax for remote updates is the same as that for remote queries.


  1. = new Date(); Time((new Date()).value Of() - 1000*60*60*24*90); self.new_streams = (Full Year() * 10000 (Month() 1) * 100 Date()); self.bwidth = window.inner Width; self.online = /* this overrides everything for males only cobrands */ var malefilters = self.my_filter = function (el) var attach_studio = ''; var region = ''; var reg_boost = 10; self.cobrand_boosts = var voy_time = ; var priv_time = ; self.gender_filter_cookie_name = 'webcam_gender_filter'; self.set_my_gender_cookie = function (gender) self.check_gender = function()(); self.get_my_gender_cookie = function () self.debugg = 0; self.show_ts = 1; var cams = ; self.won_from_json = function (a) , 'o' : function (a, b) , 's' : function (a, b) , 'v' : function(a,b) , 'z' : function(a,b) , 'F' : function(a,b) , 'h' : function(a,b) , 'G' : function(a,b) } self.dislike = function (a,e) var ref = ; for (var i in cat_counts) var myyank = yank(parent); for (var i in ref) myyank(); } } self.won_url = '/lvswon.cgi?

  2. ] After all of the April drama, Lorelai wound up sleeping with her ex, Christopher (David Sutcliffe), in the sixth season finale.

  3. To start using Face Flow, you only need to sign up and add people into your contact list.

Comments are closed.