Oracle 1z0-071 2019.10最新题库&解答51-55

QUESTION 51

Choose two

Which two statements are true about conditional INSERT
ALL?

A) Each row returned by the subquery can be inserted into
only a single target table.

B) It cannot have an ELSE clause.

C) The total number of rows inserted is always equal to
the number of rows returned by the subquery

D) A single WHEN condition can be used for multiple INTO
clauses.

E) Each WHEN condition is tested for each row returned by
the subquery.

Correct Answer: CE  
D正确 DE,见下例  E 测试正确  C 多个INSERT 应该是倍数关系

解析:官档语法:

https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/INSERT.html#GUID-903F8043-0254-4EE9-ACC1-CB8AC0AF3423

https://oracle-base.com/articles/9i/multitable-inserts

conditional_insert_clause

Specify the conditional_insert_clause to perform a
conditional multitable insert. Oracle Database filters each insert_into_clause
through the corresponding WHEN condition, which determines whether that
insert_into_clause is executed. Each expression in the WHEN condition must
refer to columns returned by the select list of the subquery. A single multitable
insert statement can contain up to 127 WHEN clauses.

INSERT ALL

WHEN order_total

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值