Evaluate the following SQL statement:
ALTER TABLE hr.emp
SET UNUSED (mgr_id);
Which statement is true regarding the effect of the above SQL statement?
A) Any views created on the EMP table that include the MGR_ID column would be automatically modified and remain valid.
B) Any constraints defined on the MGR_ID column would be removed by the above command.
C) Any synonym existing on the EMP table would have to be re-created.
D) Any index created on the MGR in column would continue to exist until the DROP UNUSED COLUMNS command is executed.
Answer:B
(注意:列一旦被设置为 unused 以后,基于该列的约束、索引都被删除,同时相关的视图被无法访问。)
原文地址:http://blog.51cto.com/13854012/2352744
时间: 2024-10-03 06:29:26