What is the meaning of '@' symbol in Oracle SQL?

后端 未结 2 1738

What is the @ symbol mean in oracle?

For example:

select * from question_answer@abcd where id = \'45\'
相关标签:
2条回答
  • 2021-02-07 10:38

    It refers to a non-local table, the bit behind the @ is the db descriptor.

    select * from question_answer@abcd where id = '45'
    

    Means select not from the local question_answer table, but from the table on the db designated as abcd. The keyword to google for is dblink

    0 讨论(0)
  • 2021-02-07 10:59

    This is the syntax for accessing a table via a database link called "abcd" See the documentation for CREATE DATABASE LINK, or to see the defined db links:

    SELECT * FROM all_db_links;
    
    0 讨论(0)
提交回复
热议问题