JPH04256139A - Data base control system - Google Patents

Data base control system

Info

Publication number
JPH04256139A
JPH04256139A JP3037780A JP3778091A JPH04256139A JP H04256139 A JPH04256139 A JP H04256139A JP 3037780 A JP3037780 A JP 3037780A JP 3778091 A JP3778091 A JP 3778091A JP H04256139 A JPH04256139 A JP H04256139A
Authority
JP
Japan
Prior art keywords
result information
search result
row
search
retrieving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3037780A
Other languages
Japanese (ja)
Inventor
Kazuyuki Yasuda
安田 和幸
Nobuhiro Kurashiki
倉敷 信宏
Yasushi Tamayama
玉山 恭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Information Systems Ltd
Original Assignee
Hitachi Information Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Information Systems Ltd filed Critical Hitachi Information Systems Ltd
Priority to JP3037780A priority Critical patent/JPH04256139A/en
Publication of JPH04256139A publication Critical patent/JPH04256139A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a date base control system that can reduce its scale. CONSTITUTION:A relational date base control system is provided with a cursor setting means 121 which analyzes the retrieving conditions end then produces end stores the retrieving result information consisting of the arrangement of the information which identifies the rows of the row numbers, etc., of a real data table 200 obtained from execution of the retrieval based on the analyzing result of the retrieving conditions, and a row retrieving means 122 which retrieves a specific row of the reel date table 200 that satisfies the retrieving conditions by reference to the retrieving result information. The retrieving result information has the same structure as the real, date row end stored in a retrieving result information table 230, i.e., a DB table similar to the table 200. Then the retrieving result information can be used.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、関係型データベース管
理システム(RDBMS)に係り、特に、そのシステム
規模を小さくすることができるデータベースの管理方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a relational database management system (RDBMS), and more particularly to a database management method that can reduce the system scale.

【0002】0002

【従来の技術】データベースの管理のために使用する言
語に関する従来技術として、例えば、「JIS  X 
 3005−1987〔ISO  9075−1987
(E)〕データベース言語SQL」(日本規格協会、昭
和62年11月)等に記載された技術が知られている。
[Prior Art] As a prior art related to a language used for database management, for example, "JIS
3005-1987 [ISO 9075-1987
(E)] Database Language SQL" (Japanese Standards Association, November 1986), etc., is known.

【0003】この従来技術によるデータベース言語SQ
Lは、カーソルのオープン時に、実データ表中の検索条
件を満たす行を、順次指定に従って並べた検索結果情報
を作成する。そして、この従来技術は、この作成された
検索結果情報に対して、カーソルを位置付け、位置付け
た行の検索、変更、または、削除を行うデータ操作が規
定されている。
[0003] Database language SQ according to this prior art
When the cursor is opened, L creates search result information in which rows that satisfy the search conditions in the actual data table are sequentially arranged according to the specification. In this prior art, data operations for positioning a cursor and searching, changing, or deleting the positioned row are defined for the created search result information.

【0004】また、データベース管理システム(DBM
S)に関する従来技術として、例えば、「GIGA  
データベース管理者ガイド」(日本ビジネスコンサルタ
ント、昭和58年11月  PP.4〜7)等に記載さ
れた技術が知られている。
[0004] Also, database management systems (DBM)
As a conventional technology related to S), for example, “GIGA
The technique described in "Database Administrator's Guide" (Japan Business Consultant, November 1980, pp. 4-7) is known.

【0005】この従来技術は、カーソルのオープン時に
作成される検索結果情報を、検索対象の実データ表のレ
コード(行)IDリスト(配列)としている。また、こ
の検索結果情報は、量が多くてメモリ内に収まりきらず
、ディスク等の外部記憶装置に格納する必要があるため
、専用のワークストレージ(ファイル)に格納して管理
されている。
[0005] In this prior art, search result information created when a cursor is opened is a record (row) ID list (array) of an actual data table to be searched. Furthermore, this search result information is too large to fit in the memory and needs to be stored in an external storage device such as a disk, so it is managed by being stored in a dedicated work storage (file).

【0006】図11は従来技術による関係型データベー
ス管理システムのシステム構成を示すブロック図である
。図11において、600はアプリケーション(AP)
プロセス群、610は関係型データベースシステム、6
11はトランザクション制御部、620はデータ操作部
、630は入出力制御部、640は検索結果情報ファイ
ル、650は関係型データベース(RDB)である。
FIG. 11 is a block diagram showing the system configuration of a relational database management system according to the prior art. In FIG. 11, 600 is an application (AP)
Process group, 610, relational database system, 6
11 is a transaction control unit, 620 is a data operation unit, 630 is an input/output control unit, 640 is a search result information file, and 650 is a relational database (RDB).

【0007】図示従来技術において、関係型データベー
ス管理システム(RDBMS)610は、トランザクシ
ョン制御部611、データ操作部620、及び、入出力
制御部630から構成されている。トランザクション制
御部611は、アプリケーション(AP)プリセス群6
00が要求する各トランザクション制御コマンドの実行
制御、及び、各データ操作コマンドのデータ整合制御を
行う。
In the illustrated prior art, a relational database management system (RDBMS) 610 includes a transaction control section 611, a data manipulation section 620, and an input/output control section 630. The transaction control unit 611 controls the application (AP) process group 6
Execution control of each transaction control command requested by 00 and data consistency control of each data manipulation command are performed.

【0008】また、データ操作部620は、検索条件を
解析して、条件を満たす実データ表の行番号の並びから
なる検索結果情報を生成し、その格納を制御するカーソ
ル設定制御部621、検索結果情報を参照して、実デー
タ表の行の検索操作を制御する行検索制御部622、行
の挿入操作を制御する行挿入制御部623、行の変更操
作を制御する行更新制御部624、及び、行の削除操作
を制御する行削除制御部625を備えて構成される。
[0008] The data operation unit 620 also analyzes the search conditions to generate search result information consisting of a sequence of row numbers of the actual data table that satisfies the conditions, and controls the storage of the search result information, a cursor setting control unit 621, and a search function. A row search control unit 622 that controls the row search operation of the actual data table by referring to the result information, a row insertion control unit 623 that controls the row insertion operation, a row update control unit 624 that controls the row modification operation, It also includes a row deletion control unit 625 that controls row deletion operations.

【0009】さらに、入出力制御部630は、作成され
た検索結果情報を格納する検索結果情報ファイル640
の入出力処理を行うレコード入出力処理部631、及び
、複数の実データ表651からなる関係型データベース
(RDB)650の行の入出力処理を行う入出力処理部
632を備えて構成される。
Furthermore, the input/output control unit 630 creates a search result information file 640 that stores the created search result information.
A record input/output processing unit 631 performs input/output processing of the data, and an input/output processing unit 632 performs input/output processing of rows of a relational database (RDB) 650 including a plurality of real data tables 651.

【0010】前記検索結果情報は、APプロセス601
からの実データ表の検索要求を処理する際、RDBMS
のみが参照する内部情報である。そのため、検索結果情
報を操作する際には、複数のAPプロセスが操作する実
データのように、データの整合性を保証するためのトラ
ンザクション制御機能は必要としない。また、前記検索
結果情報は、数バイトの固定長の行を識別する情報の並
びからなる可変長のデータであり、行と列とからなるデ
ータベース表にはなじまなかった。そのため、実データ
と同様に、外部記憶装置に格納されるにもかかわらず、
専用のファイル形式とファイル管理システムにより管理
されていた。
[0010] The search result information is sent to the AP process 601.
When processing a request to retrieve a real data table from the RDBMS
This is internal information that is only referenced by others. Therefore, when manipulating search result information, unlike actual data manipulated by multiple AP processes, a transaction control function for guaranteeing data consistency is not required. Further, the search result information is variable length data consisting of a sequence of information identifying rows with a fixed length of several bytes, and is not compatible with a database table consisting of rows and columns. Therefore, even though it is stored in an external storage device like real data,
It was managed using a dedicated file format and file management system.

【0011】[0011]

【発明が解決しようとする課題】前記従来技術は、実デ
ータの格納のために、関係型データベース(RDB)の
実データ表を用いているが、検索結果情報である行番号
等の行を識別する情報の並びは、専用のファイル(検索
結果情報ファイル)に格納され、専用のファイル管理シ
ステムによって管理されている。
[Problems to be Solved by the Invention] The above-mentioned prior art uses an actual data table of a relational database (RDB) to store actual data, but it is difficult to identify rows such as row numbers that are search result information. The list of information to be searched is stored in a dedicated file (search result information file) and managed by a dedicated file management system.

【0012】このため、前記従来技術は、データベース
管理システム内に、検索結果情報ファイルを管理するた
めの専用の手段が必要となり、データベース管理システ
ムの規模が大きくなるという問題点を有している。
[0012] For this reason, the above-mentioned prior art requires a dedicated means for managing the search result information file within the database management system, which has the problem of increasing the scale of the database management system.

【0013】本発明の目的は、前記従来技術の問題点を
解決し、ファイル管理のための専用の手段を不要とし、
データベース管理システムの規模を削減することのでき
るデータベースの管理方式を提供することにある。
An object of the present invention is to solve the problems of the prior art, eliminate the need for dedicated means for file management, and
An object of the present invention is to provide a database management method that can reduce the scale of a database management system.

【0014】[0014]

【課題を解決するための手段】本発明によれば前記目的
は、検索条件を解析し、その解析の結果に基づいて、検
索を実行して得た実データ表の行番号等の行を識別する
情報の並びからなる検索結果情報を生成し格納するカー
ソル設定手段と、前記検索結果情報を参照して、前記検
索条件を満たす実データ表の特定の行を検索する行検索
手段を有する関係型データベース管理システムにおいて
、前記検索結果情報を実データ行と同一の構造にし、実
データ表と同様に構成されるDB表に格納する手段と、
前記検索結果情報を、該情報が格納されたDB表から読
み込む手段とを備えることにより達成される。
[Means for Solving the Problems] According to the present invention, the object is to analyze a search condition and, based on the result of the analysis, identify a row such as a row number of an actual data table obtained by executing a search. a relational type comprising: a cursor setting means for generating and storing search result information consisting of a sequence of information; and a row search means for referring to the search result information and searching for a specific row of an actual data table that satisfies the search condition. In the database management system, means for storing the search result information in a DB table having the same structure as the actual data row and having the same structure as the actual data table;
This is achieved by comprising means for reading the search result information from a DB table in which the information is stored.

【0015】[0015]

【作用】検索結果情報を、実データと同様にDB表に格
納するので、検索結果情報の格納及び参照を行う場合の
入出力処理を、実データと同一の手段で実行することが
できる。このため、検索結果情報の入出力処理を実行す
るための特別の手段が不要となり、関係型データベース
管理システムの規模を縮少することができる。
[Operation] Since the search result information is stored in the DB table in the same way as the actual data, input/output processing for storing and referencing the search result information can be performed by the same means as for the actual data. Therefore, a special means for inputting and outputting search result information is not required, and the scale of the relational database management system can be reduced.

【0016】[0016]

【実施例】以下、本発明によるデータベースの管理方式
の一実施例を図面により詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the database management system according to the present invention will be described in detail below with reference to the drawings.

【0017】図1は本発明の一実施例のシステム構成を
示すブロック図である。100はアプリケーション(A
P)プロセス群、110は関係型データベースシステム
、111はトランザクション制御部、120はデータ操
作部、130は入出力制御部、140は関係型データベ
ース(RDB)である。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention. 100 is an application (A
P) Process group, 110 is a relational database system, 111 is a transaction control unit, 120 is a data manipulation unit, 130 is an input/output control unit, and 140 is a relational database (RDB).

【0018】図示本発明の一実施例において、関係型デ
ータベース管理システム(RDBMS)110は、トラ
ンザクション制御部111、データ操作部120、及び
、入出力制御部130から構成される。トランザクショ
ン制御部111は、アプリケーション(AP)プロセス
群100が要求する各トランザクション中のデータ操作
の実行制御、及び、各データ操作コマンドのデータ整合
制御を行う。
In one embodiment of the present invention, a relational database management system (RDBMS) 110 includes a transaction control section 111, a data manipulation section 120, and an input/output control section 130. The transaction control unit 111 performs execution control of data operations in each transaction requested by the application (AP) process group 100 and data consistency control of each data operation command.

【0019】また、データ操作部120は、検索条件を
解析して、条件を満たす実データ表の行番号の並びから
なる検索結果情報を生成し、この情報の格納を制御する
カーソル設定制御部121、検索結果情報を参照して、
実データ表の行の検索操作を制御する行検索制御部12
2、行の挿入操作を制御する行挿入制御部123、行の
変更操作を制御する行更新制御部124、及び、行の削
除操作を制御する行削除制御部125を備えて構成され
る。さらに、入出力制御部130は、作成した検索結果
情報を格納する検索結果情報表230、及び、複数の実
データ表200からなる関係型データベース(RDB)
140の行の入出力処理を行う行入出力処理部131だ
けから構成される。
Furthermore, the data manipulation unit 120 analyzes the search conditions to generate search result information consisting of a row number sequence of the actual data table that satisfies the conditions, and a cursor setting control unit 121 that controls the storage of this information. , refer to the search result information,
Row search control unit 12 that controls row search operations in the actual data table
2. A row insertion control section 123 that controls a row insertion operation, a row update control section 124 that controls a row modification operation, and a row deletion control section 125 that controls a row deletion operation. Furthermore, the input/output control unit 130 uses a relational database (RDB) consisting of a search result information table 230 that stores created search result information and a plurality of actual data tables 200.
It consists only of a line input/output processing section 131 that performs input/output processing of 140 lines.

【0020】図2、図3及び図4は実データ表200、
検索結果情報表230及びメモリ内を管理するカーソル
管理情報テーブル270のデータ構造を説明する図であ
る。
FIGS. 2, 3 and 4 show actual data tables 200,
3 is a diagram illustrating the data structure of a search result information table 230 and a cursor management information table 270 that manages the inside of memory. FIG.

【0021】図2に示す実データ表200は、実データ
表200の論理及び物理構造を示す情報等からなる表管
理情報201と、一つ以上の実データ格納ブロツク21
0とから構成される。また、実データ格納ブロツク21
0は、該ブロツク内の未使用領域212の長さ等からな
るブロツク管理情報211と、一つ以上の実データ行2
20とから構成される。さらに、実データ行220は、
実データ行220の長さ等からなる行管理情報221と
、一つ以上の実データ(列値)222とから構成される
The real data table 200 shown in FIG. 2 includes table management information 201 consisting of information indicating the logical and physical structure of the real data table 200, and one or more real data storage blocks 21.
It consists of 0. In addition, the actual data storage block 21
0 is block management information 211 consisting of the length of unused area 212 in the block, and one or more actual data rows 2
It consists of 20. Furthermore, the actual data row 220 is
It is composed of row management information 221 including the length of the actual data row 220, and one or more actual data (column values) 222.

【0022】図3に示す検索結果情報表230は、検索
結果情報表230の論理及び物理構造を示す情報等から
なる表管理情報231と、一つ以上の検索結果情報格納
ブロツク240とから構成される。また、検索結果情報
格納ブロツク240は、該ブロツク内の未使用領域24
2の長さ等からなるブロツク管理情報241と、一つ以
上の検索結果情報行250とから構成される。さらに、
検索結果情報行250は、検索結果情報行250の長さ
等からなる行管理情報251と、次の検索結果情報行の
行番号252と、検索条件を満たす行番号の並びからな
る行番号リストのサブリスト260とから構成される。 また、行番号サブリスト260は、一つ以上の行番号2
61の配列からなっている。
The search result information table 230 shown in FIG. 3 is composed of table management information 231 consisting of information indicating the logical and physical structure of the search result information table 230, and one or more search result information storage blocks 240. Ru. The search result information storage block 240 also has an unused area 24 within the block.
The block management information 241 has a length of 2, etc., and one or more search result information rows 250. moreover,
The search result information line 250 includes line management information 251 including the length of the search result information line 250, a line number 252 of the next search result information line, and a line number list consisting of a sequence of line numbers that satisfy the search conditions. It consists of a sublist 260. The line number sublist 260 also includes one or more line numbers 2
It consists of 61 arrays.

【0023】前述した実データ表200と、検索結果情
報表230とは、同一の構造を持って構成されている。
The actual data table 200 and the search result information table 230 described above have the same structure.

【0024】図4に示すカーソル管理情報テーブル27
0は、カーソル設定毎に設定される、カーソル名271
、検索結果情報表230へ格納する複数の検索結果情報
行250の中の先頭行の行番号272、検索結果情報表
230に格納した行番号格納総数273、及び、現在位
置付けられている実データ行220の行番号が行番号リ
スト内で何番目かを示すカレント行番号位置274から
なる。
Cursor management information table 27 shown in FIG.
0 is the cursor name 271, which is set for each cursor setting.
, the row number 272 of the first row among the plurality of search result information rows 250 stored in the search result information table 230, the total number of stored row numbers 273 stored in the search result information table 230, and the currently positioned actual data row. The current line number position 274 indicates the position of the line number 220 in the line number list.

【0025】図5は検索処理対象の例である実データ表
を示す図、図6はカーソル設定要求を説明する図、図7
は条件項により求められた行番号リストと、演算子によ
り結合して得た行番号リストとの関係を示す図、図8は
カーソル設定制御部121の処理を示すフローチャート
、図9、図10は行検索制御部122の処理を示すフロ
ーチャートであり、次に、これらの図を参照して、本発
明の一実施例の動作を説明する。
FIG. 5 is a diagram showing an actual data table as an example of a search processing target, FIG. 6 is a diagram explaining a cursor setting request, and FIG.
is a diagram showing the relationship between the line number list obtained by the conditional term and the line number list obtained by combining with the operator, FIG. 8 is a flowchart showing the processing of the cursor setting control unit 121, and FIGS. 9 and 10 are This is a flowchart showing the processing of the row search control unit 122. Next, the operation of an embodiment of the present invention will be described with reference to these figures.

