JPH09282332A - Data base management system and retrieval method therein - Google Patents

Data base management system and retrieval method therein

Info

Publication number
JPH09282332A
JPH09282332A JP8118463A JP11846396A JPH09282332A JP H09282332 A JPH09282332 A JP H09282332A JP 8118463 A JP8118463 A JP 8118463A JP 11846396 A JP11846396 A JP 11846396A JP H09282332 A JPH09282332 A JP H09282332A
Authority
JP
Japan
Prior art keywords
record
search
database
searched
program
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
JP8118463A
Other languages
Japanese (ja)
Inventor
Katsumi Hatanaka
勝実 畑中
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP8118463A priority Critical patent/JPH09282332A/en
Publication of JPH09282332A publication Critical patent/JPH09282332A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To evade such a state that it takes a too long time to smoothly advance subsequent processes when retrieval is a data base is processed and as a result, the response of the whole processes becomes worse. SOLUTION: A retrieval part 2 generates retrieval result data once having retrieved one record from the data base. The retrieval result data has the retrieved record set as head information and information, indicating whether or not there is an unretrieved record, set as tail information. Then, a processing part 5 performs a process based upon a program for the record in the retrieval result data and sends the retrieval result data back to the retrieval part 2 while passing the result of the process to an output part 8. The retrieval part 2 judges whether or not retrieval should be done again from the tail information in the retrieval result data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数のレコードの
中から、検索条件に合致するレコードを検索し、その検
索されたレコードに対し所定の処理を実行するデータベ
ース管理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system for searching a plurality of records for a record matching a search condition and executing a predetermined process on the searched record.

【0002】[0002]

【従来の技術】従来から、一のデータベースにおいて、
ある検索条件の下で検索をし、検索されたレコードに対
し他のデータベースやプログラムに基づく処理を実行す
るという、データベース管理システムが広く利用されて
いる。このようなデータベース管理システムにおいて
は、最初に、一のデータベースにおいて、所望の条件の
下で検索をし、検索を全て終えた時点で、他のデータベ
ースやプログラムを用いて、それら検索されたレコード
に対して、所望の処理を実行している。そして、検索さ
れた全てのレコードについて処理が完了した後に、処理
の結果をディスプレイで表示したり、プリンタ装置で印
刷したりしている。
2. Description of the Related Art Conventionally, in one database,
A database management system is widely used in which a search is performed under a certain search condition and a process based on another database or program is performed on the searched record. In such a database management system, first, one database is searched under desired conditions, and when all the searches are completed, other databases and programs are used to retrieve those searched records. On the other hand, the desired processing is executed. After the processing is completed for all the retrieved records, the result of the processing is displayed on the display or printed by the printer device.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
データベース管理システムでは、一のデータベースでの
検索において、データベースとして格納されているレコ
ード数が極めて多かったり、あるいは、検索条件に合致
するレコードの数(いわゆるヒットするレコードの数)
が非常に多かったりする場合には、後続の処理を開始す
るまでに多大な時間を費やすことになる。また、後続す
る他のデータベースやプログラムに基づく処理がなされ
た後に初めて、検索・処理の結果が、表示されたり印刷
されたりするので、前者の検索の処理に長い時間が掛か
ってしまうと、データベース管理システムが実際に、ど
の程度まで処理を進めているのかを知ることができな
い。従って、システムの操作者は、全ての処理が終わる
までにどの位の時間を要するのか、あるいは、システム
自体が正常に動作しているか等を判断することができな
いという問題があった。
However, in the conventional database management system, when searching one database, the number of records stored as a database is extremely large, or the number of records matching the search condition ( So-called number of hit records)
If the number is too large, it takes a lot of time to start the subsequent processing. In addition, the results of search / processing are displayed or printed only after the processing based on other subsequent databases or programs is performed, so if the former search processing takes a long time, the database management You can't know to what extent the system is actually processing. Therefore, there is a problem that the operator of the system cannot determine how long it takes to complete all the processes, or whether the system itself is operating normally.

【0004】[0004]

