JPH01248233A - Data base retrieving device - Google Patents

Data base retrieving device

Info

Publication number
JPH01248233A
JPH01248233A JP63074540A JP7454088A JPH01248233A JP H01248233 A JPH01248233 A JP H01248233A JP 63074540 A JP63074540 A JP 63074540A JP 7454088 A JP7454088 A JP 7454088A JP H01248233 A JPH01248233 A JP H01248233A
Authority
JP
Japan
Prior art keywords
file
search
condition
command
record
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
JP63074540A
Other languages
Japanese (ja)
Inventor
Harunori Ota
太田 治徳
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63074540A priority Critical patent/JPH01248233A/en
Publication of JPH01248233A publication Critical patent/JPH01248233A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To enable retrieval by the minimum with respect to a storage device by executing a management information processing without storing a result, when many record groups concerned exist in an initial stage of selection in a process in which the record concerned is being selected. CONSTITUTION:With respect to an object to be selected, a selecting and retrieving command is issued and defined as a virtual file 33, and thereafter, a retrieval condition which is designated successively becomes a condition adding designation and a condition is added to the virtual file 33, by which the management information is selected, and by minimizing a storage device 31, the selection and retrieval of a data base are executed. That is, at the time of executing the data retrieval to a large capacity file, in case of detecting a record for satisfying some condition, the condition is not designated at a time but designated successively, and when many record groups concerned exist in the initial stage of reduction in a process in which the record concerned is being selected, an on-management information processing is executed without storing a result. In such a way, the retrieval can be executed by the minimum with respect to the storage device 31.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明に、データベース検索装置に関する。[Detailed description of the invention] [Purpose of the invention] (Industrial application field) The present invention relates to a database search device.

(従来の技術) データベースに対してしぼり込み検索を行うためには対
象ファイルに対して与えられた検索条件をもつ検索格納
指令を発行することによりなされる。このことにより指
令解読部から検索処理部へ制御が移り、条件を満足する
レコードを検索した後、記tIi装置内に新たに格納用
ファイル領域を確保しそのファイルにレコード全格納す
る。その格納ファイルは、元のファイルより一定の規則
により導出された名前を持つファイルとして情報ファイ
ルに登録され、以降通常のファイルとして検索可能とな
る。従って、しぼり込み検索を行うには、その導出され
たファイルに対して更に検索条件全指定した検索指令を
発行するという処理を繰り返す。
(Prior Art) In order to narrow down a search to a database, it is done by issuing a search and storage command with search conditions given to the target file. As a result, control is transferred from the command decoding section to the search processing section, and after searching for a record that satisfies the conditions, a new storage file area is secured in the recording device and all records are stored in that file. The stored file is registered in the information file as a file with a name derived from the original file according to a certain rule, and can thereafter be searched as a normal file. Therefore, in order to narrow down the search, the process of issuing a search command specifying all the search conditions is repeated for the derived file.

また、以前の状態に戻すためには一定の規則に従った名
前の格納ファイルを処理対象にすることによって可能に
なる。最終的なレコード群を得るためにも、同様に該当
ファイルに対して全件検索指令を発行することにより可
能となる。
In addition, returning to the previous state can be done by processing files that have names that follow certain rules. In order to obtain the final record group, it is also possible to similarly issue an all-retrieval command to the relevant file.

(発明が解決しようとする問題点) 上述し之従来例に従えば、1回しぼり込み処理を行うと
、新たに1個の格納用ファイルが必要であり、しぼり込
み回数がふえるとそれに比例して専有する記憶装置内の
領域が増加していく。
(Problem to be Solved by the Invention) According to the conventional example described above, when the narrowing process is performed once, one new storage file is required, and as the number of narrowing processes increases, the number of files increases proportionally. The area within the storage device that is exclusively used by the user increases.

本発明に上記事情に基づきなされたものであり、データ
検索において、ある条件を満足するレコードを見つける
場合−度に条件を指定するのではなく、順次指定して該
当レコードをしぼり込んで行き、目的レコード群を得る
という処理を行うために記憶容量が最小限で処理可能な
データベース検索tufft提供することを目的とする
The present invention was made based on the above circumstances, and when finding records that satisfy a certain condition in a data search, instead of specifying the condition one time, it narrows down the corresponding records by specifying the condition one by one. It is an object of the present invention to provide a database search tuff that can be processed with a minimum storage capacity in order to obtain a group of records.

[発明の構成] (問題点を解決するための手段) 本発明に検索対象となるフィールドを持つデータレコー
ド群により構成されるファイルとそのファイル中のレコ
ード属性等の管理情報をもつ情報ファイルからなるデー
タベースが格納される記憶装置と、データベース操作に
関する指令を解釈する指令解読部、指定された検索条件
を持つ検索指令を実行し該当するデータレコードを検索
して出力する検索処理部、ファイルの属性定義やファイ
ル内の一部レコードを仮想ファイルとして定義するファ
イル定義部とから成るデータベース検索処理手段を備え
、このデータベース検索処理手段は、対象とするファイ
ルからある検索条件を満足するレコード群を検索後、そ
の結果のレコード群に対して、更に条件を与えて検索を
行う処理を順次繰り返すことにより条件を満足するレコ
ード群をしぼり込み目的のレコードを得る構成とし、且
つ、上記ファイル定義部の仮想ファイル処理部に検索条
件の付加機構及び削除機構を設け、しぼり込み検索指令
に対して、対象ファイルを仮想ファイルとして処理し、
順次指定されるしぼり込み検索条件は仮想ファイルに対
する条件付加指令として解釈処理し、状態を戻すために
条件削除指令を発行し、さらにしぼり込まれたレコード
群を確認出力するためにしぼり込み条件が順次付加され
た仮想ファイルに対する全件検索によって行ない管理情
報の更新のみでしぼり込み検索を行なう構成としたもの
である。
[Structure of the Invention] (Means for Solving the Problems) The present invention consists of a file composed of a group of data records having fields to be searched, and an information file containing management information such as record attributes in the file. A storage device in which the database is stored, a command decoding unit that interprets commands related to database operations, a search processing unit that executes a search command with specified search conditions to search for and output the corresponding data record, and file attribute definitions. and a file definition section that defines some records in the file as virtual files, and after searching the target file for a group of records that satisfy a certain search condition, the database search processing means The configuration is such that the target record is obtained by sequentially repeating the search process by giving further conditions to the resultant record group, narrowing down the record group that satisfies the condition, and the virtual file processing of the file definition section mentioned above. A mechanism for adding and deleting search conditions is provided in the section, and the target file is processed as a virtual file in response to a narrowing search command.
Narrowing down search conditions that are specified sequentially are interpreted as condition addition commands to the virtual file, a condition deletion command is issued to restore the status, and further narrowing down conditions are sequentially specified to confirm and output the narrowed down record group. The configuration is such that an all-item search is performed for the added virtual files, and a narrowed search is performed only by updating the management information.

(作 用) データベース検索装置のファイル定義部に。(for production) In the file definition section of the database search device.

しぼり込み条件を仮想ファイル定義条件にAND条件と
して付加する指令を処理する条件付加機構と、しぼり込
みを以前の状態に戻丁念めに仮想ファイル定義条件から
以前の検索条件を削除する条件削除機構を設けることに
より、しぼり込み対象義に対して先づしぼり込み検索指
令を発行し、仮想ファイルとして定義し念後、順次指定
される検索条件は条件付加指定として仮想ファイルに対
して条件を付加して行くことにより、管理情報上でのし
ぼり込みを行い、記憶装置を最小限にしてデータベース
のしぼり込み検索t?4行する。
A condition addition mechanism that processes a command to add a narrowing condition to a virtual file definition condition as an AND condition, and a condition deletion mechanism that carefully returns the narrowing down to its previous state and deletes the previous search condition from the virtual file definition condition. By providing , a narrowing search command is issued for the narrowing target definition first, and after defining it as a virtual file, the search conditions that are specified sequentially can be used to add conditions to the virtual file as condition addition specifications. By doing this, you can narrow down the management information, minimize the storage space, and narrow down the database search t? Do 4 lines.

このごとにより大容量ファイルに対してデータ検索を行
う際、ある条件を満足するレコード金兄つける場合−度
に条件を指定するのでになく、順次に指定して行き該当
レコードをしぼり込んで過程においてしぼり込みの初期
の段階で該当レコード群が多数の場合、結果を格納せず
型埋情報上処理を行う之め、記t11を最小限で検索の
実行が可能となる。
Due to this, when performing a data search on a large file, if you want to find a record that satisfies a certain condition, instead of specifying the condition one time, specify it sequentially and narrow down the records that meet the criteria. If there are a large number of applicable record groups at the initial stage of narrowing down, the results are not stored and processing is performed on the type-embedded information, making it possible to execute the search with minimal time t11.

(実施例) 以下、図面を使用して本発明実施例について詳細て説明
する。第1図は本発明の実施例を示すブロック図である
。図において、1に端末装置であり、データベース利用
者が検索指令の入力を行ったり、検索結果全表示する。
(Example) Hereinafter, examples of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a terminal device through which a database user inputs search commands and displays all search results.

2は検索装置であり検索指令に従って、後述するデータ
ベース3に対して動作する。3はデータベースであり、
直接アクセス型大容量記憶装置に格納されており、情報
ファイル31.ファイル32.仮想ファイル33から構
成される。21は指令解読部であり、指令を解読し、以
降の処理部へ制御を渡す。22にファイル定義部であり
、仮想ファイルの定義や条件付加、削除を行う。ライン
4はファイル定義時の接続2示す。33は検索処理部で
あり、条件全満足するレコードの検索及び該当レコード
の出力を行う。ライン5に検索時の接続、ライン6は結
果の出力時の接続を示す。
Reference numeral 2 denotes a search device which operates on a database 3, which will be described later, according to a search command. 3 is a database;
The information file 31. is stored on a direct access mass storage device. File 32. It is composed of virtual files 33. Reference numeral 21 denotes a command decoding unit, which decodes the command and passes control to subsequent processing units. 22 is a file definition section, which defines virtual files, adds conditions, and deletes them. Line 4 shows connection 2 at the time of file definition. 33 is a search processing unit that searches for records that satisfy all conditions and outputs the corresponding records. Line 5 shows the connection when searching, and line 6 shows the connection when outputting the results.

第2図は本発明実施例の動作を系すフローチャートであ
る。以下、第2図に示すフローチャート全使用して第1
図に示す本発明実施例の動作について詳細に説明する。
FIG. 2 is a flowchart showing the operation of the embodiment of the present invention. Below, we will use the entire flowchart shown in Figure 2 to
The operation of the embodiment of the present invention shown in the figure will be described in detail.

検索装f2において、データベース3のファイル32を
しぼり込み対象とする場合、端末it1からファイル3
2VC対して、検索条件(最初のしぼり込み条件)と仮
想ファイル名33と共にしぼり込み検索指令を発行する
。発行された指令は指令解読部21において第2図にス
テップIにより判別される。この場合指令が定義である
のでファイル定義部22へ制御が移り、さらにステップ
■で定義と判別され、仮想ファイル定義を実行する。
In search device f2, if file 32 of database 3 is to be narrowed down, file 3 is searched from terminal it1.
A narrowing search command is issued to the 2VC along with the search condition (first narrowing condition) and the virtual file name 33. The issued command is determined by the command decoding section 21 in step I in FIG. In this case, since the command is a definition, control is transferred to the file definition section 22, and further, in step (2), it is determined that it is a definition, and the virtual file definition is executed.

この時点でファイル32に対して指定された条件を満足
するレコード群が仮想ファイル33として情報ファイル
31に登録される。
At this point, a group of records that satisfy the conditions specified for the file 32 are registered in the information file 31 as a virtual file 33.

しぼり込み条件を順次指定する場合は、付加条件と共に
仮想ファイル33に対して条件付加指令を発行する。こ
の時にステップI、ステップlllを流れ条件付加全実
行する。条件付加処理に、情報ファイルから仮想ファイ
ル33の情報をさがし、条件にしぼり込み条件i AN
D条件で付加する。この時、仮想ファイル33は最初の
条件と次に指定され九条件を満たすファイル33のレコ
ード群ヲ表現している。
When specifying narrowing conditions sequentially, a condition addition command is issued to the virtual file 33 together with the additional conditions. At this time, step I and step Ill are fully executed with the addition of flow conditions. In the condition addition process, search for the information of the virtual file 33 from the information file and narrow it down to the condition condition i AN
Add with condition D. At this time, the virtual file 33 represents a record group of the file 33 that satisfies the first condition and the next specified nine conditions.

