单选题Which syntax turns an existing constraint on?()A ALTER TABLE table_name ENABLE constraint_name;B ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name;C ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name;D ALTER TABLE table_name T

题目
单选题
Which syntax turns an existing constraint on?()
A

ALTER TABLE table_name ENABLE constraint_name;

B

ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name;

C

ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name;

D

ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name;

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which syntax turns an existing constraint on? ()

A. ALTER TABLE table_name ENABLE constraint_name;

B. ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name;

C. ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name;

D. ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name;


参考答案:C

第2题:

为表TEST中ID列添加主键约束的语法是()

  • A、ALTER  TABLE  TEST  CHANGE( ID  INT  PRIMARY  KEY)
  • B、ALTER  TABLE  TEST  ADD( ID  INT  PRIMARY  KEY)
  • C、ALTER  TABLE  TEST  MODIFY( ID  INT  PRIMARY  KEY)
  • D、ALTER  TABLE  TEST  ADD  CONSTRAINT PK  PRIMARY KEY (ID)

正确答案:D

第3题:

You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?()

A. ALTER TABLE students ADD PRIMARY KEY _ id;

B. ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);

C. ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;

D. ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);

E. ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);


参考答案:D

第4题:

您需要从方案中的雇员表中删除EMP_FK_DEPT约束条件。应使用哪条语句()

  • 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

正确答案:C

第5题:

Which syntax turns an existing constraint on?()

  • A、ALTER TABLE table_name   ENABLE constraint_name;
  • B、ALTER TABLE table_name   STATUS = ENABLE CONSTRAINT constraint_name;
  • C、ALTER TABLE table_name   ENABLE CONSTRAINT constraint_name;
  • D、ALTER TABLE table_name   STATUS ENABLE CONSTRAINT constraint_name;
  • E、ALTER TABLE table_name   TURN ON CONSTRAINT constraint_name;

正确答案:C

第6题:

您需要从您的方案中的“雇员”表中删除“雇员_FK_部门”约束条件。应使用哪条语句?()

  • A、DROP CONSTRAINT雇员_FK_部门FROM雇员
  • B、DELETE CONSTRAINT雇员_FK_部门FROM雇员
  • C、ALTER TABLE雇员DROP CONSTRAINT雇员_FK_部门
  • D、ALTER TABLE雇员REMOVE CONSTRAINT雇员_FK_部门

正确答案:D

第7题:

删除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

正确答案:A

第8题:

Which statement explicitly names a constraint? ()

A. ALTER TABLE student_grades ADD FOREIGN KEY (student_id) REFERENCES students (student_id);

B. ALTER TABLE student_grades ADD CONSTRAINT NAME = student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);

C. ALTER TABLE student_grades ADD CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);

D. ALTER TABLE student grades ADD NAMED CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);

E. ALTER TABLE student grades ADD NAME student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);


参考答案:C

第9题:

A constraint in a table is defined with the INITIALLY IMMEDIATE clause. You executed the ALTER TABLEcommand with the ENABLE VALIDATE option to enable the constraint that was disabled.  What are the twoeffects of this command()

  • A、It fails if any existing row violates the constraint.
  • B、It does not validate the existing data in the table.
  • C、It enables the constraint to be enforced at the end of each transaction.
  • D、It prevents insert, update, and delete operations on the table while the constraint is in the process of beingenabled

正确答案:A,D

第10题:

如下能正确执行的语句是()

  • A、select * from table_name where 1<=2
  • B、truncate table table_name
  • C、delete from table_name where null=null
  • D、alter table table_name add column idd int

正确答案:A,B,C

更多相关问题