【課題を解決するための手段】本発明は、以上の問題点
を解決するために、次の構成を採用する。 〈構成1〉複数のレコードからなるデータベースを記憶
するデータベース記憶部と、データベースから検索され
たレコードに対しなされるべき処理を指示するプログラ
ムを記憶するプログラム記憶部と、検索されるべきレコ
ードの検索条件を入力する入力部と、データベース上に
おいて、その検索条件に合致するレコードを検索する検
索部と、該当するレコードが1つ検索されたか否かを確
認するレコード管理部と、未だ検索されていないレコー
ドがあるか否かを確認する検索管理部と、検索された1
つのレコードについて、前記プログラムに基づく処理を
実行する処理部と、前記プログラムに基づく処理がされ
た1つのレコードを出力する出力部とからなることを特
徴とするデータベース管理システム。
The present invention employs the following structure in order to solve the above problems. <Structure 1> A database storage unit that stores a database including a plurality of records, a program storage unit that stores a program instructing a process to be performed on records retrieved from the database, and search conditions for records to be retrieved Input section for inputting, a search section for searching records matching the search condition in the database, a record management section for checking whether or not one corresponding record has been searched, and a record that has not been searched yet. Search management section to check if there is, and the searched 1
A database management system comprising: a processing unit that executes a process based on the program for one record; and an output unit that outputs one record processed based on the program.

【0005】〈構成の内容〉レコードとは、種々の項目
から構成されるデータをいう。データベースとは、複数
のレコードの集合をいう。プログラムとは、データベー
ス上で検索されたレコードに対し、何らかの処理をすれ
ば足り、動作フローチャートであるか、あるいは、デー
タベースであるか等を問わない。
<Content of structure> A record is data composed of various items. A database is a set of records. The program only needs to be subjected to some processing with respect to the record retrieved on the database, and it does not matter whether it is an operation flowchart or a database.

【0006】〈作用、効果〉このシステムでは、検索部
が、データベース記憶部に記憶されているデータベース
上において、入力された検索条件に合致するレコードを
検索する。その検索の際に、レコード管理部が、レコー
ドが1つだけ検索されたことを確認すると、さらに、検
索条件に合致するレコードの検索を進めることなく、処
理部が、その検索された1つのレコードに対し、プログ
ラム記憶部に記憶されているプログラムに基づく処理を
実行する。そして、出力部が、その処理の結果を出力す
る。従って、データベース上において検索条件に合致す
る全てのレコードを検索した後に、それら全てのレコー
ドに対しプログラムに基づく処理を実行するというよう
な動作をしない。よって、検索された全てのレコードを
一時的に記憶しておくための多量のメモリを必要としな
い。また、検索された多数のレコードをメモリに書き込
んだり、そのメモリから読み出したりする必要がないの
で、全体の処理時間を短縮することが可能となる。さら
には、検索され、かつ、所定の処理をなされたレコード
の内容を逐次、確認することができるので、システムが
正常に動作しているか否かを容易に判断することも可能
となる。
<Operation and Effect> In this system, the search unit searches the database stored in the database storage unit for a record that matches the input search condition. During the search, when the record management unit confirms that only one record has been searched, the processing unit further advances the search for a record that matches the search condition and the processing unit does not search the one record. On the other hand, the processing based on the program stored in the program storage unit is executed. Then, the output unit outputs the result of the processing. Therefore, after searching all the records that match the search condition on the database, the operation based on the program is not performed on all the records. Therefore, a large amount of memory for temporarily storing all retrieved records is not required. Further, since it is not necessary to write or read a large number of retrieved records in the memory, it is possible to reduce the overall processing time. Furthermore, since the contents of the records that have been searched and subjected to a predetermined process can be sequentially confirmed, it is possible to easily determine whether or not the system is operating normally.

【0007】〈構成2〉構成1のデータベース管理シス
テムにおいて、検索部と処理部との間で検索結果データ
が授受され、その検索結果データが、ヘッド情報とテー
ル情報とからなり、ヘッド情報は、検索されたレコード
であり、テール情報は、未だ検索されていないレコード
があるか否かに関する情報であることを特徴とするデー
タベース管理システム。
<Structure 2> In the database management system of Structure 1, search result data is exchanged between the search unit and the processing unit, and the search result data is composed of head information and tail information, and the head information is The database management system is a searched record, and the tail information is information regarding whether or not there is a record that has not been searched yet.

【0008】〈構成の内容〉検索結果データとは、検索
部と処理部との間で交換されるデータであって、検索部
から処理ぶへ受け渡される場合には、検索されたレコー
ドについて、プログラムに基づく処理を実行することを
要求する命令信号となる一方で、処理部から検索部へ受
け渡される場合には、そのレコードについての処理が完
了し、必要に応じて、検索を再開することを要求する命
令信号となる。
<Contents of Configuration> The search result data is data exchanged between the search unit and the processing unit. When the search result data is transferred from the search unit to the processing unit, When it is a command signal requesting execution of processing based on a program, but when it is passed from the processing unit to the search unit, the processing for that record is completed, and search can be restarted as necessary. Is a command signal for requesting.

【0009】〈作用、効果〉このシステムでは、データ
ベース上で、検索条件に合致するレコードが検索された
時点で、そのレコードと、検索条件に合致するにも拘わ
らず、その時点では検索されないレコードがあるか否か
を示す情報とからなる検索結果データが、検索部から処
理部へ授受される。また、処理部へ引き渡されたレコー
ドに対し、プログラムに基づく処理が実行された時点
で、その時の検索結果データが、そのままの形で、処理
部から検索部へ授受される。これにより、処理部が、ヘ
ッド情報に位置するレコードに対してのみ、プログラム
に基づく処理を実行することを確保でき、また、検索部
が、テール情報に位置する未検索レコードの有無に関す
る情報に基づいて、検索を再開すべきか否かを容易に判
断することができる。
<Operation and Effect> In this system, when a record matching the search condition is searched for in the database, the record and a record that matches the search condition but is not searched at that time are searched. Search result data, which includes information indicating whether or not there is, is transferred from the search unit to the processing unit. Further, at the time when the processing based on the program is executed on the record delivered to the processing unit, the search result data at that time is directly transferred from the processing unit to the searching unit. This makes it possible to ensure that the processing unit executes the processing based on the program only for the record located in the head information, and the search unit is based on the information regarding the presence or absence of the unsearched record located in the tail information. Thus, it is possible to easily determine whether or not the search should be restarted.

【0010】〈構成3〉複数のレコードからなるデータ
ベースにおける検索に際しての検索条件を入力し、前記
データベースにおいて、その検索条件に合致するレコー
ドを検索し、その検索条件を満足するレコードが1つだ
け検索されたことを検出し、その1つのレコードについ
てプログラムに基づく処理を実行し、前記プログラムに
基づく処理がされた1つのレコードを出力し、再び前記
データベースにおいて、その入力された検索条件を満足
する他のレコードを検索することを特徴とするデータベ
ース管理システムの検索方法。 〈構成の内容〉構成1のデータベース管理システムに対
応する検索方法である。
<Structure 3> A search condition for a search in a database composed of a plurality of records is input, a record matching the search condition is searched in the database, and only one record satisfying the search condition is searched. Is detected, the process based on the program is executed for the one record, one record processed according to the program is output, and the input search condition is satisfied again in the database. A method for searching a database management system, characterized by searching for records. <Content of Configuration> This is a search method corresponding to the database management system of Configuration 1.

【0011】〈構成4〉構成3のデータベース管理シス
テムの検索方法において、データベースでの検索処理
と、プログラムに基づく実行処理との間において、検索
結果データが授受され、その検索結果データが、ヘッド
情報とテール情報とからなり、ヘッド情報は、検索され
たレコードであり、テール情報は、未だ検索されていな
いレコードがあるか否かに関する情報であることを特徴
とするデータベース管理システムの検索方法。 〈構成の内容〉構成2のデータベース管理システムに対
応する検索方法である。
<Structure 4> In the search method of the database management system of Structure 3, search result data is exchanged between the search process in the database and the execution process based on the program, and the search result data is transferred to the head information. And a tail information, the head information is a searched record, and the tail information is information regarding whether or not there is a record that has not been searched yet. <Content of Configuration> This is a search method corresponding to the database management system of Configuration 2.

【0012】[0012]

