單項選擇題“雇員”表在LAST_NAME列上有一個名為LN_IDX的索引。您要將此索引更改為FIRST_NAME列的索引。以下哪條SQL語句將實現(xiàn)此操作()

A.ALTER INDEX ln_idx ON employees(first_name)
B.ALTER INDEX ln_idx TO employees(first_name)
C.ALTER INDEX ln_idx TO fn_idx ON employees(first_name)
D.以上都不能;您無法變更索引


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題創(chuàng)建索引的語法是什么()

A.CREATE INDEX索引名ON表名(列名)
B.CREATE INDEX ON表名(列名)
C.CREATE索引名INDEX ON表名.列名
D.CREATE OR REPLACE INDEX索引名ON表名(列名)

2.單項選擇題

創(chuàng)建哪一項會使以下語句的執(zhí)行速度更快()
SELECT *
FROM employees
WHERE LOWER(last_name) = 'chang'.

A.同義詞
B.一個索引,普通索引或基于函數(shù)的索引
C.組合索引
D.不創(chuàng)建任何項;無法提高此語句的性能

3.單項選擇題

“雇員”表包含以下列:
EMPLOYEE_ID NOT NULL, Primary Key
SSNUM NOT NULL, Unique
LAST_NAME VARCHAR2(25)
FIRST_NAME VARCHAR2(25)
DEPARTMENT_ID NUMBER 部門表中 DEPARTMENT_ID 列的外鍵
SALARY NUMBER(8,2)
如果執(zhí)行以下語句:
CREATE INDEX emp_name_idx
ON employees(last_name, first_name);
以下哪個說法是的()

A.此語句會創(chuàng)建一個基于函數(shù)的索引
B.因為語法錯誤,此語句將失敗
C.該語句將創(chuàng)建一個組合唯一索引
D.該語句將創(chuàng)建一個組合非唯一索引

4.單項選擇題在Mary的方案中已經(jīng)存在“客戶”表。應使用哪條語句來為所有數(shù)據(jù)庫用戶創(chuàng)建一個“客戶”表的同義詞()

A.CREATE PUBLIC SYNONYM cust ON mary.客戶
B.CREATE PUBLIC SYNONYM cust FOR mary.客戶
C.CREATE SYNONYM cust ON mary.客戶FORPUBLIC
D.CREATE SYNONYM cust ON mary.客戶;GRANT SELECT ON cust TO PUBLIC

5.單項選擇題您要對EMPLOYEES表的FIRST_NAME和LAST_NAME列創(chuàng)建一個組合索引。以下哪條語句將完成此任務()

A.CREATE INDEXfl_idx ON employees(first_name last_name)
B.CREATE INDEXfl_idx ON employees(first_name),employees(last_name)
C.CREATE INDEXfl_idx ON employees(first_name,last_name)
D.CREATE INDEXfl_idx ON employees(first_name);CREATE INDEXfl_idx ON employees(last_name)