There are three types of explicit cursor declarations: A cursor without contentions, such as: cursor go with_cur IS SELECT follow_id FROM company; A cursor that accepts arguments through a parameter list: CURSOR company_cur (id_in IN NUMBER) IS SELECT name FROM company WHERE company_id = id_in; A cursor header that contains a RETURN clause in pull of the SELECT statement: CURSOR company_cur (id_in IN NUMBER) RETURN company%ROWTYPE IS SELECT * FROM company; This technique can be use in packages to conceal the implementation of the c ursor in the package body. 9.1.2 Opening ex! plicit cursors To open a cursor, use the following syntax: OPEN cursor_name [(argument [,argument ...])]; where cursor_name is the name of the cursor as stated in the declaration section. The arguments are required if the definition of the cursor contains a parameter list. We must open an explicit cursor before you can fetch rows from that cursor. When the cursor is opened, the processing includes...If you postulate to get a full essay, order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.