【発明の実施の形態】次に、本発明のデータベース管理
システムについて、実施の形態に沿って説明する。 〈具体例の構成〉図1は、このデータベース管理システ
ムのブロック図である。このシステムは、入力部1、検
索部2、レコード管理部3、検索管理部4、処理部5、
データベース記憶部6、プログラム記憶部7、出力部8
とから構成される。入力部1は、検索の条件を入力した
り、このシステムに対する命令を入力したりする機能を
有する。検索部2は、入力部1から入力された検索の条
件の下に、後述するデータベース記憶部6に記憶されて
いるデータベース上において、その条件を満足するレコ
ードを検索する。この際に、レコード管理部3は、レコ
ードが1つだけ検索されたか否かを管理し、また、検索
管理部4は、その検索の条件を満足するにも拘わらず、
未だ検索されていないというレコードがあるか否かを管
理する。処理部5は、検索されたレコードについて、プ
ログラム記憶部に記憶されているプログラムに基づく処
理を実行する。出力部8は、処理部5による処理がなさ
れたレコードを表示したり印刷したりする。
BEST MODE FOR CARRYING OUT THE INVENTION Next, a database management system of the present invention will be described with reference to embodiments. <Structure of Concrete Example> FIG. 1 is a block diagram of this database management system. This system includes an input unit 1, a search unit 2, a record management unit 3, a search management unit 4, a processing unit 5,
Database storage unit 6, program storage unit 7, output unit 8
It is composed of The input unit 1 has a function of inputting search conditions and a command for this system. Under the search condition input from the input unit 1, the search unit 2 searches for a record that satisfies the condition in a database stored in a database storage unit 6 described later. At this time, the record management unit 3 manages whether or not only one record is searched, and the search management unit 4 satisfies the search condition,
It manages whether there is a record that has not been searched yet. The processing unit 5 executes a process based on the program stored in the program storage unit for the retrieved record. The output unit 8 displays or prints the record processed by the processing unit 5.

【0013】〈具体例の動作〉次に、このデータベース
管理システムの動作について説明する。図2は、このシ
ステムの動作フローチャートである。また、図3は、デ
ータベース記憶部6に記憶されているデータベースの1
つである、『社員情報データベース』であり、図4は、
プログラム記憶部7に記憶されているプログラムの1つ
である、『永続勤務10年に対する記念品の贈呈プログ
ラム』である。『社員情報データベース』は、全社員の
社員NO.、氏名、性別、所属、役職、入社年月日、生
年月日等の情報を蓄積しており、一方、『永続勤務10
年に対する記念品の贈呈プログラム』は、性別等に応じ
て、どのような記念品を贈呈するかを決定するプログラ
ムとなっている。以下、この動作フローチャートに沿い
つつ、それらのデータベースやプログラムの内容を交え
ながら、このシステムの動作を説明する。
<Operation of Specific Example> Next, the operation of the database management system will be described. FIG. 2 is an operation flowchart of this system. In addition, FIG. 3 shows one of the databases stored in the database storage unit 6.
"Employee information database", which is shown in Fig. 4.
One of the programs stored in the program storage unit 7 is a “commemorative gift presentation program for 10 years of permanent work”. "Employee information database" is the employee number of all employees. , Information such as name, gender, affiliation, position, date of joining the company, date of birth, etc.
"Souvenir donation program for the year" is a program that determines what kind of souvenir to be presented according to gender and the like. The operation of this system will be described below with reference to the operation flowchart and the contents of those databases and programs.

【0014】ステップS10: 入力部1は、検索の対
象とすべきデータベース、検索の条件、実行すべきプロ
グラム等の情報を入力される。例えば、「検索の対象と
するデータベース」として、〈社員情報データベース〉
を入力し、「検索条件」として、〈勤続年数10年〉
(より具体的には、入社年月日が10年前である旨)を
入力し、「実行すべきプログラム」として、〈永続勤務
10年に対する記念品の贈呈プログラム〉を入力する。 ステップS11: 検索部2は、入力された情報に基づ
き、指定されたデータベース『社員情報データベース』
上において、その検索条件の下で、該当するレコードを
検索する。
Step S10: The input unit 1 is input with information such as a database to be searched, a search condition, a program to be executed, and the like. For example, <Employee information database> as the “database to be searched”
Enter as "Search condition"<10 years of service>
(More specifically, the date of joining the company is 10 years ago) is input, and as a "program to be executed", a "souvenir donation program for 10 years of permanent work" is input. Step S11: The search unit 2 specifies a database “employee information database” based on the input information.
Above, the applicable record is searched under the search condition.

【0015】ステップS12: レコード管理部3は、
検索部2が該当するレコードを1つ検索したか否かを監
視する。ここでは、〈社員情報データベース〉におい
て、最初に、〈山田太郎〉が検索されることになる。 ステップS13: レコード管理部3は、該当するレコ
ードを1つだけ検索されたことを確認すると、図5に示
すように、検索結果データAにおけるヘッド情報とし
て、その検索されたレコード〈山田太郎〉を設定する。 ステップS14: 検索管理部4は、未だ検索されてい
ないレコードがあるか否かを検査する。これにより、未
だ検索されていないレコードとして、〈小林花子〉があ
ることを知得する。
Step S12: The record management section 3
The search unit 2 monitors whether or not one corresponding record has been searched. Here, <Taro Yamada> is searched first in the <Employee Information Database>. Step S13: When the record management unit 3 confirms that only one corresponding record has been retrieved, as shown in FIG. 5, the retrieved record <Taro Yamada> is used as the head information in the retrieval result data A. Set. Step S14: The search management unit 4 checks whether there is a record that has not been searched yet. From this, it is learned that there is <Kobayashi Hanako> as a record that has not been searched yet.

【0016】ステップS15: 未だ検索されていない
レコードがあることを知得すると、検索管理部4は、図
5に示すように、検索結果データAにおけるテール情報
として、未だ検索されていないレコードが存在する旨を
示す情報を設定する。このようにして、入れ子型の検索
結果データAが作成される。そして、検索部2は、この
検索結果データAを処理部5へ引き渡す。なお、全ての
レコードが検索されており、即ち、検索条件に合致する
にも拘わらず未だ検索されていないというレコードが存
在しないことを知得すると、検索管理部4は、検索結果
データにおけるテール情報として、既に全てのレコード
が検索されている旨を示す情報を設定する。
Step S15: When it is known that there is a record that has not been searched yet, the search management unit 4, as shown in FIG. 5, as tail information in the search result data A, includes a record that has not been searched. The information indicating that it is set is set. In this way, the nested search result data A is created. Then, the search unit 2 delivers the search result data A to the processing unit 5. When all the records have been searched, that is, when there is no record that matches the search condition but has not been searched yet, the search management unit 4 notifies the tail information in the search result data. As, information indicating that all records have already been searched is set.

【0017】ステップS16: 処理部5は、検索され
た1個のレコード〈山田太郎〉について、指定されたプ
ログラム『永続勤務10年に対する記念品の贈呈プログ
ラム』に基づき、所定の処理を実行する。これにより、
検索されたレコード〈山田太郎〉に対し、記念品〈ネク
タイ〉が贈呈されることになる。 ステップS17: 処理部5は、レコード〈山田太郎〉
と記念品〈ネクタイ〉という2つの結果を出力部8へ引
き渡す。と同時に、処理部5は、検索結果データAをそ
のままの形で検索部2へ返送する。 ステップS18: 出力部8は、受け取った結果を図示
しないディスプレイに表示したり、図示しないプリンタ
装置で印刷したりする。
Step S16: The processing section 5 executes a predetermined process for the retrieved one record <Taro Yamada> based on the designated program “a souvenir presenting program for 10 years of permanent work”. This allows
A souvenir <tie> will be presented to the retrieved record <Taro Yamada>. Step S17: The processing section 5 records the record <Taro Yamada>.
And deliver the two results of souvenir <tie> to the output unit 8. At the same time, the processing unit 5 returns the search result data A to the search unit 2 as it is. Step S18: The output unit 8 displays the received result on a display not shown or prints it by a printer device not shown.

【0018】ステップS19: 検索部2は、処理部5
から検索結果データAを受け取ると、検索結果データA
内のテール情報を解析する。これにより、未だ検索され
ていないレコードがあることを知得する。なお、既に全
てのレコードが検索済みである旨を示す情報が設定され
ている場合には、検索を再開しないこととなる。 ステップS20: 検索部2は、ステップS11と同様
に、ステップS10で入力された検索条件の下で、デー
タベース〈社員情報データベース〉において検索を再開
する。これにより、検索条件を満足する次のレコード
〈小林花子〉を検索することになる。以下、ステップS
12以後の動作と同様に、検索された1つのレコード
〈小林花子〉に基づいて、検索結果データBを作成す
る。また、そのレコード〈小林花子〉自身について、
『永続勤務10年に対する記念品の贈呈プログラム』に
よる処理を実行することにより、記念品〈スカーフ〉を
贈呈することになる。
Step S19: The search unit 2 includes the processing unit 5
When the search result data A is received from
Analyze the tail information in. As a result, it is known that there is a record that has not been searched yet. If information indicating that all records have already been searched is set, the search will not be restarted. Step S20: The search unit 2 restarts the search in the database <employee information database> under the search condition input in step S10, as in step S11. As a result, the next record <Hanako Kobayashi> that satisfies the search condition is searched. Hereinafter, step S
Similar to the operation after 12, the search result data B is created based on one searched record <Hanako Kobayashi>. Also, regarding the record <Hanako Kobayashi> himself,
A souvenir <scarf> will be presented by executing the processing of the “souvenir donation program for 10 years of permanent work”.

【0019】上述した具体例では、永続勤務10年の社
員自身に対し、記念品を贈呈する場合について説明して
いる。しかし、永続勤務を達成した社員の家族にも記念
品を贈呈するような場合にも、本発明を適用することが
できる。例えば、永続勤務30年を達成した社員の子供
に対しては、記念品〈商品券〉を贈呈し、また、その社
員の孫に対しては、記念品〈文具〉を贈呈することを指
示するプログラム『永続勤務30年の社員の家族への記
念品の贈呈プログラム』に基づいて、記念品を贈呈する
場合の処理を図6の木構造図に沿って説明する。
In the above-mentioned specific example, the case where a souvenir is presented to an employee himself who has been a permanent employee for 10 years has been described. However, the present invention can also be applied to a case where a family member of an employee who has achieved permanent work is presented with a souvenir. For example, the child of an employee who has achieved 30 years of permanent work is presented with a souvenir <gift certificate>, and the grandchildren of the employee are presented with a souvenir <stationery>. Based on the program “A program for presenting souvenirs to the families of employees who have worked for 30 years of permanent work”, the process of presenting souvenirs will be described with reference to the tree structure diagram of FIG.

【0020】最初に、データベース〈社員情報データベ
ース〉において、永続勤務30年を達成した社員〈高橋
正太郎〉を検索して、社員〈高橋正太郎〉に記念品〈腕
時計〉を贈呈する処理を完了する。次に、データベース
〈社員の家族情報データベース〉において、社員〈高橋
正太郎〉の家族を検索することにより、子供〈高橋一
郎〉を検索して、この子供〈高橋一郎〉に記念品〈商品
券〉を贈呈する処理を完了する。同様にして、データベ
ース〈社員の家族情報データベース〉において、子供
〈高橋一郎〉の子供を検索することにより、孫〈高橋桃
子〉を検索して、この孫〈高橋桃子〉に対し記念品〈文
具〉を贈呈する処理を完了する。これらの検索を実行す
る際には、最初の検索においては、検索結果データのヘ
ッド情報として社員〈高橋正太郎〉を設定し、テール情
報として子供〈高橋一郎〉等がいる旨を示す情報を設定
する。同様にして、次の検索においては、検索結果デー
タのヘッド情報として子供〈高橋一郎〉を設定し、テー
ル情報として孫〈高橋桃子〉を設定するようにする。
First, the database <employee information database> is searched for an employee <Shotaro Takahashi> who has achieved 30 years of permanent work, and the process of presenting a souvenir <watch> to the employee <Shotaro Takahashi> is completed. Next, in the database <Employee family information database>, the child <Ichiro Takahashi> is searched by searching the family of the employee <Shotaro Takahashi>, and a souvenir <gift certificate> is given to this child <Ichiro Takahashi>. Complete the gifting process. Similarly, in the database <employee family information database>, by searching for the child of the child <Ichiro Takahashi>, the grandchild <Momoko Takahashi> is searched, and the grandchild <Momoko Takahashi> is a souvenir <stationery>. Complete the process of presenting. When executing these searches, in the first search, the employee <Shotaro Takahashi> is set as the head information of the search result data, and the information indicating that there is a child <Ichiro Takahashi> etc. is set as the tail information. . Similarly, in the next search, the child <Ichiro Takahashi> is set as the head information of the search result data, and the grandchild <Momoko Takahashi> is set as the tail information.

【0021】孫〈高橋桃子〉までの処理を完了すると、
再び、社員〈高橋正太郎〉の子供を検索することによ
り、子供〈高橋次郎〉を検索し、この子供〈高橋次郎〉
に対し記念品〈商品券〉を贈呈する処理を完了する。こ
のようにして、検索の深さを優先して検索・処理を進め
る場合、即ち、どの社員に何を贈呈するかを明確にする
ことよりも、どの社員のどのような家族に何を贈呈する
かを明確にすることを優先するような検索・処理の場合
に本発明を適用すると、検索の結果(この例では、高橋
正太郎、高橋一郎等の家族)と、その検索の結果に対す
る処理の結果(この例では、腕時計、商品等の記念品)
とを、逐次、確認することができる。社員〈高橋正太
郎〉に対する検索・処理が完了した後に、別な社員〈佐
々木一雄〉についての検索・処理がされることになる。
When the processing up to the grandchild <Momoko Takahashi> is completed,
By searching for the child of the employee <Shotaro Takahashi> again, the child <Jiro Takahashi> is searched, and this child <Jiro Takahashi>
The process of presenting a souvenir <gift certificate> is completed. In this way, when the search / processing is performed with priority given to the depth of the search, that is, what is presented to what family of which employee rather than what is presented to which employee. When the present invention is applied to a search / processing that prioritizes the clarification of the above, the search result (in this example, a family such as Shotaro Takahashi and Ichiro Takahashi) and the result of the processing for the search result (In this example, souvenirs such as watches and products)
And can be sequentially confirmed. After the search and processing for employee <Shotaro Takahashi> is completed, the search and processing for another employee <Kazuo Sasaki> will be performed.

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

【図1】本発明のブロック図である。FIG. 1 is a block diagram of the present invention.

【図2】本発明の動作フローチャートである。FIG. 2 is an operation flowchart of the present invention.

【図3】データベースを示す図である。FIG. 3 is a diagram showing a database.

【図4】プログラムを示す図である。FIG. 4 is a diagram showing a program.

【図5】検索結果データを示す図である。FIG. 5 is a diagram showing search result data.

【図6】深さを優先する検索・処理の木構造図である。FIG. 6 is a tree structure diagram of a search / process that prioritizes depth.

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

