Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH077350B2 - Relational database search processing method - Google Patents
[go: Go Back, main page]

JPH077350B2 - Relational database search processing method - Google Patents

Relational database search processing method

Info

Publication number
JPH077350B2
JPH077350B2 JP61200841A JP20084186A JPH077350B2 JP H077350 B2 JPH077350 B2 JP H077350B2 JP 61200841 A JP61200841 A JP 61200841A JP 20084186 A JP20084186 A JP 20084186A JP H077350 B2 JPH077350 B2 JP H077350B2
Authority
JP
Japan
Prior art keywords
search
view
level
recursive
database
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.)
Expired - Lifetime
Application number
JP61200841A
Other languages
Japanese (ja)
Other versions
JPS6355625A (en
Inventor
裕 関根
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61200841A priority Critical patent/JPH077350B2/en
Publication of JPS6355625A publication Critical patent/JPS6355625A/en
Publication of JPH077350B2 publication Critical patent/JPH077350B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔概要〕 本発明は,リレーショナル・データベースに対する例え
ばSQL言語等の問い合わせ言語処理において,ビュー機
能に再帰性を持たせることにより,データ内容を依存す
る不定レベルの検索を行うことを可能としている。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention performs an indefinite level search that depends on data content by making a view function recursive in query language processing such as SQL language for a relational database. It is possible.

〔産業上の利用分野〕[Industrial application field]

本発明はリレーショナル・データベース検索処理方法,
特にリレーショナル・データベースにおいて,いわゆる
子部品展開や親捜し展開を容易に行うことができるよう
にしたリレーショナル・データベース検索処理方法に関
するものである。
The present invention relates to a relational database search processing method,
In particular, the present invention relates to a relational database search processing method capable of easily performing so-called child part expansion and parent search expansion in a relational database.

近年,利用者にとって使いやすいデータベース・システ
ムとして,リレーショナル・データベース(関係型デー
タベース)が,多く採用されるようになってきている。
データベース・システムでは,リレーショナル・データ
ベースに限らず,管理されている種々のデータから,利
用者が必要とするデータを,できるだけ簡単な指定によ
って抽出できるようにすることが望まれる。
In recent years, relational databases (relational databases) have been widely adopted as database systems that are easy for users to use.
In database systems, it is desirable to be able to extract the data required by the user from various types of managed data, not limited to relational databases, with the simplest possible specifications.

〔従来の技術〕[Conventional technology]

リレーショナル・データベースでは,テーブル形式でも
ってデータを管理する。このリレーショナル・データベ
ースに対する問い合わせ言語として,例えばSQL言語が
知られている。SQL言語では,次のような形式で検索を
指定できるようになっている。
Relational databases manage data in tabular form. For example, SQL language is known as a query language for this relational database. The SQL language allows you to specify a search in the following format.

SELECT(対象カラム名) FROM(テーブル名) WHERE(条件) また,SQL言語は,1または複数のテーブルから,所定の条
件を満足するデータだけを抽出して,仮想的なテーブル
を動的に構成するビューを機能を有している。
SELECT (target column name) FROM (table name) WHERE (condition) In addition, the SQL language dynamically constructs a virtual table by extracting only the data that satisfies a predetermined condition from one or more tables. It has a view function.

しかし,ビュー定義において,検索対象として指定でき
るテーブルは,既に定義されているテーブルであること
が必要であることから,ビューの定義名を,そのビュー
自体で使用することは許されていない。
However, in the view definition, the table that can be specified as the search target must be a table that has already been defined, and therefore the view definition name is not allowed to be used in the view itself.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

第4図は本発明の課題を説明するための図である。 FIG. 4 is a diagram for explaining the problem of the present invention.

例えば,第4図(イ)図示のような親子関係を持つデー
タを考える。P1ないしP7は,それぞれ部品のデータであ
って,P1は,P2,P3,P4の部品を使用することを表してい
る。P2は,P3,P5の部品を使用する。P3以下の部品も,同
様に他の部品を使用する。このような部品データを,リ
レーショナル・データベースにより,テーブル形式で管
理すると,第4図(ロ)に示すテーブルT2(テーブル名
PP)のようになる。即ち,A#は親,C#は子の部品を表
す。カラムQTYは子部品の数量である。なお,テーブルT
1(テーブル名PARTS)は,部品毎の属性データを記憶す
るテーブルである。
For example, consider data having a parent-child relationship as shown in FIG. P1 to P7 are data of parts, respectively, and P1 indicates that P2, P3, and P4 parts are used. P2 uses the parts of P3 and P5. For parts below P3, use other parts as well. If such part data is managed in a table format by a relational database, the table T2 (table name) shown in FIG.
PP). That is, A # represents a parent component and C # represents a child component. Column QTY is the quantity of child parts. Table T
1 (table name PARTS) is a table that stores attribute data for each part.

