|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Update from different schema
Is it possible to update a table on one schema with the data from a table in another schema? What I have in mind
is something like this: update schema1.table1 set schema1.table1.field1 = schema2.table2.field1 where schema1.table1.field2 = schema2.table2.field2 Thanks. |
|
#2
|
|||
|
|||
|
Yes, you can update the column value of one table with the column of another table which is reside in another schema/user. Oracle does not allow any operation on a table that is not included in Query. Thus writing of such kind of query is little bit more complex, let's take a look.
UPDATE emp SET sal = (SELECT max(sal) FROM scott.emp WHERE job = 'MANAGER') WHERE empno = 7369 / |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Update from different schema |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|