Method for handling uncertainty of return results of trigger

A technology that returns results and uncertainty, applied in the direction of program control devices, etc., can solve problems such as increased background load, error reporting, and many fields in the data table, and achieve the effect of simplifying complex problems, accurate processing, and simple clarity

A technology that returns results and uncertainty, applied in the direction of program control devices, etc., can solve problems such as increased background load, error reporting, and many fields in the data table, and achieve the effect of simplifying complex problems, accurate processing, and simple clarity

CN102707956AActive Publication Date: 2012-10-03福建汇智数字通达科技有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for handling uncertainty of return results of trigger
  • Method for handling uncertainty of return results of trigger

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0020] Currently, in the development of database triggers, cursors are usually used. Its main function is to return one or more records through some conditions, and calculate by extracting fields from the records, so as to achieve the purpose of database processing transactions independently. In the use of cursors, there is uncertainty in the number of results returned, and the trigger programming language is not as flexible and concise as other object-oriented development languages, so the application of triggers is not widespread, making some powerful databases Did not give full play to its powerful performance. In this solution, when using the implicit cursor, there is an attribute to handle exceptions, which is the key to solving the problem. It is precisely because the exception can be caught that we can know how many results the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention mainly provides a method for handling uncertainty of return results of a trigger, relating to the technical field of computer software. The method specifically includes the following steps that first of all, a variable is stated and is assigned; when processing a cursor, the variable value is changed according to different numbers of the return results through the corresponding abnormal handlings conducted to different return results in an Oracle database, for example, the variable is 1 at the beginning, when the cursor returns one result, the value remains unchanged, when the cursor returns a plurality of results, the variable value is assigned to be 2 and when the cursor returns no result, the variable value is assigned to be 0; and finally different program segments are executed with respect to different variable values by judging the sentences. In such a way, the return results are of clear structure and are simple and explicit, and therefore the trigger can accurately handle the return results of the cursor, the complicated problem is simplified and the expected target is accomplished. The invention aims to solve the technical problem of providing a method for handling the uncertainty of the return results of the trigger so as to ingeniously solve the problem of uncertainty of the return results of the trigger of a database by analyzing the results.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a method for dealing with the uncertainty of trigger return results. Background technique [0002] With the rapid development of the current Internet, the requirements for data storage and communication have also increased dramatically, thus accelerating the continuous updating of database software. In the past, database software can generally only meet local data storage and access, and has the characteristics of small capacity and difficult interaction. With the continuous expansion of the network scale, people need a large-scale, distributed, mass-storage database management software. The oracle database software emerges as the times require, and is widely used in many large-scale network communication systems. Nowadays, some domestic enterprises often choose oracle database when developing application systems, so that they can meet their needs in different fields. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
03 Oct 2012
Publication
CN102707956A
IPC
G06F9/44
Inventors
何泾沙; 王经纬