用户登录
用户注册

分享至

Oracle Database 12c SQL关于DML的操作讲解

  • 作者: 七借啊好借好还啊再借不难
  • 来源: 51数据库
  • 2021-10-19

q4.which two statements are true about data manipulation language (dml) statements?

a. an insert into…values.. statement can add multiple rows per execution to a table.

b. an update… set… statement can modify multiple rows based on multiple conditions on a table.

c. a delete from….. statement can remove rows based on only a single condition on a table.

d. an insert into… values….. statement can add a single row based on multiple conditions on a table.

e. a delete from….. statement can remove multiple rows based on multiple conditions on a table.

f. an update….set…. statement can modify multiple rows based on only a single condition on a table.

answer: be

解析:

a. an insert into…values..?语句每次执行可以向表添加多行。

错误,oracle不支持一次插入多行数据,mysql可以。

b. an update… set…?语句可以基于表上的多个条件修改多行。

正确,oracle支持多条件更新多行。

c. a delete from…..?语句只能基于表上的单个条件删除行。

错误,还可以以多条件删除行数据,如选项e。

d. an insert into… values…..?语句可以基于表上的多个条件添加单个行。

错误,oracle不支持多条件插入。

e. a delete from….. 语句可以基于表上的多个条件删除多行。

正确,oracle支持多条件删除。

f. an update….set….语句只能基于表上的单个条件修改多行。

错误,oracle还支持多条件更新多行,如选项b。

软件
前端设计
程序设计
Java相关