📄 que_067.htm
字号:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>Ocp test </title>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="left" color="black" style="font-size:16pt;">
<b>QUESTION 067
</b></p><hr color="#99CCFF">
<p>Examine the structure of the EMPLOYEES table: </p><table border="1" bordercolor="gray">
<tr>
<td align="left" width="486" bgcolor="#99CCFF">
<p><b>EMPLOYEES table: </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>EMPLOYEE_ID NUMBER Primary Key </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>FIRST_NAME VARCHAR2(25) </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>LAST_NAME VARCHAR2(25) </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>HIRE_DATE DATE </b></p>
</td>
</tr>
</table>
<p>You issue these statements: <br>
<br>CREATE table new_emp <br> ( employee_id NUMBER, name VARCHAR2(30));
<br>INSERT INTO new_emp SELECT employee_id , last_name FROM employees;
<br>Savepoint s1;
<br>UPDATE new_emp SET name = UPPER(name);
<br>Savepoint s2; <br>
Delete FROM new_emp;
<br>Rollback to s2; <br>
Delete FROM new_emp where employee_id =180;
<br>UPDATE new_emp SET name = 'James';
<br>Rollback to s2;
<br>UPDATE new_emp SET name = 'James' <br>WHERE employee_id =180;
Rollback; <br>
<br>At the end of this transaction, what is true? </p><table border="1" bordercolor="gray" width="665">
<form name="youAnsForm">
<span style="font-size:18pt;">
<tr>
<td align="center" width="89">
<p><b><input type="radio" name="AN" value="A"> A.</b></p>
</td>
<td align="left" width="566">
<p> You have no rows in the table.
</p>
</td>
</tr>
<tr>
<td align="center" width="89">
<p><b><input type="radio" name="AN" value="B"> B.</b></p>
</td>
<td align="left" width="566">
<p> You have an employee with the name of James.
</p>
</td>
</tr>
<tr>
<td align="center" width="89">
<p><b><input type="radio" name="AN" value="C"> C.</b></p>
</td>
<td align="left" width="566">
<p> You cannot roll back to the same savepoint more than once.
</p>
</td>
</tr>
<tr>
<td align="center" width="89">
<p><b><input type="radio" name="AN" value="D"> D.</b></p>
</td>
<td align="left" width="566">
<p> Your last update fails to update any rows because employee ID 180 was already deleted.</p>
</td>
</tr>
</span>
</form>
</table>
<br></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -