永发信息网

PL/SQL 动不动?

答案:1  悬赏:20  手机版
解决时间 2021-05-25 19:25

4.Which one of the following is NOT a valid guideline for retrieving data in PL/SQL?

a) Terminate the SQL statement with a semicolon (;)

b) Do NOT use a WHERe clause in SELECt statements.

6. Look at this PL/SQL block:

DECLARE

v_count NUMBER;

BEGIN

SELECT COUNT(*) INTO v_count

FROM employees WHERe salary > 50000;

END;

No employees earn more than $50000. Which of the following statements are true? (Choose two). (选择所有正确答案)

a) The SELECt will return value 0 into V_COUNT.

b) The SELECT will fail because it does NOT return exactly one row.

c) The block will fail because variable V_SALARY was not declared.

d) The SELECT returns exactly one row.

e) The block will fail because no results are displayed to the user.

8. Does PL/SQL allow you to have a variable with the same name as a database column?

a) No

b) Yes

c) Where possible, declare variables using the %TYPE attribute.

10. You have declared the following cursor:

CURSOR country_curs IS

SELECT * FROM wf_countries

ORDER BY country_name;

There are over 200 rows in the WF_COUNTRIES table, but you want to fetch and display only the first 25 rows.

How would you exit from the FETCH loop?

a) EXIT WHEN country_curs%FOUND(25);

b) EXIT WHEN country_curs%ROWCOUNT > 25;

c) EXIT WHEN ROWCOUNT > 25;

d) WHEN country_curs > 25 THEN EXIT; END IF;

d) Specify the same number of variables in the INTO clause as database columns in the SELECt clause.

12. Look at the following code:

DECLARE

CURSOR emp_cursor IS

SELECT employee_id, last_name, salary FROM employees;

v_empcurs emp_cursor%ROWTYPE;

What is the data type of V_EMPCURS?

a) Scalar

b) Record

c) Cursor

d) Row

14 You can reference explicit cursor attributes directly in a SQL statement. True or False?

a) 对

b) 错

16. Table candidates contains a CLOB column named job_appl, which already contains data values. Which of the following methods can be used to modify the CLOB column values? (Choose two.) (选择所有正确答案)

a) UPDATe candidates SET job_appl = 'new value';

b) Use DBMS_LOB.PUT in a PL/SQL block

c) UPDATE candidates SET substr(job_appl,500,9) = 'new value';

d) Use DBMS_LOB.WRITE in a PL/SQL block

17. Which of the following is NOT a benefit of using LOB datatypes?

a) They can store very large data values

b) They can store many different kinds of data, including text articles, movies, audio and photos

c) They are easier to program in PL/SQL than CHAR and VARCHAR2

d) LOB data can be stored inside or outside the database

18. Internal LOB values are stored inside the database and external LOB values are stored outside the database. True or False?

a) 对

b) 错

19. Converting a column from LONG RAW to BLOB can take a long time if the table contains millions of rows, because every one of the LONG RAW values must be copied and converted

a) 对

b) 错

20. Which of the following are NOT LOB datatypes? (Choose two.) (选择所有正确答案)

a) CLOB

b) JPEG (*)

c) BFILE

d) MP3 (*)

最佳答案

4 B
6 A, D
8 A
10 B
12 B
14 B
16 B, D
17 C
18 A
19 A
20 B, D

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
当阳市宜昌卢氏盲人按摩在哪里啊,我有事要去
胸膛老感觉紧紧的,重重的,这是怎么了?
表示不被重视的语句,生命比金钱中重要的名人
松下变频空调,外机有时候会逗逗响
樊城区襄樊旺旺牛油面馆(春园西路店)地址在哪
风水不好会引发疾病吗?
网上买电脑有分期付款的吗?哪有?
妙我很爱你我要给你幸福,英语怎么说
南岗区哈尔滨海联康大大药房(和兴七道街)哪位
手提电脑玩网络游戏对电脑有影响吗?
凤山路我想知道这个在什么地方
谁知道炎亚轮的部络是多少
太康县周口新世纪餐厅在什么地方啊,我要过去
物理题目,急求啊!!!!!
苹果删除软件怎么恢复,iphone默认应用程序删
推荐资讯
梦幻西游车池副本怎麽作?
金典传媒我想知道这个在什么地方
如何在香港玩到內地遊戲,幫幫我,給個確切的
PSP最终幻想2攻略问题
德语中的r音我发的有点像样了,要怎么去加强呢
求My Love的中文歌词
问问怎么做任务啊
NDS牧场物语之闪耀的太阳伙伴们一个问题
高顿丝手套在哪里有卖
游戏用傲游下载完成一半 突然自动退出 只剩一
哪里有杨丞琳“雨爱”完整版 、?~~
求电脑开机好听的铃声下载 wav
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?