【0026】まず、カーソル設定制御部121の動作を
図8のフローチャートを用いて説明する。
First, the operation of the cursor setting control section 121 will be explained using the flowchart shown in FIG.

【0027】(1)図5に示すような実データ表300
にカーソルを設定するため、図6に示すようなSQLコ
マンド(カーソル設定要求)310が発行されたとする
。処理の開始時、カーソル設定制御部121には、カー
ソル名321、図5に示す表300の表名322、及び
条件項323、324と、条件項間を結び付ける論理演
算子325の検索条件からなるカーソル宣言320の済
んでいるカーソルオープン要求330とが渡される(ス
テップ400)。
(1) Actual data table 300 as shown in FIG.
Assume that an SQL command (cursor setting request) 310 as shown in FIG. 6 is issued in order to set a cursor on a cursor. At the start of processing, the cursor setting control unit 121 stores a search condition consisting of a cursor name 321, a table name 322 of the table 300 shown in FIG. A cursor open request 330 for which the cursor declaration 320 has been completed is passed (step 400).

【0028】(2)この渡されたカーソル設定要求31
0の中の、条件項323、324と、条件項間を結び付
ける論理演算子325からなる検索条件を解析し、実デ
ータ表の行番号301から前記条件を満たす図7に示す
ような行番号リスト352を作成する。ここで、論理演
算子AND325は、各条件項323、324で得た行
番号リスト350、351を、マッチングして結び付け
て、検索条件を満たす行番号リスト352を作成する(
ステップ410)。
(2) This passed cursor setting request 31
0, a search condition consisting of condition terms 323 and 324 and a logical operator 325 that connects the condition terms is analyzed, and a list of line numbers as shown in FIG. Create 352. Here, the logical operator AND 325 matches and connects the line number lists 350 and 351 obtained in each condition term 323 and 324 to create a line number list 352 that satisfies the search condition (
step 410).

【0029】(3)前記ステップ410で得た行番号リ
ストの総行番号数mから、行番号サブリスト260内格
納可能最大番号数kを用いて、検索結果情報行数nを求
める。この行数nの値は、m/kを越える最小の整数と
して求められる(ステップ420)。
(3) From the total number m of line numbers in the line number list obtained in step 410, the number n of search result information lines is determined using the maximum number k that can be stored in the line number sublist 260. The value of the number of rows n is determined as the smallest integer exceeding m/k (step 420).

【0030】(4)検索結果情報行数のカウンタiに初
期値“0”を入れ、検索結果情報行数カウンタiが、検
索結果情報行数nより小さいか否かチェックし、i<n
であれば、次の処理を行う(ステップ430、440)
(4) Set the initial value "0" to the search result information line number counter i, check whether the search result information line number counter i is smaller than the number n of search result information lines, and check if i<n.
If so, perform the following processing (steps 430, 440)
.

【0031】(5)検索結果情報行数カウンタiを“1
”カウントアップし、検索結果情報行250のメモリバ
ッファにおいて、次行の行番号252に、次の検索結果
情報行250を格納する検索結果情報表230の行番号
をセットし、また、行番号サブリスト260に、前記ス
テップ410で得た行番号リスト352を行番号サブリ
スト内格納可能最大行番号数ずつ分割して、第i行番号
サブリストを作成してセットし、検索結果情報行250
を作成する(ステップ440〜460)。
(5) Set search result information line number counter i to “1”
"Counts up, sets the row number 252 of the next row in the memory buffer of the search result information row 250 to the row number of the search result information table 230 that stores the next search result information row 250, and also sets the row number sub The line number list 352 obtained in step 410 is divided into the maximum number of line numbers that can be stored in the line number sublist to create and set the i-th line number sublist, and the search result information line 250 is set in the list 260.
(Steps 440-460).

【0032】(6)次に、行入出力処理部131をコー
ルし、前記ステップ460で作成した検索結果情報行の
メモリイメージを、検索結果表230に格納させる(ス
テップ470)。
(6) Next, the line input/output processing unit 131 is called and the memory image of the search result information line created in step 460 is stored in the search result table 230 (step 470).

【0033】(7)前述のステップ440〜470の処
理を繰返し実行し、ステップ440で、検索結果情報行
数カウンタiの値が、検索結果情報行数n以上となった
場合、検索結果情報表230の情報を持つカーソル管理
情報テーブル270に、カーソル名321、検索結果情
報表230へ格納した複数検索結果情報行250の中の
先頭行の行番号、及び、前記検索結果表230へ格納し
た行番号の格納総数mをセットし、また、カレント行番
号位置274を初期化して処理を終了する(ステップ4
80、490)。
(7) The processes of steps 440 to 470 described above are repeatedly executed, and in step 440, if the value of the search result information line number counter i is equal to or greater than the number n of search result information lines, the search result information table is 230, the cursor name 321, the line number of the first line among the multiple search result information lines 250 stored in the search result information table 230, and the line stored in the search result table 230. The total number m of stored numbers is set, the current row number position 274 is initialized, and the process ends (step 4
80, 490).

【0034】次に、行検索制御部122の処理動作を図
9、図10に示すフローチャートを用いて説明する。
Next, the processing operation of the row search control section 122 will be explained using the flowcharts shown in FIGS. 9 and 10.

【0035】(1)図6に示すようなカーソル設定要求
310により設定されたカーソルから行検索を実行する
SQLコマンド340が発行された場合、カーソル名3
21、及び、現在位置付けられている実データ表220
の行番号が行番号リスト内で何番目かを示すカレント行
番号位置から、次に位置付ける行番号までのオフセット
値を指定する取り出しオフセット341からなる検索要
求340が行検索制御部122に渡される(ステップ5
00)。
(1) When an SQL command 340 that executes a row search from a cursor set by a cursor setting request 310 as shown in FIG. 6 is issued, cursor name 3
21, and the currently located actual data table 220
A search request 340 consisting of a retrieval offset 341 that specifies an offset value from the current line number position indicating the position of the line number in the line number list to the next line number to be positioned is passed to the line search control unit 122 ( Step 5
00).

【0036】(2)カーソル管理情報テーブル270か
ら、前記ステップ500で渡されたカーソル名321と
同一のカーソル名271を持つエントリをサーチし、該
エントリから、検索結果情報行250の先頭の行番号2
72、検索結果情報表230に格納されている行番号の
格納総数273、及び、現在位置付けられている実デー
タ行220の行番号が行番号リスト内で何番目かを示す
カレント行番号位置274を得る(ステップ501)。
(2) Search the cursor management information table 270 for an entry with the same cursor name 271 as the cursor name 321 passed in step 500, and find the first line number of the search result information line 250 from the entry. 2
72, the total number of stored row numbers 273 stored in the search result information table 230, and the current row number position 274 indicating the row number of the currently positioned actual data row 220 in the row number list. obtained (step 501).

【0037】(3)前記ステップ501で得たカレント
行番号位置mに、渡されたカレント行番号位置からのオ
フセット341を加えて、検索を行う新しいカレント行
番号位置mを求める(ステップ502)。
(3) Add the passed offset 341 from the current line number position to the current line number position m obtained in step 501 to find a new current line number position m for which the search is to be performed (step 502).

【0038】(4)前記ステップ502で求めたカレン
ト行番号位置mに対してEOF(エンドオブファイル)
チェックを行い、カレント行番号位置mがEOFであっ
た場合、カーソル管理情報テーブル270内のカレント
行番号位置274に、最終行番号位置の次(k+1)を
セットし行検索制御処理を異常終了する(ステップ50
3〜505)。
(4) EOF (end of file) for the current line number position m obtained in step 502
If the check is performed and the current line number position m is EOF, the current line number position 274 in the cursor management information table 270 is set to (k+1) after the last line number position, and the line search control process is abnormally terminated. (Step 50
3-505).

【0039】(5)ステップ502で求めたカレント行
番号位置mに対してEOFチェックを行い、カレント行
番号位置mがEOFでなかった場合、カーソル管理情報
テーブル270内のカレント行番号位置274に、前記
ステップ502で得たカレント行番号位置mをセットす
る(ステップ503、506)。
(5) Perform an EOF check on the current line number position m obtained in step 502, and if the current line number position m is not EOF, the current line number position 274 in the cursor management information table 270 is The current line number position m obtained in step 502 is set (steps 503 and 506).