このようなテーブルT2において,例えば「P1の構成に必
要なすべての子部品は何か?」というような子部品展開
を行う場合には,P1からP2,P3,P4を求め,さらにP2からP
3,P5を求め,P5からP6を求め,……というように,何レ
ベルにもわたって,テーブルを検索する必要がある。こ
のレベルは,データ内容に依存し,不定であるため,従
来用いられている問い合わせ言語の体系では,簡単に検
索結果を得ることができないという問題があった。例え
ば,「P7を使用するすべての親の部品は何か?」という
ような,親捜し展開を行う場合等も同様である。
In such a table T2, when expanding child parts such as "what are all the child parts necessary for the configuration of P1?", P1 to P2, P3, and P4 are obtained, and P2 to P
3, P5 is obtained, P5 is obtained from P6, and so on. It is necessary to search the table over many levels. Since this level depends on the data contents and is indefinite, there is a problem that the search results cannot be easily obtained with the conventional query language system. For example, the same applies to the case of performing parent search such as "What are all the parent parts using P7?"

即ち,従来のネットワーク型のデータベースなどの場合
には,上記子部品展開および親捜し展開等は,比較的容
易に処理可能であるが,リレーショナル・データベース
の場合には,特殊なデータ構造をとり,特別な処理を個
別に組立てなければ,完全な子部品展開等を行うことは
できなかった。
That is, in the case of a conventional network type database, the child part expansion and parent search expansion can be processed relatively easily, but in the case of a relational database, a special data structure is used. If special processing was not assembled individually, complete expansion of child parts could not be performed.

本発明は上記問題点の解決を図り,リレーショナル・デ
ータベースに対する既存の言語体系を大きく変更しない
で,容易に不定レベルの検索を行うことができるような
手段を提供することを目的としている。
An object of the present invention is to solve the above problems and to provide a means for easily performing an indefinite level search without significantly changing the existing language system for a relational database.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の基本構成例を示す。 FIG. 1 shows a basic configuration example of the present invention.

第1図において,10は検索コマンドやビュー定義情報等
を入力する入力部,11は問い合わせ言語処理部,12はコマ
ンド等の構文を解析する構文解析部,13は構文解析結果
について意味を解析する意味解析部,14は実際のテーブ
ルをサクセスするスケジューリングを行う最適化処理
部,15はテーブルをアクセスするための一連の中間コー
ドまたはオブジェクト・コードを生成するコード生成
部,16はコード実行部,17はコード生成部15によって生成
された生成コード,17Aは初期データ生成部,17Bは同期バ
ッファリング制御部,17Cは検索データ生成部,18はビュ
ー定義情報を登録するビュー定義部,19はデータベース,
20はビュー定義情報を記憶するビュー定義情報部,21A,2
1Bはテーブル形式のデータを記憶するテーブル,22はデ
ータベース19に対するデータ入出力を行うデータベース
アクセス部を表す。
In FIG. 1, 10 is an input unit for inputting search commands and view definition information, 11 is a query language processing unit, 12 is a syntactic analysis unit for analyzing the syntax of commands and the like, and 13 is the meaning of the syntactic analysis result. A semantic analysis unit, 14 is an optimization processing unit that performs scheduling to access the actual table, 15 is a code generation unit that generates a series of intermediate code or object code for accessing the table, 16 is a code execution unit, 17 Is a generated code generated by the code generation unit 15, 17A is an initial data generation unit, 17B is a synchronous buffering control unit, 17C is a search data generation unit, 18 is a view definition unit for registering view definition information, 19 is a database,
20 is a view definition information section for storing view definition information, 21A, 2
1B is a table for storing table format data, and 22 is a database access unit for inputting / outputting data to / from the database 19.

