schema - How to update a table based on an update from another table in oracle? -


i have table t1 present in schema s1. table t2 schema s2. both t1 , t2 have primary keys p1 , q1.

i want update t1 updated q1 t2 p1. tried writing trigger doesnot helped me there no privileges because s1 application schema , s2 product schema.

please let me know best solution implement same. in advance.

i'm not oracle's expert think sql server have same sintax:

update s1..t1 set field = tab2.field s1..t1 tab1 inner join s2..t2 tab2 on tab1.p1 = tab2.q1 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -