047试题请教

[复制链接]
查看11 | 回复2 | 2010-10-8 09:28:51 | 显示全部楼层 |阅读模式
93. The ORDERS table belongs to the user OE. OE has granted the SELECT privilege on the ORDERS
table to the user HR.
Which statement would create a synonym ORD so that HR can execute the following query successfully?
SELECT * FROM ord?
A. CREATE SYNONYM ord FOR orders? This command is issued by OE.
B. CREATE PUBLIC SYNONYM ord FOR orders? This command is issued by OE.
C. CREATE SYNONYM ord FOR oe.orders? This command is issued by the database administrator.
D. CREATE PUBLIC SYNONYM ord FOR oe.orders? This command is issued by the database administrator.
Answer: D
答案B为什么不对,因为OE不一定有create public synonym权限吗?
请各位指教。
回复

使用道具 举报

千问 | 2010-10-8 09:28:51 | 显示全部楼层
A、B選項的道理是一樣的
回复

使用道具 举报

千问 | 2010-10-8 09:28:51 | 显示全部楼层
To create a private synonym in your own schema, you must have the CREATE SYNONYM privilege. To create a private synonym in another user's schema, you must have the CREATE ANY SYNONYM privilege
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行