When should database synonyms be used?

后端 未结 6 1501
借酒劲吻你
借酒劲吻你 2021-02-03 20:59

I\'ve got the syntax down but I\'m wondering if somebody can provide an illustrative use case where database synonyms are very useful.

6条回答
  •  囚心锁ツ
    2021-02-03 21:59

    Say, when you need to make a poorly written application (that does not issue ALTER SESSION SET CURRENT_SCHEMA) to work against another schema.

    The synonyms are mainly used as a workaround for cases like that. With a properly written application, you will hardly ever have to use them.

提交回复
热议问题