专业技术初级资格程序员基础知识DB2
题目内容

A table named DEPARTMENT contains the following data:  DEPTNO     DEPTNAME          MGRNO      ADMRDEPT -----      --------          -----      -------- A01        PLANNING          000020     A00 B02        BRANCH OFFICE 1   -          E01 C22        BRANCH OFFICE 2   -          E01 D22        BRANCH OFFICE 3   -          E01 E22        BRANCH OFFICE 4   -          E01 If a user attempts to execute the following statement UPDATE employee SET workdept=   (SELECT deptno FROM department WHERE admrdept LIKE 'E%') WHERE workdept IS NULL; What will happen、

2024-07-09

A.The statement will fail because a subquery cannot be used in an UPDATE statement.

B.The statement will fail because the result set produced by the subquery will contain more than one row.

C.The statement will succeed; the last record retrieved by the subquery will be used to provide a WORKDEPT value for the update operation.

D.The statement will succeed; the first record retrieved by the subquery will be used to provide a WORKDEPT value for the update operation.

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端