Prentice Hall Oracle Plsql By Example 3Rd Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Prentice Hall Oracle Plsql By Example 3Rd Edition [Electronic resources] - نسخه متنی

Benjamin Rosenzweig

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







Chapter 11 Exceptions: Advanced Concepts



A5:

Questions

Answers

Comments

1)

C

RAISE_APPLICATION_ERROR associates an error number with an error text. Therefore, when working with the RAISE_APPLICATION_ERROR there is no need to create an exception name.

2)

C

RAISE_APPLICTION_ERROR has two required parameters, error_number and error_text. The keep_error is an optional parameter that is usually omitted.

3)

A

Generally, Oracle associates negative numbers with runtime errors. For user-defined exceptions, the range of such numbers is from 20,000 to 20,999.

4)

A

When the RAISE_APPLICATION_ERROR procedure is used, control is always passed to the host environment. For example, if an exception is raised in an inner block, it never propagates to the outer block.

5)

C



A5:

Questions

Answers

Comments

1)

B

EXCEPTION_INIT pragma is a special instruction to the compiler. It allows handling of unnamed internal exceptions. Such exceptions can also be handled with the help of OTHERS.

2)

B

Because pragma is a special instruction to the compiler, it is processed during compilation time.

3)

C

Some Oracle errors do not have names, and as a result they cannot be referenced in a program. The EXCEPTION_INIT pragma allows you to associate an Oracle error number with a user-defined error.

4)

C

In order to associate an Oracle error with a user-defined exception, the EXCEPTION_INIT pragma requires both error number and name.

5)

C

Error_number is a numeric parameter and should contain any valid Oracle error number; 'ORA' is not a part of an error number.



A5:

Questions

Answers

Comments

1)

A

2)

A

3)

C

4)

C

5)

B

When no exception is raised, the SQLCODE function returns 0. When there is a NO_DATA_FOUND exception, SQLCODE function returns 100.

/ 289