/tupian/20230522/thread-1499223-1-1.html
创新互联建站是创新、创意、研发型一体的综合型网站建设公司,自成立以来公司不断探索创新,始终坚持为客户提供满意周到的服务,在本地打下了良好的口碑,在过去的10多年时间我们累计服务了上千家以及全国政企客户,如阳光房等企业单位,完善的项目管理流程,严格把控项目进度与质量监控加上过硬的技术实力获得客户的一致赞誉。1 楼
哪一个PLSQL块执行之后会显示下面的三行数字?
0
1
2
A
DECLARE TYPE numbers_t IS TABLE OF NUMBER; l_numbers numbers_t := numbers_t (); BEGIN DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers.EXTEND (); l_numbers (1) := 100; DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers.EXTEND (); DBMS_OUTPUT.put_line (l_numbers.COUNT); END; /
0 1 2
B
DECLARE TYPE numbers_t IS TABLE OF NUMBER; l_numbers numbers_t := numbers_t (); BEGIN DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers.EXTEND (2); l_numbers (1) := 100; DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers (2) := 100; DBMS_OUTPUT.put_line (l_numbers.COUNT); END; /
0 2 2
C
DECLARE TYPE numbers_t IS TABLE OF NUMBER; l_numbers numbers_t := numbers_t (); BEGIN DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers.EXTEND (2); l_numbers (1) := 100; l_numbers.DELETE (1); DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers (2) := 100; DBMS_OUTPUT.put_line (l_numbers.COUNT); END; /
0 1 1
D
DECLARE TYPE numbers_t IS TABLE OF NUMBER; l_numbers numbers_t := numbers_t (); BEGIN DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers.EXTEND (2); l_numbers (1) := 100; l_numbers.DELETE (1); DBMS_OUTPUT.put_line (l_numbers.COUNT); l_numbers (1) := 200; l_numbers (2) := 100; DBMS_OUTPUT.put_line (l_numbers.COUNT); END; /
0 1 2
知识点后补
网页标题:2011-10-05COLLECTION-创新互联
标题链接:https://www.cdcxhl.com/article0/dggpio.html
成都网站建设公司_创新互联,为您提供用户体验、移动网站建设、网站策划、面包屑导航、品牌网站制作、网站内链
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联