exp_042.htm

来自「oracle DBA的资料」· HTM 代码 · 共 42 行

HTM
42
字号
<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><b><span style="font-size:22pt">Explaination 042: &nbsp;</span></b></p>

<span style="font-size:18pt">
	<p>
	This task can be done using the MERGE command. Correct syntax for the MERGE command is MERGE INTO table1 USING table2 on (join_condition) WHEN MATCHED UPDATE SET col1 = value WHEN NOT MATCHED INSERT (column_list) values (column_values). <br>
	</p>

	<p>
	  Incorrect Answers <br>
	</p>

	<p>
	  A: MERGE command can handle this task, not UPDATE: new employee details will not be added to the table <br>
	</p>

	<p>
	  C: This statement would by correct if UPDATE SET is syntax used, not UPDATE table_name SET syntax as in usual UPDATE command. <br>
	</p>

	<p>
	  D: "ON condition" clause of the MERGE command is absent. <br>
	</p>

	<p>
	  OCP Introduction to Oracle 9i: SQL Exam Guide, Jason Couchman, p. 273-275 <br>
	</p>

	<p>
	  Chapter 6: Manipulating Oracle Data
	</p>

</span>

</body>
</html>
<br>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?