- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
常用错误处理模块
Bordoloi and Bock EXPLICIT CURSOR The only means of generating an explicit cursor is for the cursor to be named in the DECLARE section of the PL/SQL Block. The advantages of declaring an explicit cursor over the indirect implicit cursor are that the explicit cursor gives more programmatic control to the programmer. Implicit cursors are less efficient than explicit cursors and thus it is harder to trap data errors. Bordoloi and Bock EXPLICIT CURSOR The process of working with an explicit cursor consists of the following steps: DECLARING the cursor. This initializes the cursor into memory. OPENING the cursor. The previously declared cursor can now be opened; memory is allotted. FETCHING the cursor. The previously declared and opened cursor can now retrieve data; this is the process of fetching the cursor. CLOSING the cursor. The previously declared, opened, and fetched cursor must now be closed to release memory allocation. Bordoloi and Bock DECLARING A CURSOR Declaring a cursor defines the name of the cursor and associates it with a SELECT statement. The first step is to Declare the Cursor with the following syntax: CURSOR c_cursor_name IS select statement Cursor names follow the same rules of scope and visibility that apply to the PL/SQL identifiers. Because the name of the cursor is a PL/SQL identifier, it must be declared before it is referenced. Any valid select statement can be used to define a cursor, including joins and statements with the UNION or MINUS clause. Bordoloi and Bock RECORD TYPES A record is a composite data structure, which means that it is composed of more than one element. Records are very much like a row of a database table, but each element of the record does not stand on its own. PL/SQL supports three kinds of records: Table based Cursor_based, Programmer-defined. Bordoloi and Bock RECORD TYPES A table-based record is one whose structure is drawn from the list of columns in the table. A cursor-based record is one whose structure mat
您可能关注的文档
- 应当选用阿片类药物镇痛误区二疼痛剧烈时才用止痛药及时.PPT
- 应当收集证明犯罪嫌疑人具有作案时间的充分证据和制.DOC
- 宝来BORAA4维修手册.DOC
- 拖拉机驾驶培训学校班.DOC
- 拖拉机起重机压路机拉提压犁路货物磁铁吸引铁钉人作用物体推土.PPT
- 实务社群的学习与知识产生-我看理工科试验室.DOC
- 应考虑凝血功能障碍或无排卵引起的月经过多-幸福女人卵巢保养网.DOC
- 拟胆碱药胆碱受体激动药.PPT
- 实施的保障措施-宁波电子行业协会.PPT
- 指北针-北京大学生体育协会.DOC
- 2025至2030自动地板磨床行业发展研究与产业战略规划分析评估报告.docx
- 2025至2030中国电动重卡行业运营态势与投资前景调查研究报告.docx
- 2025至2030中国自行车眼镜行业细分市场及应用领域与趋势展望研究报告.docx
- 2025至2030全球及中国施工会计和项目管理软件行业市场占有率及有效策略与实施路径评估报告.docx
- 2025至2030牛加工品行业市场发展现状分析及竞争格局与投资价值报告.docx
- 2025至2030水泥行业调研及市场前景预测评估报告.docx
- 2025至2030古董产业发展分析及政府战略规划实施报告.docx
- 2025至2030中国桌面手势识别系统行业市场占有率及有效策略与实施路径评估报告.docx
- 2025至2030中国耐温陶瓷行业发展分析及竞争格局及有效策略与实施路径评估报告.docx
- 2025至2030图书零售连锁行业调研及市场前景预测评估报告.docx
最近下载
- (最新)国家事业单位政治理论知识考试题库(含答案).docx VIP
- 小学三年级数学上册口算题卡1400道.pdf VIP
- 燃烧仿真技术教程:锅炉燃烧优化设计.docx
- 赵一鸣抖音内容营销及推广运营方案.pptx VIP
- existentialism存在主义完整版.pptx VIP
- 2025年质量工程师控制图与过程失效模式分析结合案例专题试卷及解析.pdf VIP
- 应征入伍服兵役高等学校学生国家教育资助申请表1(样表).docx
- 酶制剂固定化市场需求分析报告.docx
- 2025年咨询工程师汇率决定之能源价格与大宗商品依赖型国家汇率专题试卷及解析.pdf VIP
- CQI-29钎焊系统评估.xlsx VIP
原创力文档


文档评论(0)