本発明の場合,ビュー定義部18は,ビュー定義上で,対
象ビュー定義名を検索対象に含む再帰的な定義を持つビ
ューについても,通常のビュー定義と同様に受け付け
て,ビュー定義情報部20上に登録する。
In the case of the present invention, the view definition unit 18 accepts a view having a recursive definition including a target view definition name as a search target on the view definition in the same manner as a normal view definition, and then the view definition information unit 20. Register above.

入力部10から,リカーシブに定義されたビューに対する
検索コマンドが入力されると,問い合わせ言語処理部11
は,構文解析部12によって構文を解析した後,意味解析
部13によって,ビュー定義情報部20上の定義情報を参照
し,最適化処理部14によって,最適化を行って,コード
生成部15により,生成コード17を生成する。この生成コ
ード17は,インタプリタ形式で実行される中間コードの
ようなものでもよいし,また直接実行可能なコンパイラ
出力のようなものでもよい。特に,本発明に関連する生
成コード17には,検索データ生成に関する再帰呼出しが
含まれ,実質的に,各ネストレベルに応じて得られる検
索結果の集合和から,問い合わせ結果が得られるように
なっている。
When a search command for a recursively defined view is input from the input unit 10, the query language processing unit 11
After the syntax is analyzed by the syntax analysis unit 12, the semantic analysis unit 13 refers to the definition information on the view definition information unit 20, the optimization processing unit 14 performs optimization, and the code generation unit 15 , Generate generated code 17. The generated code 17 may be an intermediate code that is executed in an interpreter format, or a compiler output that can be directly executed. In particular, the generated code 17 related to the present invention includes a recursive call related to search data generation, and the query result can be obtained substantially from the set sum of the search results obtained according to each nesting level. ing.

コード実行部16は,生成コード17を解釈・実行し,デー
タベースアクセス部22を介して,データベース19へアク
セスする。
The code execution unit 16 interprets and executes the generated code 17, and accesses the database 19 via the database access unit 22.

〔作用〕 本発明では,ビュー定義上で,対象ビュー定義名を検索
対象に含む再帰的な定義が許される。従って,データ内
容に依存する不定レベルの検索を,その再帰的なビュー
定義によって,予め指定することができ,そのビューに
対する検索コマンドによって,各ネストレベルに応じた
検索結果の集合和を得ることができる。
[Operation] In the present invention, a recursive definition including a target view definition name as a search target is allowed on the view definition. Therefore, an indefinite level search that depends on the data content can be specified in advance by the recursive view definition, and the search command for that view can obtain the set sum of the search results according to each nesting level. it can.

〔実施例〕〔Example〕

第2図は本発明の一実施例に係る生成コードによる処理
概念図,第3図は本発明の一実施例動作を説明するため
の実行等価コマンド説明図を示す。
FIG. 2 is a conceptual diagram of processing by generated code according to an embodiment of the present invention, and FIG. 3 is an explanatory diagram of execution equivalent commands for explaining the operation of the embodiment of the present invention.

以下の実施例では,リレーショナル・データベース用の
問い合わせ言語として周知であるSQL言語を例に説明す
る。同種のビュー機能を有する他の問い合わせ言語にも
同様に適用できる。
In the following embodiments, the SQL language, which is a well-known query language for relational databases, will be described as an example. The same can be applied to other query languages having the same view function.

例えば,第4図(ロ)図示のテーブルT2(テーブル名P
P)について,子部品展開により,構成部品の一覧表を
求める場合,予め次のようなビュー定義を行う。
For example, the table T2 (table name P shown in FIG. 4B)
For P), when obtaining a list of component parts by expanding child parts, the following view definition is performed in advance.

