TAILIEUCHUNG - PL/SQL User’s Guide and Reference phần 8

Phạm vi Rules Bạn không có thể khai báo một trường hợp ngoại lệ hai lần trong cùng một khối. Bạn có thể, tuy nhiên, tuyên bố ngoại lệ tương tự trong hai khối khác nhau. Trường hợp ngoại lệ được tuyên bố trong một khối được coi là địa phương để ngăn chặn đó | Cursors Cursors To execute a multi-row query Oracle opens an unnamed work area that stores processing information. An explicit cursor lets you name the work area access the information and process the rows individually. For more information see Managing Cursors on page 5-6. Syntax cursordeclaration CURSOR - cursor name - cursor_spec 1 RETURN 1 rowtype PQ cursor_parameter_declaration datatype 11-48 PL SQL User s Guide and Reference Cursors Keyword and Parameter Description cursor_name This identifies an explicit cursor previously declared within the current scope. datatype This is a type specifier. For the syntax of datatype see Constants and Variables on page 11-33. db_table_name This identifies a database table or view that must be accessible when the declaration is elaborated. expression This is an arbitrarily complex combination of variables constants literals operators and function calls. The simplest expression consists of a single variable. When the declaration is elaborated the value of expression is assigned to the parameter. The value and the parameter must have compatible datatypes. parameter_name This identifies a cursor parameter that is a variable declared as the formal parameter of a cursor. A cursor parameter can appear in a query wherever a constant can appear. The formal parameters of a cursor must be IN parameters. The query can also reference other PL SQL variables within its scope. Language Elements 11-49 Cursors record_name This identifies a user-defined record previously declared within the current scope. record_type_name This identifies a user-defined record type that was defined using the datatype specifier RECORD. RETURN This keyword introduces the RETURN clause which specifies the datatype of a cursor return value. You can use the ROWTYPE attribute in the RETURN clause to provide a record type that represents a row in a database table or a row returned by a previously declared cursor. Also you can use the TYPE attribute to provide the .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.