【0040】(6)前記ステップ502で求めたカレン
ト行番号位置mから、検索するカレント行番号が格納さ
れている検索結果情報行250のシーケンス番号nを求
め、検索結果行読み込み数カウンタiに、初期値“1”
をセットし、読み込む検索結果情報表の行番号rに、初
期値である検索結果情報行250の先頭の行番号“j”
をセットする(ステップ507、508)。
(6) From the current line number position m obtained in step 502, find the sequence number n of the search result information line 250 in which the current line number to be searched is stored, and set it in the search result line read number counter i. Initial value “1”
and set the row number r of the search result information table to be read to the initial value "j", the first row number of the search result information row 250.
is set (steps 507, 508).

【0041】(7)行入出力処理部131をコールし、
検索結果情報表230から、ステップ508、及び後述
するステップ511で得た読み込む検索結果情報表の行
番号rの検索結果情報行250を読み込む(ステップ5
09)。
(7) Call the line input/output processing unit 131,
From the search result information table 230, the search result information row 250 with row number r of the search result information table to be read obtained in step 508 and step 511, which will be described later, is read (step 5
09).

【0042】(8)読み込み数カウンタiが、前記ステ
ップ507で求めた検索するカレント行番号の検索結果
情報行のシーケンス番号nより小さいか否か検査し、小
さいならば、前記ステップ509で読み込んだ検索結果
情報行250内の次行の行番号252の値を、読み込む
検索結果情報表230の行番号rにセットし、読み込み
数カウンタiを1カウントアップして、ステップ509
へ戻る(ステップ510〜512)。
(8) Check whether the reading number counter i is smaller than the sequence number n of the search result information line of the current line number to be searched obtained in step 507, and if it is smaller, the read number counter i is checked in step 509. The value of the next row number 252 in the search result information row 250 is set to the row number r of the search result information table 230 to be read, the read number counter i is incremented by 1, and step 509
Return to step 510-512.

【0043】(9)ステップ510で、読み込み数カウ
ンタiが、前記ステップ507で求めた検索するカレン
ト行番号の検索結果情報行のシーケンス番号n以上の場
合、前記ステップ509で、メモリ上に読み込んだ検索
結果情報行250内で、前記ステップ502で求めたカ
レント行番号位置を、行番号サブリスト260内格納可
能最大行番号数で除算した余りの位置にある、検索する
行番号値pを求め、行入出力処理部131をコールして
、実データ表200から、前述で求めた行番号pの実デ
ータ行220を読み込んで、処理を終了する(ステップ
514〜516)。
(9) In step 510, if the reading number counter i is greater than or equal to the sequence number n of the search result information line of the current line number to be searched obtained in step 507, the read number counter i in step 509 is In the search result information line 250, find the line number value p to be searched at the remainder position when the current line number position obtained in step 502 is divided by the maximum number of line numbers that can be stored in the line number sublist 260, The line input/output processing unit 131 is called to read the actual data row 220 with the row number p obtained above from the actual data table 200, and the process ends (steps 514 to 516).

【0044】[0044]

【発明の効果】以上説明したように本発明によれば、検
索結果情報を、専用のファイルにではなく、実データと
同じくDB表に格納し、検索結果情報の格納、及び参照
の入出力処理を実データと同一の手段を用いて実行する
ことができるので、専用のファイル管理システムを不要
とすることができ、これにより、データベースの規模を
削減することができる。
As explained above, according to the present invention, search result information is stored not in a dedicated file but in a DB table like the actual data, and the search result information is stored and reference input/output processing is performed. can be executed using the same means as for real data, making it possible to eliminate the need for a dedicated file management system, thereby reducing the scale of the database.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例のシステム構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention.

【図2】実データ表200のデータ構造を説明する図で
ある。
FIG. 2 is a diagram illustrating the data structure of an actual data table 200.

【図3】検索結果情報表230のデータ構造を説明する
図である。
FIG. 3 is a diagram illustrating the data structure of a search result information table 230.

【図4】メモリ内で管理されるカーソル管理情報テーブ
ル270のデータ構造を説明する図である。
FIG. 4 is a diagram illustrating the data structure of a cursor management information table 270 managed in memory.

【図5】検索処理対象の例である実データ表を示す図で
ある。
FIG. 5 is a diagram showing an actual data table that is an example of a search processing target.

【図6】カーソル設定要求を説明する図である。FIG. 6 is a diagram illustrating a cursor setting request.

【図7】条件項により求められた行番号リストと、論理
演算子により結合して得た行番号リストとの関係を示す
図である。
FIG. 7 is a diagram showing the relationship between a line number list obtained using a conditional term and a line number list obtained by combining using a logical operator.

