新网创想网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
/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
知识点后补