單項(xiàng)選擇題創(chuàng)建視圖時(shí),不能使用下列哪個(gè)關(guān)鍵字()

A.HAVING
B.WHERE
C.ORDERBY
D.創(chuàng)建視圖時(shí)以上關(guān)鍵字都是有效的關(guān)鍵字


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題您需要從方案中的雇員表中刪除EMP_FK_DEPT約束條件。應(yīng)使用哪條語句()

A.DROP CONSTRAINT EMP_FK_DEPT FROM雇員
B.DELETE CONSTRAINT EMP_FK_DEPT FROM雇員
C.ALTER TABLE雇員DROP CONSTRAINT EMP_FK_DEPT
D.ALTER TABLE雇員REMOVE CONSTRAINT EMP_FK_DEPT

2.單項(xiàng)選擇題

以下SQL命令執(zhí)行什么操作()
ALTER TABLE employees
ADD CONSTRAINT emp_manager_fk FOREIGN KEY(manager_id) REFERENCES employees(employee_id).

A.更改employees表并禁用emp_manager_fk約束條件
B.向EMPLOYEES表添加FOREIGN KEY約束條件,要求經(jīng)理必須已是雇員
C.向EMPLOYEES表添加FOREIGN KEY約束條件,要求經(jīng)理標(biāo)識(shí)應(yīng)匹配每個(gè)雇員標(biāo)識(shí)
D.更改employees表并添加FOREIGN KEY約束,要求每個(gè)雇員標(biāo)識(shí)必須唯一

3.單項(xiàng)選擇題您在公司的數(shù)據(jù)庫(kù)中成功創(chuàng)建了名為SALARY的表。您現(xiàn)在要通過向引用EMPLOYEES表的匹配列的SALARY表添加FOREIGNKEY約束條件來建立EMPLOYEES表與SALARY表之間的父/子關(guān)系。尚未向SALARY表添加任何數(shù)據(jù)。應(yīng)執(zhí)行以下哪條語句()

A.ALTER TABLE salary ADD CONSTRAINT fk_employee_id_01 FOREIGN KEY(employee_id)REFERENCES employees(employee_id)
B.ALTER TABLE salary ADD CONSTRAINT fk_employee_id_ FOREIGN KEY BETWEEN salary(employee_id)AND employees(employee_id)
C.ALTER TABLE salary FOREIGN KEY CONSTRAINT fk_employee_id_REFERENCES employees(employee_id)
D.ALTER TABLE salary ADD CONSTRAINT fk_employee_id_FOREIGN KEY salary(employee_id)=employees(employee_id)

4.單項(xiàng)選擇題刪除PRIMARYKEY約束條件及其所有依賴約束條件的語法是什么()

A.ALTER TABLE table_name DROP CONSTRAINT constraint_name CASCADE
B.ALTER TABLE table_name DROP CONSTRAINT FOREIGN KEY CASCADE
C.DROP CONSTRAINT table_name(constraint_name)
D.ALTER TABLE table_name DROP CONSTRAINT constraint_name

5.單項(xiàng)選擇題要向雇員表中的部門標(biāo)識(shí)列添加FOREIGNKEY約束條件以引用部門表中的標(biāo)識(shí)列,應(yīng)該使用哪個(gè)語句()

A.ALTER TABLE雇員MODIFY COLUMN dept_id_fk FOREIGN KEY(部門標(biāo)識(shí))REFERENCES部門(部門標(biāo)識(shí))
B.ALTER TABLE雇員ADD CONSTRAINT dept_id_fk FOREIGNKEY(部門標(biāo)識(shí))REFERENCES部門(部門標(biāo)識(shí))
C.ALTER TABLE雇員ADD FOREIGN KEY CONSTRAINT dept_id_fk ON(部門標(biāo)識(shí))REFERENCES部門(部門標(biāo)識(shí))
D.ALTER TABLE雇員ADD FOREIGN KEY 部門(部門標(biāo)識(shí))REFERENCES(部門標(biāo)識(shí))