1 入力部 2 検索部 3 レコード管理部 4 検索管理部 5 処理部 6 データベース記憶部 7 プログラム記憶部 8 出力部 1 input section 2 search section 3 record management section 4 search management section 5 processing section 6 database storage section 7 program storage section 8 output section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数のレコードからなるデータベースを
記憶するデータベース記憶部と、 データベースから検索されたレコードに対しなされるべ
き処理を指示するプログラムを記憶するプログラム記憶
部と、 検索されるべきレコードの検索条件を入力する入力部
と、 データベース上において、その検索条件に合致するレコ
ードを検索する検索部と、 該当するレコードが1つ検索されたか否かを確認するレ
コード管理部と、 未だ検索されていないレコードがあるか否かを確認する
検索管理部と、 検索された1つのレコードについて、前記プログラムに
基づく処理を実行する処理部と、 前記プログラムに基づく処理がされた1つのレコードを
出力する出力部とからなることを特徴とするデータベー
ス管理システム。
1. A database storage unit for storing a database composed of a plurality of records, a program storage unit for storing a program for instructing processing to be performed on the records retrieved from the database, and retrieval of records to be retrieved. An input section for entering conditions, a search section for searching records matching the search conditions in the database, a record management section for checking whether or not one corresponding record has been searched, and a search section that has not been searched yet. A search management unit that confirms whether there is a record, a processing unit that executes processing based on the program for one searched record, and an output unit that outputs one record processed based on the program A database management system comprising:
【請求項2】 検索部と処理部との間で検索結果データ
が授受され、その検索結果データが、ヘッド情報とテー
ル情報とからなり、ヘッド情報は、検索されたレコード
であり、テール情報は、未だ検索されていないレコード
があるか否かに関する情報であることを特徴とする請求
項1記載のデータベース管理システム。
2. Search result data is exchanged between a search unit and a processing unit, and the search result data is composed of head information and tail information, the head information being a searched record, and the tail information being The database management system according to claim 1, which is information regarding whether or not there is a record that has not been searched yet.
【請求項3】 複数のレコードからなるデータベースに
おける検索に際しての検索条件を入力し、 前記データベースにおいて、その検索条件に合致するレ
コードを検索し、 その検索条件を満足するレコードが1つだけ検索された
ことを検出し、 その1つのレコードについてプログラムに基づく処理を
実行し、 前記プログラムに基づく処理がされた1つのレコードを
出力し、 再び前記データベースにおいて、その入力された検索条
件を満足する他のレコードを検索することを特徴とする
データベース管理システムの検索方法。
3. A search condition for a search in a database composed of a plurality of records is input, a record matching the search condition is searched for in the database, and only one record satisfying the search condition is searched. Is detected, the process based on the program is executed for the one record, and one record processed according to the program is output, and another record that satisfies the input search condition is again in the database. A method for searching a database management system, characterized by searching for.
【請求項4】 データベースでの検索処理と、プログラ
ムに基づく実行処理との間において、検索結果データが
授受され、その検索結果データが、ヘッド情報とテール
情報とからなり、ヘッド情報は、検索されたレコードで
あり、テール情報は、未だ検索されていないレコードが
あるか否かに関する情報であることを特徴とする請求項
3記載のデータベース管理システム。
4. Search result data is exchanged between a search process in a database and an execution process based on a program, and the search result data comprises head information and tail information, and the head information is searched. 4. The database management system according to claim 3, wherein the tail information is information regarding whether there is a record that has not been searched yet.
JP8118463A 1996-04-16 1996-04-16 Data base management system and retrieval method therein Pending JPH09282332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8118463A JPH09282332A (en) 1996-04-16 1996-04-16 Data base management system and retrieval method therein

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8118463A JPH09282332A (en) 1996-04-16 1996-04-16 Data base management system and retrieval method therein

Publications (1)

Publication Number Publication Date
JPH09282332A true JPH09282332A (en) 1997-10-31

Family

ID=14737291

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8118463A Pending JPH09282332A (en) 1996-04-16 1996-04-16 Data base management system and retrieval method therein

Country Status (1)

Country Link
JP (1) JPH09282332A (en)

Similar Documents

Publication Publication Date Title
EP1121639B1 (en) Impact analysis of a model
US5842198A (en) Data management system, that enables a user to connect existing data to an external file and a program to process that data
JPH09282332A (en) Data base management system and retrieval method therein
JPH06230844A (en) Method for starting processing
US7606789B2 (en) Data access and retrieval mechanism
JP2639804B2 (en) Database search device
JPH06131228A (en) Method for information processing and device therefor
JP2848313B2 (en) Hardware configuration automatic creation device
JPH11195060A (en) Procedure management system
JP3358194B2 (en) Data processing device
JP3047405B2 (en) Record data processing device
JPH05274334A (en) System of grasping customer information for each person in charge in banking business
JPH0731723B2 (en) Document processing apparatus and document processing method
JPH10269245A (en) Method and device for data input
JPH09218809A (en) File information confirmation device and method therefor
JP2001034634A (en) Data base retrieval system and program recording medium for the system
JPH01258047A (en) Data reinput system
JPS63284639A (en) Retrieving device
JPH01116824A (en) Parts retrieving device
JPH1097503A (en) Electronic equipment
JPH0895924A (en) System and method for managing information
JPH1040278A (en) Parts use propriety management method/system
JPH09305346A (en) Memorandum management system on personal computer
JPS63269224A (en) Data base access system
JPH04310183A (en) Method for retrieving/outputting relational data base