一、原题
Which statement is true regarding synonyms?
A. Synonyms can be created only for a table.
B. Synonyms are used to reference only those tables that are owned by another user.
C. A public synonym and a private synonym can exist with the same name for the same table.
D. The DROP SYNONYM statement removes the synonym, and the table on which the synonym has been created becomes invalid.
答案:C
二、题目翻译A. Synonyms can be created only for a table.
B. Synonyms are used to reference only those tables that are owned by another user.
C. A public synonym and a private synonym can exist with the same name for the same table.
D. The DROP SYNONYM statement removes the synonym, and the table on which the synonym has been created becomes invalid.
答案:C
关于同义词,下面哪句话是正确的?
A. 只能为表建立同义词。
B. 同义词只能用来关联那些属于另一个用户的表。
C. 对同一个表可以存在同名的public synonym和private synonym。
D. DROP SYNONYM语句移除同义词,并且创建同义词的表也变的无效。
三、题目解析A. 只能为表建立同义词。
B. 同义词只能用来关联那些属于另一个用户的表。
C. 对同一个表可以存在同名的public synonym和private synonym。
D. DROP SYNONYM语句移除同义词,并且创建同义词的表也变的无效。
A选项不正确, 因为同义词是一个schema object的别名,例如可以为table、view、sequence 或者another synonym等等建立同义词。
B选项不正确,当前自己用户的表,也可以建同义词。
D选项不正确,DROP SYNONYM仅仅只删除了同义词,不影响相关的表。
B选项不正确,当前自己用户的表,也可以建同义词。
D选项不正确,DROP SYNONYM仅仅只删除了同义词,不影响相关的表。