しぼり込みを続ける場合は上記の処理金繰り返し実行す
る。また以前の状態に戻すためには条件削除指令を発行
する。しぼり込みが完了した場合やしぼり込みの現在の
状態を見る場合は、端末装v1から仮想ファイル33に
対して全件検索指令を発行する。発行された指令は指令
解読部211/Cおいてステップ■により判別され、こ
の場合指令が検索であるので検索処理部23へ制御が移
る。
If you want to continue squeezing, repeat the above process. Also, in order to return to the previous state, a condition deletion command is issued. When the narrowing down is completed or when the current state of the narrowing down is to be viewed, an all-file search command is issued to the virtual file 33 from the terminal device v1. The issued command is determined by the command decoding section 211/C in step (2), and in this case, since the command is a search, control is transferred to the search processing section 23.

そこでステップ■で対象ファイルが仮想ファイルと判別
され仮想ファイル33の検索全実行する。
Therefore, in step (2), the target file is determined to be a virtual file, and the entire search for the virtual file 33 is executed.

対象ファイル33は仮想ファイルであるので情報ファイ
ル31より定義情報を取り出し、元ファイル32に対す
る検索に展開し、現在の条件を満足するファイル32の
レコード群を検索し、経路6に従って端末装fillに
結果レコードを表示する。
Since the target file 33 is a virtual file, the definition information is extracted from the information file 31, expanded to the search for the original file 32, searched for a record group of the file 32 that satisfies the current conditions, and the result is sent to the terminal device according to route 6. View records.

[発明の効果] 以上説明の様に本発明に従えば大容量ファイルに対して
データ検索を行う際、ある条件を満足するレコードを見
つける場合、−度に条件を指定するのではなく、順次に
指定して行き該当レコードをしぼり込んでいる過程にお
いて、しぼり込みの初期の段階で該当レコード群が多数
の場合、結果を格納せず、管理情報上処理を行うため、
記憶装置を最小限で検索の実行が可能となる。
[Effects of the Invention] As explained above, according to the present invention, when searching for data in a large file, when finding a record that satisfies a certain condition, the condition is not specified one after another, but sequentially. In the process of specifying and narrowing down the applicable records, if there are a large number of applicable records at the initial stage of narrowing down, the results will not be stored and will be processed based on the management information.
It becomes possible to execute searches using a minimum amount of storage device.

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

第1図に本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を示すフローチャートである。 1・・・端末装置、2・・・検索装置、3・・・データ
ベース、21・・・指令解読部、22・・・ファイル定
義部、23・・・検索処理部、3ノ・・・情報ファイル
、32・・・ファイル、33・・・仮想ファイル。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of the embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Terminal device, 2... Search device, 3... Database, 21... Command decoding section, 22... File definition section, 23... Search processing section, 3... Information File, 32...File, 33...Virtual file.

Claims (2)