VIEW V(A#,C#,QTY) AS SELECT PP.A#,PP.C#,PP.
QTY FROM PP,V WHERE PP.C#=V.A# このビュー定義は,テーブルPPとビューVについて,PP
のカラムC#とVのカラムA#が等しいものを選び,そ
のPPのA#,C#,QTYによって,ビューVが構成されるこ
とを示している。このビュー定義では,ビュー定義名
「V」が,その定義内におけるFROM節で使用されるた
め,再帰的な定義となっている。なお,この定義は,DBM
S利用者が行う。
VIEW V (A #, C #, QTY) AS SELECT PP.A #, PP.C #, PP.
QTY FROM PP, V WHERE PP.C # = VA # This view definition is for table PP and view V, PP
It is shown that the view V is constituted by the columns A #, C #, and QTY of the PP selected by selecting the column C # of which is the same as the column A # of the V. In this view definition, the view definition name "V" is used in the FROM clause in the definition, so it is a recursive definition. Note that this definition is
S User does.

ここで,部品P1を構成するすべての部品を抽出したいと
する。この場合,次のような検索コマンドを投入する。
Here, suppose that you want to extract all the components that make up the component P1. In this case, enter the following search command.

SELEKCT * FROMV V WHERE PP.C#=V.A# 第1図に示す問い合わせ言語処理部11は,この検索コマ
ンドを解析し,例えば第2図に示すような生成コード17
を生成する。生成コード17は,初期データ生成部17A,同
期バッファリング制御部17B,検索データ生成部17Cから
なる。
SELEKCT * FROMV V WHERE PP.C # = VA # The query language processing unit 11 shown in FIG. 1 analyzes this search command and generates generated code 17 as shown in FIG. 2, for example.
To generate. The generated code 17 includes an initial data generation unit 17A, a synchronous buffering control unit 17B, and a search data generation unit 17C.

初期データ生成部17Aでは,まず処理によって,レベ
ルを「0」に設定し,検索対象項目として‘P1'を指定
して,同期バッファリング制御部17Bを呼び出す。レベ
ルは,再帰呼出しに関する深さを示す。
In the initial data generation unit 17A, the level is first set to "0" by processing, "P1" is specified as the search target item, and the synchronous buffering control unit 17B is called. The level indicates the depth of the recursive call.

同期バッファリング制御部17Bでは,処理により,レ
ベルおよび検索対象項目情報を,それぞれ変数SYSLEVE
L,P#に受け取ると,処理によって,同期のためのバ
ッファリング制御を行い,処理によって,変数SYSLEV
EL,P#を指定し,検索データ生成部17Cを呼び出す。
In the synchronous buffering control unit 17B, the level and the search target item information are respectively set in the variable SYSLEVE by processing.
When received in L, P #, buffering control for synchronization is performed by processing, and variable SYSLEV is processed by processing.
Specify EL and P # and call the search data generator 17C.

検索データ生成部17Cは,処理によって,同期バッフ
ァリング制御部17Bからの要求を受け取ると,処理に
よって,検索対象C1を宣言する。このC1は,第1図に示
すデータベースアクセス部22が,データベース19をアク
セスするにあたって用いるホストインタフェースと考え
てよい。処理によって,このC1による検索を指定す
る。
Upon receiving the request from the synchronous buffering control unit 17B by the processing, the search data generation unit 17C declares the search target C1 by the processing. This C1 may be considered as a host interface used by the database access unit 22 shown in FIG. 1 to access the database 19. The processing specifies this C1 search.

処理は,検索結果がなくなるまで,処理ないし処理
を繰り返すことを指示する。処理によって,実際の
データベース19へのアクセスが行われ,1件のP#が取得
される。得られたP#の値は,処理によって,検索結
果の1つとして出力される。例えば,レベルの深さに制
約がある場合には,処理によってSYSLEVELのチェック
を行い,必要に応じて,次の処理をスキップする。
The process instructs the process or the process to be repeated until there are no search results. By the processing, the actual database 19 is accessed and one P # is acquired. The obtained value of P # is output as one of the search results by the processing. For example, if there is a restriction on the depth of the level, SYSLEVEL is checked by the process, and the next process is skipped if necessary.

処理では,SYSLEVELの値に+1したものを,レベルと
して設定し,P#を新たな検索対象項目として,同期バッ
ファリング制御部17Bを呼び出す。リカーシブは,この
データの戻しにより実現されることになる。
In the processing, the value obtained by adding 1 to the value of SYSLEVEL is set as a level, and the synchronous buffering control unit 17B is called with P # as a new search target item. Recursive will be realized by returning this data.

処理は,処理に対応するもので,繰り返しの終了を
示す。処理は,C1による検索の終了を示す。
The process corresponds to the process and indicates the end of repetition. The process indicates the end of the search by C1.

以上の生成コード17を,インタプリタ的に,または直接
オブジェクト・コードのようなものに落として実行する
ことにより,実質的に第3図に示すような,検索コマン
ドの解釈・実行がなされることになる。即ち,第3図
(イ)に示す再帰的定義によるビューを指定する検索コ
マンドは,第3図(ロ)に示す各ネストレベルに応じた
検索コマンドのUNION(集合初)と,実質的に実行動作
およびその結果が等価なものになる。
By interpreting or executing the generated code 17 interpretively or directly into something like object code, the search command is substantially interpreted and executed as shown in FIG. Become. That is, the search command that specifies the view according to the recursive definition shown in FIG. 3 (a) is substantially executed with the search command UNION (at the beginning of the set) corresponding to each nesting level shown in FIG. 3 (b). The behavior and the result are equivalent.

第3図(ロ)において,PP1,PP2,…は,それぞれテーブ
ルPPに対して,レベル対応の検索用に指定された名前で
ある。UNIONの個数は無限と考えて,あるレベル以上は
常に空集合の合併になると考えてもよいし,所定のネス
トレベルまでのUNIONがあると考えてもよい。
In FIG. 3B, PP1, PP2, ... Are names designated for the level-corresponding search for the table PP, respectively. You can think that the number of UNIONs is infinite, and that a certain level or higher will always be the union of empty sets, or you can think that there are UNIONs up to a predetermined nesting level.

レベル「0」では,P1の子部品として,P2,P3,P4が得られ
る。レベル「1」では,P1の子部品であるP2,P3,P4につ
いて,さらにその子部品であるP3,P5,P6,P7等が得られ
る。レベル「2」,レベル「3」も同様であるが,レベ
ル「4」は,部品P6の子部品がないので,結果が空集合
となる。そこで,UNIONによる合併を中止する。以上で得
られた各ネストレベルに応じた検索結果の集合は,求め
るP1の子部品展開となる。
At level "0", P2, P3, and P4 are obtained as child parts of P1. At level "1", P2, P3, P4 which are child parts of P1 and their child parts P3, P5, P6, P7, etc. are obtained. The same applies to level “2” and level “3”, but the result is an empty set at level “4” because there are no child parts of the part P6. Therefore, the merger by UNION will be canceled. The set of search results obtained according to each nesting level obtained above is the child component expansion of the desired P1.

例えば,「部品P7を使用しているすべての部品は何か
?」というような親捜し展開の場合には,子部品展開と
は,スタートと検索の方向が異なるため,次のようなビ
ュー定義を用いるとよい。
For example, in the case of parent search expansion such as "What are all the parts that use part P7?", Since the directions of start and search are different from child part expansion, the following view definition Should be used.

VIEW V(〜) AS SELECT * FROM PP,V WHERE PP.A#=V.C# このビューに対して,次のような検索コマンドを用いる
ことにより,上記親捜し展開が可能である。
VIEW V (~) AS SELECT * FROM PP, V WHERE PP.A # = VC # The above parent search can be expanded by using the following search command for this view.

SELECT * FROM V WHERE V.C#=‘P7' なお,この処理動作については,検索方向等の点を除い
て,子部品展開の場合と同様である。
SELECT * FROM V WHERE VC # = 'P7' Note that this processing operation is the same as in the case of child part expansion, except for the search direction.

ところで,利用者がネストのレベルを知りたい場合があ
ると考えられる。この場合,次のように組込み関数(SY
SLEVEL)によって,通知することができる。
By the way, users may want to know the nesting level. In this case, the built-in function (SY
SLEVEL) can notify you.

「SELECT SYSLEVEL,A#,C#,…」 また,利用者が誤ってビュー定義を行ったために,本
来,再帰的でないビューが,再帰的に解釈され,予期せ
ぬ動作がなされる場合がある。本発明のような再帰的定
義を用いることは稀であると考えられるので,誤って定
義した場合と区別するために,次のようなキーワードを
設けてもよい。「DEFINE RECURSIVE VIEW V(…)」 また,利用者が,検索するレベルの深さを制御できるよ
うにするために,例えば次のような条件を設定できるよ
うにすることが望ましい。
"SELECT SYSLEVEL, A #, C #, ..." In addition, since the user mistakenly made a view definition, a view that is not originally recursive may be recursively interpreted and unexpected behavior may occur. . Since it is considered rare to use the recursive definition as in the present invention, the following keywords may be provided to distinguish it from the case of erroneous definition. "DEFINE RECURSIVE VIEW V (...)" In addition, in order to allow the user to control the depth of the search level, it is desirable to be able to set the following conditions, for example.

「WHERE SYSLEVEL<定数」 この条件指定がなされると,レベルが指定された定数に
なったときに,再帰呼出しが打ち切られる。
"WHERE SYSLEVEL <constant" If this condition is specified, the recursive call will be aborted when the level reaches the specified constant.

〔発明の効果〕〔The invention's effect〕

以上説明したように,本発明によれば,リレーショナル
・データベースに対する問い合わせ言語上で,データに
依存する不定レベルの検索が可能になり,子部品展開や
親捜し展開等についても,容易に行うことができるよう
になる。
As described above, according to the present invention, it is possible to perform an indefinite level of data-dependent retrieval in a query language for a relational database, and to easily perform child component expansion, parent search expansion, and the like. become able to.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の基本構成例,第2図は本発明の一実施
例に係る生成コードによる処理概念図,第3図は本発明
の一実施例動作を説明するための実行等価コマンド説明
図,第4図は本発明の課題を説明するための図を示す。 図中,10は入力部,11は問い合わせ言語処理部,12は構文
解析部,13は意味解析部,14は最適化処理部,15はコード
生成部,16はコード実行部,17は生成コード,17Aは初期デ
ータ生成部,17Bは同期バッファリング制御部,17Cは検索
データ生成部,18はビュー定義部,19はデータベース,20
はビュー定義情報部,21A,21Bはテーブル,22はデータベ
ースアクセス部を表す。
FIG. 1 is a basic configuration example of the present invention, FIG. 2 is a conceptual diagram of processing by generated code according to an embodiment of the present invention, and FIG. 3 is an explanation of an execution equivalent command for explaining the operation of the embodiment of the present invention. FIG. 4 and FIG. 4 show diagrams for explaining the problems of the present invention. In the figure, 10 is an input unit, 11 is a query language processing unit, 12 is a syntax analysis unit, 13 is a semantic analysis unit, 14 is an optimization processing unit, 15 is a code generation unit, 16 is a code execution unit, and 17 is a generated code. , 17A is an initial data generation unit, 17B is a synchronous buffering control unit, 17C is a search data generation unit, 18 is a view definition unit, 19 is a database, 20
Is a view definition information part, 21A and 21B are tables, and 22 is a database access part.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】予め定義されたビューを対象として,ある
条件に合致するデータ群を抽出する機能を有する問い合
わせ言語を入力し,リレーショナル・データベースに対
する問い合わせを処理するデータベース検索処理システ
ムにおける処理方法において, 上記ビュー定義内において自ビューをさらに検索対象と
して指定するリカーシブな定義を入力し記憶する過程
と, 上記問い合わせ言語による検索要求の入力に対し構文解
析および意味解析を行い,その検索要求が上記リカーシ
ブに定義されたビューに対するものである場合に,少な
くとも,再帰呼出しに関する深さを示すレベルの初期値
と問い合わせ言語で指定された検索対象項目とを指定す
る初期データを生成するコードと,上記レベルに応じて
途中の検索結果が格納されるバッファリング制御を行
い,各レベルに応じて得られる検索結果の集合和から問
い合わせ結果が得られるように再帰呼出しを含むコード
とを生成する過程と, 生成されたコードを実行することによりデータベースを
アクセスし,要求された検索結果を出力する過程とを有
する ことを特徴とするリレーショナル・データベース検索処
理方法。
1. A processing method in a database search processing system for processing a query to a relational database by inputting a query language having a function of extracting a data group meeting a certain condition, targeting a predefined view, The process of inputting and storing a recursive definition that further designates its own view as a search target in the view definition, and performing syntactic analysis and semantic analysis on the input of the search request in the query language, and the search request becomes the recursive When it is for a defined view, at least the code that generates the initial value of the level indicating the depth of recursive call and the search target item specified in the query language, and the level A buffer that stores search results in the middle And a code including a recursive call so that the query result can be obtained from the set sum of the search results obtained according to each level, and the database is accessed by executing the generated code. A relational database search processing method, which comprises a step of outputting a requested search result.
JP61200841A 1986-08-27 1986-08-27 Relational database search processing method Expired - Lifetime JPH077350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61200841A JPH077350B2 (en) 1986-08-27 1986-08-27 Relational database search processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61200841A JPH077350B2 (en) 1986-08-27 1986-08-27 Relational database search processing method

Publications (2)

Publication Number Publication Date
JPS6355625A JPS6355625A (en) 1988-03-10
JPH077350B2 true JPH077350B2 (en) 1995-01-30

Family

ID=16431096

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61200841A Expired - Lifetime JPH077350B2 (en) 1986-08-27 1986-08-27 Relational database search processing method

Country Status (1)

Country Link
JP (1) JPH077350B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072961A (en) * 2005-09-09 2007-03-22 Fujitsu Ltd Database search method, program and apparatus

Also Published As

Publication number Publication date
JPS6355625A (en) 1988-03-10

Similar Documents

Publication Publication Date Title
US7120869B2 (en) Enhanced mechanism for automatically generating a transformation document
US6449620B1 (en) Method and apparatus for generating information pages using semi-structured data stored in a structured manner
US5857187A (en) Information management apparatus providing efficient management of multimedia titles in a client-server network
JP3836928B2 (en) Database processing method
US6925462B2 (en) Database management system, and query method and query execution program in the database management system
US7143345B2 (en) Method and system for multiple level parsing
US20090024384A1 (en) Data processing method and system, program for realizing the method, and computer readable storage medium storing the program
US20040221229A1 (en) Data structures related to documents, and querying such data structures
WO1996018159B1 (en) Implementation independent extensible query architecture for information retrieval systems
JP3023943B2 (en) Document search device
JP2007226452A (en) Structured document management apparatus, structured document management program, and structured document management method
US5557788A (en) Relational access system for network type data bases which uses a unique declarative statement
JP3163141B2 (en) Relational database processing device and processing method
US20100082587A1 (en) Apparatus, method, and computer program product for searching structured document
US8171040B2 (en) Method and system for navigation of a data structure
CN111813744A (en) File search method, device, device and storage medium
CN118210809B (en) Object definition method, system, equipment and medium based on ER information
KR20010095215A (en) Method for retrieving data on internet through constructing site information database
US20050171976A1 (en) Diagrammatic method and system to build repository queries
US20030037031A1 (en) Mechanism for automatically generating a transformation document
JPH077350B2 (en) Relational database search processing method
JP2002063165A (en) Information retrieval method, information retrieval system, information retrieval program, and recording medium recording information retrieval program
JP2001134597A (en) Method and apparatus for accessing a plurality of different information sources and a storage medium storing a program for accessing a plurality of different information sources
JP4866844B2 (en) Efficient extraction of XML content stored in a LOB
JP2000322295A (en) Method and device for programming support for data base stored sub-program

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term