Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

2011-10-10 COLLECTION EXISTS accepts the performance of NULL parameters

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Http://www.itpub.net/thread-1499223-2-1.html

15th floor

I created this help function to display the value of a Boolean variable:

CREATE OR REPLACE PROCEDURE plch_show_boolean (val IN BOOLEAN) ISBEGIN DBMS_OUTPUT.put_line (CASEval WHEN TRUE THEN 'TRUE' WHEN FALSE THEN' FALSE' ELSE 'NULL' END); END plch_show_boolean;/

Which of the following options displays "FALSE" after execution?

(A)

DECLARE my_list DBMS_SQL.number_table; l_index PLS_INTEGER;BEGIN plch_show_boolean (my_list.EXISTS (l_index)); END;/FALSE

(B)

DECLARE my_list DBMS_SQL.number_table; l_index PLS_INTEGER: = 100 × begin plch_show_boolean (my_list.EXISTS (l_index)); END;/FALSE

(C)

DECLARE my_list DBMS_SQL.number_table; l_index PLS_INTEGER: = 100; element_exists BOOLEAN;BEGIN BEGIN l_index: = my_list (l_index); element_exists: = TRUE; EXCEPTION WHEN NO_DATA_FOUND THEN element_exists: = FALSE; END; plch_show_boolean (element_exists); END;/FALSE

(D)

DECLARE my_list DBMS_SQL.number_table;BEGIN plch_show_boolean (my_list.EXISTS (NULL)); END;/FALSE

Answer ABCD

Make up the knowledge points.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report