【図8】カーソル設定制御部121の処理を示すフロー
チャートである。
FIG. 8 is a flowchart showing the processing of the cursor setting control unit 121.

【図9】行検索制御部122の処理を示すフローチャー
トである。
FIG. 9 is a flowchart showing the processing of the row search control unit 122.

【図10】行検索制御部122の処理を示すフローチャ
ートである。
FIG. 10 is a flowchart showing the processing of the row search control unit 122.

【図11】従来技術による関係型データベース管理シス
テムのシステム構成を示すブロック図である。
FIG. 11 is a block diagram showing the system configuration of a relational database management system according to the prior art.

【符号の説明】[Explanation of symbols]

100  アプリケーション(AP)プロセス群110
  関係型データベースシステム111  トランザク
ション制御部 120  データ操作部 130  入出力制御部
100 Application (AP) process group 110
Relational database system 111 Transaction control unit 120 Data operation unit 130 Input/output control unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  検索条件を解析し、検索を実行するこ
とにより検索結果情報を生成して格納する手段と、前記
検索結果情報を参照して、前記検索条件を満たす実デー
タ表の特定の行を検索する手段とを備えて構成される関
係型データベース管理システムにおいて、前記検索結果
情報を実データ行と同一の構造にして、実データ表と同
一構造のデータベース表に格納することを特徴とするデ
ータベースの管理方式。
1. Means for generating and storing search result information by analyzing search conditions and executing a search; The relational database management system is characterized in that the search result information has the same structure as the actual data row and is stored in a database table having the same structure as the actual data table. Database management method.
【請求項2】  前記検索結果情報は、実データ表の行
番号等の行を識別する情報の並びからなり、検索結果情
報を生成して格納する手段が、カーソル設定手段である
ことを特徴とする請求項1記載のデータベース管理方式
2. The search result information is comprised of a sequence of information identifying rows such as line numbers of the actual data table, and the means for generating and storing the search result information is a cursor setting means. 2. The database management method according to claim 1.
【請求項3】  前記データベース表に格納された前記
検索結果情報は、実データ表を読み出す手段を用いて読
み出されることを特徴とする請求項1または2記載のデ
ータベース管理方式。
3. The database management system according to claim 1, wherein the search result information stored in the database table is read using means for reading an actual data table.
JP3037780A 1991-02-08 1991-02-08 Data base control system Pending JPH04256139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3037780A JPH04256139A (en) 1991-02-08 1991-02-08 Data base control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3037780A JPH04256139A (en) 1991-02-08 1991-02-08 Data base control system

Publications (1)

Publication Number Publication Date
JPH04256139A true JPH04256139A (en) 1992-09-10

Family

ID=12507005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3037780A Pending JPH04256139A (en) 1991-02-08 1991-02-08 Data base control system

Country Status (1)

Country Link
JP (1) JPH04256139A (en)

Similar Documents

Publication Publication Date Title
US5987453A (en) Method and apparatus for performing a join query in a database system
US7349925B2 (en) Shared scans utilizing query monitor during query execution to improve buffer cache utilization across multi-stream query environments
US6374232B1 (en) Method and mechanism for retrieving values from a database
US8799229B2 (en) Searchable archive
US7240044B2 (en) Query optimization by sub-plan memoization
US6216203B1 (en) Data processing method using record division storing scheme and apparatus therefor
US4916655A (en) Method and apparatus for retrieval of a search string
US6122644A (en) System for halloween protection in a database system
US20020059281A1 (en) Method for creating an index and method for searching an index
JP3914662B2 (en) Database processing method and apparatus, and medium storing the processing program
US20080183663A1 (en) Dynamic Index Selection for Database Queries
JPH09305622A (en) Method and system for managing data base having document retrieval function
JPH04256139A (en) Data base control system
CN108984720B (en) Data query method and device based on column storage, server and storage medium
US8706769B1 (en) Processing insert with normalize statements
CN109241098B (en) Query optimization method for distributed database
JPH02116936A (en) Reorganizing system
JP2001155028A (en) Aggregate calculation processing method and device for relational database, and computer readable recording medium recorded with aggregate arithmetic processing program
JPH09106364A (en) Information controlling method and device therefor
JPH01292427A (en) Keyword retrieving system
JPH05120009A (en) Register retrieval system
JPH02257284A (en) Data processor
JPH07146879A (en) Relational data base condition retrieval result control system
JPS63220321A (en) Data retrieving system
JPH035823A (en) System for searching row number of source program maintenance