0

I have synonyms in my database which is refering one table in different DB. Is it possible to update the table using synonymn name?

2
  • 1
    I removed the incompatible database tags. Please tag only with the database you are using. Commented Aug 22, 2017 at 10:49
  • Speaking only to Microsoft SQL Server, you can update a table in a different database on the same server using a synonym. This behaves the same as using the 3-part name directly in the query. Commented Aug 22, 2017 at 11:02

1 Answer 1

2

Yes, you can update by using below method( for oracle db ):

create public database link db2 connect to myschema using 'abc-scan.mycompany.com.tr:1521/db2.mycompany.com.tr';
create synonym syn_table1 for table1@db2;
update syn_table1 set col1=value1
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.