All of the desired results
Two of the desired results
One of the desired results
An error statement
第1题:
You get an error because of a primary key violation.
The data and structure of the EMPLOYEES table are deleted.
The data in the EMPLOYEES table is deleted but not the structure.
You get an error because the statement is not syntactically correct.
第2题:
INSERT INTO employees VALUES ( NULL, ‘John’,‘Smith’);
INSERT INTO employees( first_name, last_name) VALUES(‘John’,‘Smith’);
INSERT INTO employees VALUES (‘1000’,‘John’,NULL);
INSERT INTO employees(first_name,last_name, employee_id) VALUES ( 1000, ‘John’,‘Smith’);
INSERT INTO employees (employee_id) VALUES (1000);
INSERT INTO employees (employee_id, first_name, last_name) VALUES ( 1000, ‘John’,‘’);
第3题:
Column definitions cannot be altered to add DEFAULT values.
A change to the DEFAULT value affects only subsequent insertions to the table.
Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
第4题:
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA/_%' ESCAPE '/';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_' ESCAPE /;
SELECT employee_id, last_name, job_id FROM employees WHERE job_id = '%SA_';
第5题:
INSERT INTO employees VALUES (NULL, 'JOHN','Smith');
INSERT INTO employees( first_name, last_name) VALUES ('JOHN','Smith');
INSERT INTO employees VALUES ('1000','JOHN','NULL');
INSERT INTO employees(first_name,last_name, employee_id) VALUES ('1000, 'john','Smith');
INSERT INTO employees (employee_id) VALUES (1000);
INSERT INTO employees (employee_id, first_name, last_name) VALUES ( 1000, 'john',);
第6题:
SELECT last_name, (salary * 12) * commission_pct FROM EMPLOYEES;
SELECT last_name, (salary * 12) * IFNULL(commission_pct, 0) FROM EMPLOYEES;
SELECT last_name, (salary * 12) * NVL2(commission_pct, 0) FROM EMPLOYEES;
SELECT last_name, (salary * 12) * NVL(commission_pct, 0) FROM EMPLOYEES;
第7题:
all of the desired results
two of the desired results
one of the desired results
an error statement
第8题:
Column definitions cannot be altered to add DEFAULT values.
A change to the DEFAULT value affects only subsequent insertions to the table.
Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
第9题:
UPDATE employees SET first_name = 'John' SET last_name ='Smith' WHERE employee_id = 180;
UPDATE employees SET first_name = 'John', SET last_name ='Smith' WHERE employee_id = 180;
UPDATE employees SET first_name = 'John' AND last_name ='Smith' WHERE employee_id = 180;
UPDATE employees SET first_name = 'John', last_name ='Smith' WHERE employee_id = 180;
第10题:
all of the desired results
two of the desired results
one of the desired results
an error statement
第11题:
SELECT last_name, 12*salary* commission_pct FROM emp;
SELECT last_name, 12*salary* (commission_pct,0) FROM emp;
SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;
SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;
第12题:
CREATE INDEX NAME _IDX (first_name, last_name);
CREATE INDEX NAME _IDX (first_name, AND last_name)
CREATE INDEX NAME_IDX ON (First_name, last_name);
CREATE INDEX NAME_IDX ON employees (First_name, AND last_name);
CREATE INDEX NAME_IDX ON employees (First_name, last_name);
CREATE INDEX NAME_IDX FOR employees (First_name, last_name);