【Oracle 12c】最新CUUG OCP-071考试题库(57题)

57、(14-17) choose two:

Examine the structure of the DEPARTMENTS table

You execute the following command:

SQL> ALTER TABLE departments

SET UNUSED (country);

Which two statements are true?

A) A new column, COUNTRY, can be added to the DEPARTMENTS table after executing the command.

B) Indexes created on the COUNTRY column exist until the DROP UNUSED COLUMNS command is executed.

C) Unique key constraints defined on the COUNTRY column are removed.

D) Synonyms existing on the DEPARTMENTS table would have to be re-created.

E) Views created on the DEPARTMENTS table that include the COUNTRY column are automatically

modified and remain valid.

Answer:AC

(注意:列一旦被设置为 unused 以后,基于该列的约束、索引都被删除,同时相关的视图

被无法访问。经过实验,可以马上往该表添加名字一样的列,有关 set unsed 的知识点考题

前面也有出现过,本题一个特点就是答案 A)

原文地址:https://blog.51cto.com/13854012/2358156

时间: 2024-10-07 22:33:55

【Oracle 12c】最新CUUG OCP-071考试题库(57题)的相关文章

【OCP题库-12c】最新CUUG OCP 071考试题库(69题)

69.(31-1)choose the best answer: Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM dual; What is the correct output of the above query? A) +25-00 , +00-650, +00 1

【OCP题库-12c】最新CUUG OCP 071考试题库(70题)

70.(31-2)choose the best answer: View the Exhibit and examine the structure of the Book table. The BOOKS table contains details of 100 books. Examine the commands executed and their outcome: SQL>INSERT INTO books VALUES ('ADV112', 'Adventures of Tom

【OCP题库-12c】最新CUUG OCP 071考试题库(71题)

71.(32-18) choose three Which three statements indicate the end of a transaction? (Choose three.) A) after a CREATE statement is issued B) after a SELECT statement is issued C) after a ROLLBACK is issued D) after a SAVEPOINT is issued E) after a COMM

【OCP题库-12c】最新CUUG OCP 071考试题库(72题)

72.View the exhibit for the structure of the STUDENTand FACULTYtables. STUDENT Name Null? Type STUDENT_ID NOT NULL NUMBER(2) STUDENT_NAME VARCHAR2(20) FACULTY_ID VARCHAR2(2) LOCATION_ID NUMBER(2) FACULTY Name Null? Type FACULTY_ID NOT NULL NUMBER(2)

【OCP-12c】2019年CUUG OCP 071考试题库(74题)

74.View the exhibit and examine the structure of ORDERS and CUSTOMERS tables. ORDERS Name     Null?       Type ORDER_ID  NOT NULL  NUMBER(4) ORDER_DATE  NOT NULL   DATE ORDER_MODE   VARCHAR2(8) CUSTOMER_ID NOT NULL  NUMBER(6) ORDER_TOTAL   NUMBER(8,

【OCP-12c】2019年CUUG OCP 071考试题库(73题)

73.Which statement correctly grants a system privilege? A. GRANT CREATE VIEW ON table1 TO user1; B. GRANT ALTER TABLE TO PUBLIC; C. GRANT CREATE TABLE TO user1, user2; D. GRANT CREATE SESSION TO ALL; Correct Answer: C Section: (none) Explanation 解析:无

【OCP-12c】2019年CUUG OCP 071考试题库(75题)

75.Which statements are correct regarding indexes? (Choose all that apply.) A. A non-deferrable PRIMARY KEYor UNIQUE KEYconstraint in a table automatically attempts to creates a unique index. B. Indexes should be created on columns that are frequentl

【OCP-12c】2019年CUUG OCP 071考试题库(76题)

76.View the exhibit and examine the description of the DEPARTMENTSand EMPLOYEEStables. The retrieve data for all the employees for their EMPLOYEE_ID, FIRST_NAME, and DEPARTMENT NAME, the following SQL statement was written: SELECT employee_id, first_

【OCP-12c】2019年CUUG OCP 071考试题库(77题)

77.Which two statements are true about sequences created in a single instance database? (Choose two.) A. When the MAXVALUElimit for the sequence is reached, you can increase the MAXVALUElimit by using the ALTER SEQUENCEstatement. B. DELETE < sequence

【OCP-12c】2019年CUUG OCP 071考试题库(78题)

78.View the exhibit and examine the structure of the CUSTOMERStable. Which two tasks would require subqueries or joins to be executed in a single statement? A. finding the number of customers, in each city, whose credit limit is more than the average