【特許請求の範囲】[Claims] (1)検索対象となるフィールドを持つデータレコード
群により構成されるファイルとそのファイル中のレコー
ド属性等の管理情報をもつ情報ファイルからなるデータ
ベースが格納される記憶装置と、データベース操作に関
する指令を解釈する指令解読部、指定された検索条件を
持つ検索指令を実行し該当するデータレコードを検索し
て出力する検索処理部、ファイル属性定義やファイル内
の一部レコードを仮想ファイルとして定義するファイル
定義部とから成るデータベース検索処理手段を備え、こ
のデータベース検索処理手段は、対象とするファイルか
ら、ある検索条件を満足するレコード群を検索後、その
結果のレコード群に対して更に条件を与えて検索を行う
処理を順次繰り返すことにより条件を満足するレコード
群をしぼり込み目的のレコードを得ることを特徴とする
データベース検索装置。
(1) A storage device that stores a database consisting of a file consisting of a group of data records with fields to be searched and an information file containing management information such as record attributes in the file, and interprets instructions related to database operations. a command decoding part that executes a search command with specified search conditions, searches for and outputs the corresponding data records, and a file definition part that defines file attributes and some records in a file as virtual files. The database search processing means searches a target file for a record group that satisfies a certain search condition, and then searches the resulting record group by applying further conditions. A database search device that narrows down a group of records that satisfy a condition and obtains a desired record by sequentially repeating processing.
(2)上記ファイル定義部の仮想ファイル処理部に検索
条件の付加機構及び削除機構を設け、しぼり込み検索指
令に対して、対象ファイルを仮想ファイルとして処理し
、順次指定されるしぼり込み検索条件は、仮想ファイル
に対する条件付加指令として解釈処理し、状態を戻すた
めに条件削除指令を発行し、さらに、しぼり込まれたレ
コード群を確認出力するためにしぼり込み条件が順次付
加された仮想ファイルに対する全件検索によって行ない
管理情報の更新のみでしぼり込み検索を行なうことを特
徴とする特許請求の範囲第1項記載のデータベース検索
装置。
(2) A search condition addition and deletion mechanism is provided in the virtual file processing section of the file definition section, and in response to a narrowing search command, the target file is processed as a virtual file, and the narrowing search conditions specified in sequence are , interprets it as a condition addition command to the virtual file, issues a condition deletion command to restore the state, and further adds all the conditions to the virtual file to which the narrowing conditions have been sequentially added in order to confirm and output the narrowed down record group. 2. The database search device according to claim 1, wherein the database search device performs narrowing search by only updating management information.
JP63074540A 1988-03-30 1988-03-30 Data base retrieving device Pending JPH01248233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63074540A JPH01248233A (en) 1988-03-30 1988-03-30 Data base retrieving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63074540A JPH01248233A (en) 1988-03-30 1988-03-30 Data base retrieving device

Publications (1)

Publication Number Publication Date
JPH01248233A true JPH01248233A (en) 1989-10-03

Family

ID=13550206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63074540A Pending JPH01248233A (en) 1988-03-30 1988-03-30 Data base retrieving device

Country Status (1)

Country Link
JP (1) JPH01248233A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06139288A (en) * 1992-03-23 1994-05-20 Matsushita Electric Ind Co Ltd Optical disk retrieving device
JPH06215042A (en) * 1992-12-01 1994-08-05 Roehm Properties Bv Cd-rom information retrieval device of other languages

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06139288A (en) * 1992-03-23 1994-05-20 Matsushita Electric Ind Co Ltd Optical disk retrieving device
JPH06215042A (en) * 1992-12-01 1994-08-05 Roehm Properties Bv Cd-rom information retrieval device of other languages

Similar Documents

Publication Publication Date Title
JPH11212980A (en) Production of index and retrieval method
US20040078355A1 (en) Information management system
JPH01248233A (en) Data base retrieving device
JPH06215037A (en) Automatic updating device for index
JPH08329101A (en) Data base system
JP4056622B2 (en) Database management device
JP3183252B2 (en) Database search system
JP2002140218A (en) Data processing method, computer-readable recording medium and data processing device
JPH05265821A (en) Index managing system for data base
JPH03265968A (en) Document attribute item giving system
JPH04337867A (en) Data base retrieval system
JPH0285963A (en) Unitary managing system for map data and attribute data
JPH04304559A (en) Data retrieving system
JPH04354036A (en) Data base management method
JP2002202904A (en) Data management method and recording medium readable by computer
JP2003330957A (en) Set attribute retrieval system, method, and program
JPH0554082A (en) Data base system
JP2001155028A (en) Aggregate calculation processing method and device for relational database, and computer readable recording medium recorded with aggregate arithmetic processing program
JPH0635767A (en) Data base system
JPH04111166A (en) Data retrieving device
JPS63172334A (en) Data processing system for data base system
JPH02208751A (en) Data preservation system
JPH0219971A (en) Data base processing system
JPH0496114A (en) Operating state retrieving system
JPH0215371A (en) Information retrieving device