ALTER TABLE students ADD PRIMARY KEY student_id;
ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
第1题:
The statement executes successfully, leaves the manager ID as the existing value, and changes the salary to 4000 for the employees with ID 103 and 105.
The statement executes successfully, changes the manager ID to NULL, and changes the salary to 4000 for the employees with ID 103 and 105.
The statement executes successfully, changes the manager ID to NULL, and changes the salary to 3000 for the employees with ID 103 and 105.
The statement fails because there is more than one row matching the employee name Smith.
The statement fails because there is more than one row matching the IT_ADMIN job ID in the EMPLOYEES table.
The statement fails because there is no 'Administration' department in the DEPARTMENTS table.
第2题:
UNIQUE
NOT NULL
CHECK
PRIMARY KEY
FOREIGN KEY
第3题:
ALTER TABLE table_name ENABLE constraint_name;
ALTER TABLE table_name STATUS = ENABLE CONSTRAINT constraint _ name;
ALTER TABLE table_name ENABLE CONSTRAINT constraint _ name;
ALTER TABLE table_name TURN ON CONSTRAINT constraint _ name;
第4题:
GRANT select, insert, update ON student_grades TO manager
GRANT select, insert, update ON student_grades TO ROLE manager
GRANT select, insert, modify ON student_grades TO manager WITH GRANT OPTION;
GRANT select, insert, update ON student_grades TO manager WITH GRANT OPTION;
GRANT select, insert, update ON student_grades TO ROLE manager WITH GRANT OPTION;
GRANT select, insert, modify ON student_grades TO ROLE manager WITH GRANT OPTION;
第5题:
No privileges.
Only the SELECT privilege.
Only the CONNECT privilege.
All the privileges of a default user.
第6题:
all of the desired results
two of the desired results
one of the desired results
an error statement
第7题:
ALTER TABLE students ADD PRIMARY KEY _ id;
ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
第8题:
COMMIT
MERGE
UPDATE
DELETE
CREATE
DROP...
第9题:
remove the ORDER BY clause
remove the table alias prefix from the WHERE clause
remove the table alias from the SELECT clause
prefix the column in the USING clause with the table alias
prefix the column in the ORDER BY clause with the table alias
replace the condition d.department_id NOT IN (10,40) in the WHERE clause with d.department_id <> 10 AND d.department_id <> 40
第10题:
ALTER TABLE commercials MODIFY (description CHAR2(2000));
ALTER TABLE commercials CHANGE (description CHAR2(2000));
ALTER TABLE commercials CHANGE (description VARCHAR2 (2000));
ALTER TABLE commercials MODIFY (description VARCHAR2 (2000));
You cannot increase the size of a column if the table has rows.