QQ:54110058 清江石
声明:对于答案的相关的说明,是个人对 Oracle 的理解和收集相关资
料整理,供大家参考学习。
2011-08-02
说明: 127与196(已经删除)相同 108与234(已经删除)相同 91与205(已经删除)相同
125与264(已经删除)相同 13与255(已经删除)相同 43与156(已经删除)相同
72与216(已经删除)相同 1与251(已经删除)相同 83与269(已经删除)相同
6与220(已经删除)相同 135与178(已经删除)相同 64与258(已经删除)相同
114与217(已经删除)相同 107与237(已经删除)相同 65与219(已经删除)相同
98与140(已经删除)相同 113与213(已经删除)相同 136与227(已经删除)相同
46与148(已经删除)相同 97与209(已经删除)相同 116与181(已经删除)相同
99与156(已经删除)相同 28与248(已经删除)相同 100与143(已经删除)相同
56与222(已经删除)相同 94与239(已经删除)相同 103与154(已经删除)相同
76与191(已经删除)相同 110与277(已经删除)相同 112与179(已经删除)相同
132与270(已经删除)相同 70与179(已经删除)相同 92与157(已经删除)相同
130与275(已经删除)相同 35与273(已经删除)相同 104与241(已经删除)相同
24与246(已经删除)相同 158与126(已经删除)相同 87与204(已经删除)相同
109与149(已经删除)相同 58与236(已经删除)相同
1.You need to load information about new customers from the NEW_CUST table
into the tables CUST and CUST_SPECIAL. If a new customer has a credit limit
greater than 10,000, then the details have to be inserted into CUST_SPECIAL.
All new customer details have to be inserted into the CUST table. Which
technique should be used to load the data most efficiently?
A. external table
B. the MERGE command
C. the multitable INSERT command
D. INSERT using WITH CHECK OPTION
Answer: C
1: 无条件 INSERT ALL
从 EMPLOYEES 中选择 EMPLOYEE_ID 大于200的雇员 EMPLOYEE_ID, HIRE_DATE, SALARY, 和
MANAGER_ID 值
用多表 INSERT 插入这些值到 SAL_HISTORY 和 MGR_HISTORY 表中
INSERT ALL
INTO sal_history VALUES(EMPID,HIREDATE,SAL)
INTO mgr_history VALUES(EMPID,MGR,SAL)
SELECT employee_id EMPID, hire_date HIREDATE,
salary SAL, manager_id MGR
FROM employees
WHERE employee_id > 200;
The example in the slide inserts rows into both the SAL_HISTORY and the MGR_HISTORY
tables.//插入到两个表中.
2: 条件INSERT ALL
- 1
- 2
前往页