JP2000267909A - Database system - Google Patents

Database system

Info

Publication number
JP2000267909A
JP2000267909A JP11074775A JP7477599A JP2000267909A JP 2000267909 A JP2000267909 A JP 2000267909A JP 11074775 A JP11074775 A JP 11074775A JP 7477599 A JP7477599 A JP 7477599A JP 2000267909 A JP2000267909 A JP 2000267909A
Authority
JP
Japan
Prior art keywords
database
record
operation request
data
parent
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
JP11074775A
Other languages
Japanese (ja)
Inventor
Kazuhiro Okamoto
一弘 岡本
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 Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP11074775A priority Critical patent/JP2000267909A/en
Publication of JP2000267909A publication Critical patent/JP2000267909A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To efficiently operate a database itself when providing a table operation interface for a network type database system by providing a database operation request processing means, etc., which performs a command generating process based on an analyzed operation request and a process for expanding execution result data into table data. SOLUTION: According to an analysis result, an operation request acceptance part 2 issues requests for the extraction of record data 51 from a database 5 and table data expansion to a database operation request processing part 3 and a request to store the expanded table data to a table operation request processing part 4. The database request processing part 3 issues a database access command for extracting the record data 51 from a database 5 at the request. Further, processing part 3 expands the record data received from the database 5 to the form of table data and passes them to the table operation request processing part 4.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベースシス
テムに関わり、特に、ネットワーク型データベースをテ
ーブル操作インタフェースで参照および更新が可能なデ
ータベースシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system, and more particularly to a database system capable of referring to and updating a network-type database with a table operation interface.

【0002】[0002]

【従来の技術】従来から汎用大型電子計算機などではネ
ットワーク型データベースは広く用いられていたが、ユ
ーザまたはアプリケーションプログラムレがコード単位
でデータを操作するため、データベースの参照及び更新
はレコード単位の操作に基づいて手続き的に記述する必
要があり、利用しにくい面がある。
2. Description of the Related Art Conventionally, network-type databases have been widely used in large-scale general-purpose computers and the like. However, since a user or an application program operates data in units of codes, database references and updates must be performed in units of records. It must be described procedurally on the basis, and there are aspects that are difficult to use.

【0003】一方、リレーショナルデータベースはテー
ブル単位でのデータ操作を基本とし、比較的利用しやす
いインタフェースを提供できることが知られている。そ
こで、ネットワーク型データベースの参照及び更新をリ
レーショナルデータベースと同様のテーブル操作インタ
フェースで行えるようにする方式が考えられている。例
えば、特開平2−67682号公報に記載されているデ
ータベースシステムではリレーショナルデータベースの
操作言語であるSQLを解析し、ネットワーク型データ
ベースの操作言語であるDMLに変換することでテーブ
ル操作によるネットワーク型データベースの操作を実現
している。また、特開平4−299459号公報に記載
されているデータベースアクセスシステムではリレーシ
ョナルデータベースに対する問合せ文からネットワーク
型データベースを操作するための条件と手順を示すアク
セスモジュールの並びを生成し、その並びを順次実行す
る機能を実現している。いずれもリレーショナルデータ
ベースが持つテーブル操作のユーザインタフェースを提
供し、それとともにその操作をネットワーク型データベ
ースの操作に変換する手段を提供することで実際のデー
タベース操作を実現している。
[0003] On the other hand, it is known that a relational database can provide a relatively easy-to-use interface based on data manipulation on a table basis. Therefore, a method has been considered in which a network-type database can be referenced and updated using a table operation interface similar to that of a relational database. For example, in a database system described in Japanese Patent Application Laid-Open No. 2-67682, SQL, which is an operation language of a relational database, is analyzed and converted into DML, which is an operation language of a network type database, to convert a network-type database by table operation. Operation is realized. In the database access system described in Japanese Patent Application Laid-Open No. 4-299559, a sequence of access modules indicating conditions and procedures for operating a network database is generated from a query sentence to a relational database, and the sequence is sequentially executed. Function is realized. In each case, the actual database operation is realized by providing a user interface for the table operation of the relational database and providing a means for converting the operation into the operation of the network type database.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
従来技術では、例えば、あるデータAを参照した後、そ
のデータAから次のデータBを参照するといった処理形
態のように、対話形式でテーブルを操作しながら随時更
新を行うような処理形態の場合、テーブル上の個々の操
作が変換を伴ったネットワーク型データベース上での複
雑なレコード操作を必要とし、効率的な操作が困難にな
るという問題点がある。
However, in the above-mentioned prior art, for example, after a certain data A is referred to, the next data B is referred from the data A, and the table is interactively formed. In the case of a processing mode in which updating is performed as needed while operating, each operation on the table requires a complicated record operation on the network-type database with conversion, making efficient operation difficult. There is.

【0005】本発明の目的は、ネットワーク型データベ
ースシステムにテーブル操作インタフェースを提供する
際に、ネットワーク型データベース自体の操作をより効
率的に行うことが可能なデータベースシステムを提供す
ることにある。
An object of the present invention is to provide a database system capable of more efficiently operating the network database itself when providing a table operation interface to the network database system.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、ネットワーク型データベースに対する操
作要求を解析する解析手段と、解析した操作要求に基づ
くネットワーク型データベースに対するコマンド生成処
理と生成されたコマンドに対する実行結果データのテー
ブルデータへの展開処理を行うデータベース操作要求処
理手段と、前記テーブルデータを格納する格納手段と、
前記解析手段によって解析した操作要求に基づき前記テ
ーブルデータの操作を行うテーブル操作要求処理手段
と、前記生成したテーブルデータに対するコマンドによ
るデータベースアクセス手段を備えることを特徴とす
る。
In order to achieve the above object, the present invention provides an analyzing means for analyzing an operation request for a network type database, and a command generation process for a network type database based on the analyzed operation request. Database operation request processing means for performing expansion processing of execution result data for the command into table data, storage means for storing the table data,
A table operation request processing unit for operating the table data based on the operation request analyzed by the analysis unit, and a database access unit using a command for the generated table data are provided.

【0007】また、データベース操作要求処理手段にお
いて、ネットワーク型データベースにおける1つのタイ
プの親レコードについてそれに対する1つのタイプの子
レコードとの間で、各親レコードと子レコードの組み合
わせについてそれぞれのフィールドの並びを結合してタ
プルを作成し、そのタプルの集合としてテーブルを構成
することを特徴とする。
In the database operation request processing means, an arrangement of fields for each combination of a parent record and a child record between a parent record of one type and a child record of one type corresponding to the parent record in the network type database. Are combined to create a tuple, and a table is configured as a set of the tuples.

【0008】また、テーブルの更新が行われた場合に更
新に関わるタプルに対応するネットワーク型データベー
スのレコードに対しても更新内容を反映するための要求
をデータベース操作要求処理手段に対して行うことを特
徴とする。
In addition, when a table is updated, a request for reflecting the update content to a record of a network type database corresponding to a tuple related to the update is made to a database operation request processing means. Features.

【0009】さらに、これに伴ってテーブル操作要求処
理手段はネットワーク型データベースのレコードに対す
る更新内容の反映の際にデータベースとテーブルの構造
の違いを吸収するため、レコード更新によって発生する
データベースの矛盾チェックと、対応付け規則によるテ
ーブルとデータベースの対応付けと、ユーザ問合せによ
るテーブルとデータベースの対応付けを行うことを特徴
とする。以上のような構成でネットワーク型データベー
スのテーブル操作インタフェースによる参照および更新
を実現する。
Further, in accordance with this, the table operation request processing means absorbs the difference between the structure of the database and the structure of the table when reflecting the update contents to the record of the network type database. In addition, the table and the database are associated by the association rule, and the table and the database are associated by the user inquiry. With the above configuration, referencing and updating by the table operation interface of the network type database are realized.

【0010】[0010]

【発明の実施の形態】以下、図を用いて本発明の実施形
態について説明する。図1は、本発明によるデータベー
スシステムの一実施形態を示すブロック図である。この
実施形態のデータベースシステムは、入出力装置1、操
作要求受付部2、データベース操作要求処理部3、テー
ブル操作要求処理部4、データベース5、テーブルデー
タ格納装置6からなる。また、データベース5はレコー
ドデータ51及びデータベース定義52を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a database system according to the present invention. The database system according to this embodiment includes an input / output device 1, an operation request receiving unit 2, a database operation request processing unit 3, a table operation request processing unit 4, a database 5, and a table data storage device 6. Further, the database 5 includes record data 51 and a database definition 52.

【0011】まず、データベース5の構成について説明
する。データベース5には、図2のような親子の関連を
持つレコード21,22,23によって構成されるネッ
トワーク型データベースが構築されているものとする。
なお、現実に運用されるデータベース5のレコードは親
レコードが別のレコードの子レコードになっているな
ど、実際にはさらに複雑な関係を持っているが、図2に
おいては説明を簡単にするために最も単純なレコード関
係を示している。
First, the configuration of the database 5 will be described. In the database 5, it is assumed that a network type database composed of records 21, 22, and 23 having a parent-child relationship as shown in FIG. 2 is constructed.
Note that records in the database 5 that are actually operated have a more complicated relationship, such as a parent record being a child record of another record. However, in FIG. Shows the simplest record relationship.

【0012】データベース5内のレコードデータ51の
内容は図3に示すものとする。但し、ここでは得意先レ
コード21と受注レコード23のそれぞれの内容と両者
の関連だけに注目し、商品レコード22(図2)につい
ては省略している。得意先レコード21−1〜21−4
は「得意先ID、得意先名」の2つのフィールド21
1,212を持ち、受注レコード23−1〜23−5は
「伝票ID、得意先ID、商品ID、数量」の4つのフ
ィールド231,232,233,234を持ってい
る。また、各受注レコード23−1〜23−5は同じ得
意先IDを持つ得意先レコードとの間でリンクを持って
いる。図3の例では、各受注レコード23−1と23−
2が同じ得意先ID「T0001」を持っているため、
この各受注レコード23−1と23−2には矢印で示す
リンクが張られている。また、同じ得意先IDを持つ複
数の受注レコードがある場合はそれらと対応する得意先
レコードでループを形成するような形でリンクを持って
いる。ここでは省略したが、商品レコード22と受注レ
コード23の間でも商品ID233をキーとして同様の
リンク構造を形成している。上記のようなフィールドの
構成やリンクの構造を記述してあるのがデータベース定
義52である。
The contents of the record data 51 in the database 5 are as shown in FIG. However, here, attention is paid only to the contents of the customer record 21 and the order record 23 and the relationship between them, and the product record 22 (FIG. 2) is omitted. Customer records 21-1 to 21-4
Is the two fields 21 of “customer ID, customer name”
Order records 23-1 to 23-5 have four fields 231, 232, 233, and 234 of "slip ID, customer ID, product ID, and quantity". Each of the order records 23-1 to 23-5 has a link with a customer record having the same customer ID. In the example of FIG. 3, each order record 23-1 and 23-
2 have the same customer ID "T0001",
Each of the order records 23-1 and 23-2 is provided with a link indicated by an arrow. In addition, when there are a plurality of order records having the same customer ID, the records are linked in such a manner that a loop is formed by the customer records corresponding to the records. Although omitted here, a similar link structure is formed between the product record 22 and the order record 23 using the product ID 233 as a key. The database definition 52 describes the field configuration and link structure as described above.

【0013】図4は図2及び図3で示したデータベース
5のデータベース定義52を記述した例である。レコー
ドの名前と親子の種別、レコードに含まれるフィールド
の名前、また子レコードの特定のフィールド(ここでは
得意先IDと商品ID)については親レコードとのリン
クの対応付けに用いられるフィールドの指定とその親レ
コード名が定義されている。
FIG. 4 shows an example in which the database definition 52 of the database 5 shown in FIGS. 2 and 3 is described. For the name of the record and the type of parent and child, the name of the field included in the record, and the specific fields of the child record (customer ID and product ID in this case), specify the fields used for linking with the parent record. Its parent record name is defined.

【0014】続いて、テーブル操作インタフェースによ
る基本的なデータベース参照処理及び更新処理の全体的
な手順を図5のフロー図を用いて説明する。最初に、ネ
ットワーク型データベースであるデータベース5からレ
コードデータ51を抽出し、テーブルデータとして展開
する(ステップ501)。入出力装置1を通じてテーブ
ルデータ展開の要求が入力されるとその要求は操作要求
受付部2に渡され、解析される。この場合、テーブルデ
ータ展開の要求には、展開すべきデータの上位概念また
はそれ自体を指す情報が含まれている。操作要求受付部
2は、解析の結果に基づいて、データベース操作要求処
理部3に対してはデータベース5からのレコードデータ
51の抽出とテーブルデータ展開の要求を、テーブル操
作要求処理部4に対しては展開されたテーブルデータの
格納要求を発行する。
Next, the overall procedure of the basic database reference processing and update processing by the table operation interface will be described with reference to the flowchart of FIG. First, the record data 51 is extracted from the database 5 which is a network type database, and is developed as table data (step 501). When a request for table data development is input through the input / output device 1, the request is passed to the operation request receiving unit 2 and analyzed. In this case, the request for expanding the table data includes information indicating a higher concept of the data to be expanded or the data itself. The operation request receiving unit 2 requests the database operation request processing unit 3 to extract the record data 51 from the database 5 and expand the table data to the database operation request processing unit 3 based on the result of the analysis. Issues a request to store the expanded table data.

【0015】データベース操作要求処理部3は、操作要
求受付部2からの要求に応じてデータベース5に対して
レコードデータ51の抽出を行うためのデータベースア
クセスコマンドを発行する。コマンドを受けたデータベ
ース5はコマンドに応じたレコードデータをデータベー
ス操作要求処理部3に返す。データベース操作要求処理
部3はデータベース5から受け取ったレコードデータを
テーブルデータの形に展開し、テーブル操作要求処理部
4に渡す。この時、テーブルデータはネットワーク型デ
ータベースにおける1つのタイプの親レコードとそれに
対する1つのタイプの子レコードとの間で、親子関係の
リンクを持つレコードのフィールドの並びを結合したタ
プルの集合として構成する。
The database operation request processing unit 3 issues a database access command for extracting the record data 51 to the database 5 in response to a request from the operation request reception unit 2. The database 5 receiving the command returns record data corresponding to the command to the database operation request processing unit 3. The database operation request processing unit 3 develops the record data received from the database 5 into the form of table data, and passes it to the table operation request processing unit 4. At this time, the table data is configured as a set of tuples in which the arrangement of fields of records having a parent-child relationship link is established between one type of parent record and one type of child record corresponding thereto in the network type database. .

【0016】テーブル操作要求処理部4は受け取ったテ
ーブルデータをテーブルデータ格納装置6に格納し、テ
ーブルデータ展開の完了を(操作要求受付部2を通じ
て)入出力装置1に報告する。上記の処理手順を繰り返
し、複数のテーブルデータを展開することも可能であ
る。
The table operation request processing unit 4 stores the received table data in the table data storage device 6 and reports the completion of the table data development to the input / output device 1 (through the operation request receiving unit 2). The above processing procedure can be repeated to develop a plurality of table data.

【0017】次にテーブルデータを参照する(ステップ
502)。入出力装置1を通じてテーブルデータの参照
要求が入力されると、その要求はテーブルデータの展開
の場合と同様に操作要求受付部2で解析される。解析さ
れた要求はテーブル操作要求処理部4に渡される。テー
ブル操作要求処理部4は要求されたテーブルデータ参照
の操作をテーブルデータ格納装置6内のテーブルデータ
に対して行い、操作要求受付部2を通じて結果を入出力
装置1に返す。以上が、テーブルデータ参照の処理であ
る。
Next, reference is made to the table data (step 502). When a table data reference request is input via the input / output device 1, the request is analyzed by the operation request receiving unit 2 as in the case of expanding the table data. The analyzed request is passed to the table operation request processing unit 4. The table operation request processing unit 4 performs the requested table data reference operation on the table data in the table data storage device 6, and returns the result to the input / output device 1 through the operation request reception unit 2. The above is the processing of referring to the table data.

【0018】なお、テーブルデータ参照に関する操作と
してはリレーショナルデータベースの標準的な操作であ
る選択、射影、結合が可能であり、複数の参照要求を順
次入力できるものとする。
As operations relating to table data reference, selection, projection, and combination, which are standard operations of a relational database, can be performed, and a plurality of reference requests can be sequentially input.

【0019】テーブルデータの参照要求はテーブルデー
タだけに影響するものであり、データベース5には影響
しない。したがって、例えば対話形式でさまざまな観点
でテーブルを次々と参照するような処理を行ってもデー
タベース5に対する操作は一切不要となる。テーブルデ
ータの更新を通じてネットワーク型データベース5を更
新する(ステップ503)。入出力装置1を通じてテー
ブルデータの更新要求が入力されると、その要求はテー
ブルデータの参照の場合と同様に操作要求受付部2で解
析され、テーブル操作要求処理部4に渡される。
The request for referencing the table data affects only the table data and does not affect the database 5. Therefore, for example, even if a process of referring to tables one after another from various viewpoints in an interactive manner is performed, no operation on the database 5 is required at all. The network type database 5 is updated through updating the table data (step 503). When a table data update request is input through the input / output device 1, the request is analyzed by the operation request receiving unit 2 as in the case of referring to the table data, and is passed to the table operation request processing unit 4.

【0020】テーブル操作要求処理部4は要求されたテ
ーブルデータ更新をデータベース5に反映するにあた
り、テーブル上の更新とデータベース5上の更新の対応
付けを行うと共に、データベース5の更新操作に矛盾や
不明確な点がないかどうかをチェックし、必要に応じて
利用者への問合せを行う。問合せは操作要求受付部2か
ら入出力装置1を通じて行い、データベース5の更新内
容決定に反映する。テーブルデータ格納装置6内のテー
ブルデータを更新すると共に、データベース操作要求処
理部3に対してデータベース5のレコードデータ51の
更新要求を発行する。
When the requested table data update is reflected in the database 5, the table operation request processing unit 4 associates the update on the table with the update on the database 5. Check if there are any obvious points and make inquiries to the user if necessary. The inquiry is made from the operation request receiving unit 2 through the input / output device 1 and reflected in the update content determination of the database 5. It updates the table data in the table data storage device 6 and issues an update request for the record data 51 of the database 5 to the database operation request processing unit 3.

【0021】データベース操作要求処理部3は要求に応
じてデータベース5に対してレコードデータ51の更新
を行うためのデータベースアクセスコマンドを発行す
る。コマンドを受けたデータベース5は、コマンドに応
じたレコードデータの更新を行い、その結果を(データ
ベース操作要求処理部3を通じて)テーブル操作要求処
理部4に報告する。テーブル操作要求処理部4は更新処
理全体の完了を(操作要求受付部2を通じて)入出力装
置1に報告する。以上がテーブル更新及びデータベース
更新の処理である。
The database operation request processing unit 3 issues a database access command for updating the record data 51 to the database 5 in response to the request. The database 5 receiving the command updates the record data according to the command, and reports the result to the table operation request processing unit 4 (through the database operation request processing unit 3). The table operation request processing unit 4 reports the completion of the entire update process to the input / output device 1 (through the operation request receiving unit 2). The above is the processing of updating the table and updating the database.

【0022】データベース5からのレコードデータ51
抽出とデータベース操作要求処理部3での親レコードと
子レコードの組合せによるテーブルデータへの展開、デ
ータベース5に影響しないテーブルデータ参照、テーブ
ル操作要求処理部4でのテーブルデータ更新とそれを反
映したレコードデータ51の更新、さらにテーブルデー
タ更新を反映したレコードデータ51更新の際の矛盾チ
ェックと規則や問合せによるデータの対応付けが本発明
の特徴である。
Record data 51 from the database 5
Extraction and expansion into table data by combining parent records and child records in database operation request processing unit 3, table data reference that does not affect database 5, update of table data in table operation request processing unit 4, and records reflecting the update The feature of the present invention is the inconsistency check at the time of updating the data 51 and the update of the record data 51 reflecting the update of the table data, and the association of the data by rules and queries.

【0023】続いて、各処理段階での処理の詳細につい
て説明する。図6はデータベース操作要求処理部3にお
けるレコードデータ51の抽出及びテーブルデータ展開
処理のフロー図である。ここでは、操作要求受付部2か
らレコードデータ51の抽出とテーブルデータ展開の要
求が親レコード及び子レコード、テーブル名の指定とと
もに与えられているものとして説明する。
Next, details of the processing in each processing stage will be described. FIG. 6 is a flowchart of the process of extracting the record data 51 and expanding the table data in the database operation request processing unit 3. Here, a description will be given assuming that a request to extract the record data 51 and expand the table data from the operation request receiving unit 2 is given together with the designation of the parent record, the child record, and the table name.

【0024】まず、抽出対象となっている親レコードに
ついて、未処理のものがあるかどうかを調べ、未処理の
ものがない場合は(ステップ601でN)そのまま処理
を終了する。一方、未処理の親レコードがある場合は
(ステップ601でY)その親レコードを1個読み出し
(ステップ602)、その親レコードにリンクしている
子レコードを調べ、未処理のものがない場合は(ステッ
プ603でN)次の親レコードの処理(ステップ60
1)に移る。一方、未処理の子レコードがある場合は
(ステップ603でY)その子レコードを1個読み出す
(ステップ604)。そこで、先ほど読み出した親レコ
ードと今読み出した子レコードを結合してタプルを作成
し、指定されたテーブル名のテーブルデータの要素とし
て出力して(ステップ605)次の子レコードの処理
(ステップ603)に移る。
First, it is checked whether or not there is an unprocessed parent record to be extracted. If there is no unprocessed parent record (N in step 601), the process is terminated. On the other hand, if there is an unprocessed parent record (Y in step 601), one parent record is read (step 602), the child record linked to the parent record is checked, and if there is no unprocessed parent record, (N in step 603) Processing of next parent record (step 60
Move to 1). On the other hand, if there is an unprocessed child record (Y in step 603), one child record is read (step 604). Therefore, a tuple is created by combining the previously read parent record and the currently read child record, and the tuple is output as an element of table data having the specified table name (step 605). Processing of the next child record (step 603) Move on to

【0025】以上のような処理手順で、図3の得意先レ
コード(親)21と受注レコード(子)23の組合せを
もとにテーブルデータへ展開を行った場合、図7のよう
なテーブルデータ71が作成される。なお、テーブル名
は「得意先−受注」としている。図3の得意先名が「A
社」の得意先レコードに対してはそれにリンクしている
受注レコード2個(23−1,23−2)のそれぞれと
組み合わせたタプルが図7のテーブルに出力されてい
る。また、タプル作成の際に結合のキーとなっている得
意先IDのフィールドは重複したものを除去している。
When the table data is expanded based on the combination of the customer record (parent) 21 and the order record (child) 23 shown in FIG. 3 according to the processing procedure described above, the table data shown in FIG. 71 is created. The table name is “customer-order”. The customer name in FIG.
For the customer record of “company”, a tuple combined with each of two order records (23-1, 23-2) linked to the customer record is output to the table of FIG. In the tuple creation, duplicated customer ID fields, which are keys for connection, are removed.

【0026】なお、レコードデータ51のレコード構
成、各レコードのフィールド構成、子レコードの各親レ
コードに対するリンクのキーとなるフィールド等の情報
が必要な場合はデータベース定義52を参照して処理を
行う。また、このフロー図では子レコードを持たない親
レコードのみのタプルはないと仮定してテーブル抽出処
理を行っている。親レコードのみのタプルが存在する場
合には子レコードに対応するフィールドの値をNULL
値としたタプルを出力する等の方法で対応が可能であ
る。
When information such as the record configuration of the record data 51, the field configuration of each record, and the field serving as a link key for each parent record of the child record is required, the processing is performed with reference to the database definition 52. In this flowchart, the table extraction processing is performed on the assumption that there is no tuple of only the parent record having no child record. If a tuple of only the parent record exists, NULL is set to the value of the field corresponding to the child record.
This can be handled by a method such as outputting a tuple as a value.

【0027】テーブルデータの参照の実質的な処理は、
テーブル操作要求処理部4が要求に従ってテーブルデー
タを返すことによって行われる。参照の要求について
は、リレーショナルデータベースの検索言語として一般
的なSQL言語によって記述する。例えば図7のテーブ
ル71に対して「数量のフィールドが2より大きいタプ
ルを選択する」という場合は「SELECT * FROM 得意先−
受注 WHERE 数量 > 2」のような検索文で問合せを行
う。結果は図8のようなテーブル81として返される。
The substantial processing of referring to the table data is as follows.
This is performed by the table operation request processing unit 4 returning table data according to the request. The reference request is described in a general SQL language as a relational database search language. For example, with respect to the table 71 in FIG. 7, "select a tuple whose quantity field is larger than 2" is "SELECT * FROM customer-
Query with a search statement such as "Order WHERE Quantity>2". The result is returned as a table 81 as shown in FIG.

【0028】レコードデータの抽出とテーブルデータへ
の展開は1個の親レコードと1個の子レコードの組合せ
に限定しているが、それ以外のレコード間のフィールド
を組み合わせて参照したい場合は複数のテーブルを展開
によって作成し、それらを結合することで実現できる。
Extraction of record data and expansion into table data are limited to a combination of one parent record and one child record. However, when it is desired to refer to a combination of fields between other records, a plurality of records may be used. This can be achieved by creating tables by expansion and joining them.

【0029】図9はテーブル操作要求処理部4を中心と
したテーブル更新及びデータベース更新の処理のフロー
図である。更新の要求についてもテーブル71に対する
SQL言語の検索文で記述する。なお、ここに示したの
は一般的な処理手順であり、テーブル71中のタプルに
対する更新、追加、削除のそれぞれで詳細は異なってく
る(それぞれの詳細については後述する)。
FIG. 9 is a flowchart of a table update and database update process centered on the table operation request processing unit 4. The update request is also described in the SQL language search statement for the table 71. This is a general processing procedure, and details of updating, adding, and deleting tuples in the table 71 are different (details of each will be described later).

【0030】まず、更新が要求されているテーブル71
のタプル及びフィールドについてレコードデータ51中
の対応するレコード及びフィールド(レコード追加の場
合は追加する位置)を特定し、また、更新の内容がレコ
ードデータ51に対しては適用できない、あるいは適用
した結果データに矛盾が発生する、というような場合が
ないかどうかをチェックする(ステップ901)。対応
付けとチェックの結果、更新の内容について問合せが必
要な場合は(ステップ902でY)操作要求受付部2を
通じて入出力装置1に問合せを発行し、その結果を受け
取る(ステップ903)。問合せが不要な場合は(ステ
ップ902でN)問合せ処理は省略する。ステップ90
1のチェックの結果、あるいはステップ903の問合せ
処理の結果で矛盾が発生している場合は(ステップ90
4でY)処理を中止する。一方、矛盾がない場合は(ス
テップ904でN)問合せの結果を含めてレコードデー
タ51中の対応する更新レコード及び更新フィールドを
確定する(ステップ905)。そして、テーブル格納装
置6中のテーブルデータを更新するとともに(ステップ
906)、データベース操作要求処理部3を通じてレコ
ードデータ51を更新する(ステップ907)。
First, the table 71 whose update is requested
Identify the corresponding record and field in the record data 51 for the tuple and field (the position to be added in the case of adding a record), and the content of the update cannot be applied to the record data 51, or the result data It is checked whether there is a case where inconsistency occurs (step 901). As a result of the association and the check, if an inquiry about the contents of the update is necessary (Y in step 902), an inquiry is issued to the input / output device 1 through the operation request receiving unit 2 and the result is received (step 903). If the inquiry is unnecessary (N in step 902), the inquiry processing is omitted. Step 90
If a contradiction has occurred in the result of the check in step 1 or the result of the inquiry processing in step 903 (step 90).
At 4 the processing Y) is stopped. On the other hand, if there is no inconsistency (N in step 904), the corresponding update record and update field in the record data 51 including the result of the inquiry are determined (step 905). Then, the table data in the table storage device 6 is updated (step 906), and the record data 51 is updated through the database operation request processing unit 3 (step 907).

【0031】図10は、図9で説明した更新処理のう
ち、テーブル71中のタプルについてフィールド値を更
新する場合の対応付けと矛盾チェックの処理の詳細フロ
ー図である。まず、変更するレコードを設定し(ステッ
プ1001)、その中の変更するフィールドを設定する
(ステップ1002)。この時、変更するフィールドが
親レコードのフィールドでない場合は(ステップ100
3でN)矛盾の発生はないとして(ステップ100
4)、対応付けとチェックの処理を終了する。
FIG. 10 is a detailed flowchart of the association and inconsistency check processing when updating the field value of the tuple in the table 71 in the update processing described in FIG. First, a record to be changed is set (step 1001), and a field to be changed is set therein (step 1002). At this time, if the field to be changed is not a field of the parent record (step 100)
3) N) It is determined that there is no inconsistency (step 100)
4), the processing of association and check is terminated.

【0032】一方、変更するフィールドが親レコードの
フィールドである場合は(ステップ1003でY)同じ
親レコードに対応するタプルでも同様に変更が行われる
かをチェックする(ステップ1005)。その結果、変
更後のフィールドの値が一致している場合は(ステップ
1006でY)矛盾の発生はないとして(ステップ10
04)対応付けとチェックの処理を終了する。一方、変
更後のフィールドの値が一致していない場合は(ステッ
プ1006でN)矛盾の発生があるとして(ステップ1
007)対応付けとチェックの処理を終了する(結果と
して更新処理はエラー終了する)。
On the other hand, if the field to be changed is the field of the parent record (Y in step 1003), it is checked whether the tuple corresponding to the same parent record is similarly changed (step 1005). As a result, if the values of the changed fields match (Y in step 1006), it is determined that there is no inconsistency (step 10).
04) End the association and check process. On the other hand, if the values of the changed fields do not match (N in step 1006), it is determined that a contradiction has occurred (step 1).
007) Terminate the association and check processing (as a result, the update processing ends with an error).

【0033】図11は図7の「得意先−受注」テーブル
71で「UPDATE 得意先−受注 SET 得意先名='E社' WH
ERE 伝票ID='D0002'」のような検索文でフィー
ルド値の更新を試みた場合を示している。テーブル上の
書換えはテーブルの内容2行目の得意先名を「E社」と
書き換えられるが、その書き換えの結果をレコードデー
タに反映しようとすると、同じ得意先レコード(親)に
基づくテーブルの内容1行目のタプルと得意先名(A
社)が一致しなくなってしまっているので、親レコード
の得意先名が一意に定まらないという矛盾が起きる。し
たがって、上記のような検索文で更新しようとするとエ
ラー終了することになる。ちなみに、検索文を「UPDATE
得意先−受注 SET 得意先名='E社' WHERE 得意先ID
='T0001'」のように変更すれば、図11のテーブ
ルの内容1、2行目ともに得意先名「E社」に書き換え
られるため、矛盾は起こらずに正しく更新できる。
FIG. 11 shows "UPDATE customer-order SET customer name = 'Company E'WH" in the "customer-order" table 71 of FIG.
This shows a case where an attempt is made to update a field value with a search sentence such as ERE slip ID = 'D0002'. When rewriting the table, the customer name in the second row of the table can be rewritten as "Company E", but if the result of the rewriting is to be reflected in the record data, the contents of the table based on the same customer record (parent) will be used. The first line tuple and customer name (A
), The inconsistency occurs that the customer name of the parent record is not uniquely determined. Therefore, if an attempt is made to update with the above-described search statement, an error will occur. By the way, the search statement is "UPDATE
Customer-Order SET Customer name = 'E company' WHERE Customer ID
= “T0001” ”, both the first and second lines of the table in FIG. 11 are rewritten to the customer name“ E company ”, so that the update can be performed correctly without inconsistency.

【0034】図12は図9で説明した更新処理のうち、
テーブル71中にタプルを追加する場合の対応付けと矛
盾チェックの処理の詳細フロー図である。まず、追加す
るタプルに対応する親レコードを持つタプルが存在する
かをチェックする(ステップ1201)。この時、対応
するタプルがない場合は(ステップ1202でN)親レ
コードの追加が必要なので追加する親レコードの内容と
追加位置の設定(ステップ1203)と、追加する子レ
コードの内容と追加位置の設定(ステップ1204)を
行う。一方、対応するタプルがある場合は(ステップ1
202でY)親レコードの追加は必要ないので、追加す
る子レコードの内容と追加位置の設定(ステップ120
4)だけを行う。以上で対応付けの処理を終了する。な
お、本実施形態ではタプルの追加時に矛盾チェックの処
理は発生しない。
FIG. 12 shows an example of the updating process described with reference to FIG.
FIG. 14 is a detailed flowchart of the association and inconsistency check processing when a tuple is added to the table 71. First, it is checked whether a tuple having a parent record corresponding to the tuple to be added exists (step 1201). At this time, if there is no corresponding tuple (N in step 1202), it is necessary to add a parent record, so the setting of the contents of the parent record to be added and the addition position (step 1203), and the contents of the child record to be added and the addition position The setting (step 1204) is performed. On the other hand, if there is a corresponding tuple (step 1
Y) Since the addition of the parent record is not necessary, the content of the child record to be added and the addition position are set (step 120).
Perform only 4). This completes the association process. In this embodiment, no contradiction check processing is performed when adding a tuple.

【0035】図13は図7の「得意先−受注」テーブル
71で「INSERT INTO 得意先−受注 VALUES('T000
2','B社','D0006','S0002',6)」のような
検索文でタプルの追加を試みた場合を示している。この
場合、追加するタプルに対応する得意先レコード(親)
を持つタプルが存在する(内容3行目のタプルが得意先
レコードに対応するフィールドの値について、得意先I
Dが「T0002」、得意先名が「B社」で一致してい
る)。したがって、レコードの追加を行った場合、その
追加は図13の下欄に網掛け部分のレコード23−6で
示すように受注レコード(子)に対してだけ行われてお
り、既存の得意先レコード(親)に対するリンクの連鎖
の中に組み込まれている。
FIG. 13 shows "INSERT INTO Customer-Orders VALUES ('T000)" in the "Customer-Orders" table 71 of FIG.
2 ',' Company B ',' D0006 ',' S0002 ', 6) "when an attempt is made to add a tuple with a search sentence. In this case, the customer record (parent) corresponding to the tuple to be added
(The tuple on the third line of the content indicates that the value of the field corresponding to the customer record
D is “T0002” and the customer name is “Company B”). Therefore, when a record is added, the addition is made only to the order record (child) as shown by the shaded record 23-6 in the lower column of FIG. It is embedded in the chain of links to (parent).

【0036】一方、図14は同様に図7の「得意先−受
注」テーブル71で「INSERT INTO得意先−受注 VALUES
('T0005','E社','D0006', 'S0002',
6)」のような検索文でタプルの追加を試みた場合を示し
ている。この例の場合は追加するタプルに対応する得意
先レコード(親)を持つタプルが存在しない。したがっ
て、得意先レコード(親)、受注レコード(子)の双方
にレコード21−5,23−7が追加され、両者の間で
相互にリンクを持つ形になっている。
On the other hand, FIG. 14 similarly shows "INSERT INTO customer-order VALUES" in the "customer-order" table 71 of FIG.
('T0005', 'Company E', 'D0006', 'S0002',
6) "shows a case where an attempt is made to add a tuple with a search sentence such as"). In this case, there is no tuple having a customer record (parent) corresponding to the tuple to be added. Therefore, the records 21-5 and 23-7 are added to both the customer record (parent) and the order record (child), and the two have a mutual link.

【0037】なお、子レコードの追加にあたっては現在
注目している親レコード(子レコードとフィールドを組
み合わせてタプルを作成した相手の親レコード)以外の
親レコードに対するリンクの接続処理も必要であるが、
これはその親レコードのキーとなる子レコードのフィー
ルドの値に従って行われる。例えば、図13及び図14
における受注レコード(子)23−6,23−7の追加
の場合、図中では追加した受注レコードの得意先レコー
ド(親)に対するリンクの追加及び付け換えだけが示さ
れているが、実際は商品IDのフィールドの値に従って
商品レコード(親)へのリンクの追加及び付け換えも行
われる。
When adding a child record, it is necessary to perform link connection processing to a parent record other than the parent record of interest (the parent record of a tuple created by combining the child record and the field).
This is done according to the value of the field of the child record which is the key of the parent record. For example, FIG. 13 and FIG.
In the case of adding the order record (child) 23-6, 23-7 in the above, only the addition and replacement of the link to the customer record (parent) of the added order record are shown in the figure, but the product ID is actually The link to the product record (parent) is also added and replaced according to the value of the field.

【0038】図15は図9で説明した更新処理のうち、
テーブル71中のタプルを削除する場合の対応付けと矛
盾チェックの処理の詳細フロー図である。まず、削除す
るタプルに対応する親レコードを同様に親として持つタ
プルが他に存在するかをチェックする(ステップ150
1)。この時、対応するタプルがない場合は(ステップ
1502でN)レコードの削除について処理方法を選択
し(選択の内容については後述する)、その結果に従っ
て削除するレコード設定する(ステップ1503)。選
択する処理方法は、テーブル操作要求処理部4にあらか
じめ設定しておけるものとする。一方、対応するタプル
がある場合は(ステップ1502でY)子レコードだけ
を削除すればよいので、対象となる子レコードを設定す
る(ステップ1504)。以上で対応付け及び矛盾チェ
ックの処理を終了する。
FIG. 15 shows an example of the updating process described with reference to FIG.
FIG. 18 is a detailed flowchart of the association and inconsistency check processing when deleting a tuple in a table 71. First, it is checked whether or not there is another tuple having the parent record corresponding to the tuple to be deleted as a parent similarly (step 150).
1). At this time, if there is no corresponding tuple (N in step 1502), a processing method is selected for record deletion (selection contents will be described later), and a record to be deleted is set according to the result (step 1503). The processing method to be selected can be set in the table operation request processing unit 4 in advance. On the other hand, if there is a corresponding tuple (Y in step 1502), only the child record needs to be deleted, so a target child record is set (step 1504). This completes the association and inconsistency check processing.

【0039】なお、ステップ1503におけるレコード
削除処理の選択であるが、本実施形態のようなネットワ
ーク型データベースで処理方法を選択する場合、以下の
ような選択肢が考えられる。 (1)直ちに親レコードを子レコードとともに削除す
る。 (2)直ちに子レコードだけを削除し、親レコードは保
持する。 (3)直ちに更新処理を中止する(親レコード、子レコ
ードとも保持する)。 (4)(1)〜(3)について利用者に問い合わせて選
択させる。 但し、図6のテーブルデータ展開処理の説明でも述べた
通り、本実施形態では子レコードを持たない親レコード
は存在しないと仮定しているので(2)は選択肢から除
外される(同時に(4)の問合せの選択肢からも除外さ
れる)。削除するレコードの設定は、(1)の場合は、
対応する親レコードと子レコードを設定し、(3)の場
合は設定せず、(4)の場合は問合せ結果に応じて
(1)または(3)と同様に設定する。
As for the selection of the record deletion processing in step 1503, when the processing method is selected in the network type database as in the present embodiment, the following options are conceivable. (1) The parent record is immediately deleted together with the child records. (2) Only the child record is immediately deleted, and the parent record is retained. (3) Immediately stop the update process (hold both parent record and child record). (4) The user is asked about (1) to (3) to make a selection. However, as described in the description of the table data expansion processing in FIG. 6, in the present embodiment, it is assumed that there is no parent record having no child record, so that (2) is excluded from the options (simultaneously (4)). Will also be excluded from the query options). The setting of the record to be deleted is (1),
Corresponding parent record and child record are set. In the case of (3), no setting is made, and in the case of (4), setting is made in the same manner as (1) or (3) according to the query result.

【0040】図16は図7の「得意先−受注」テーブル
71で「DELETE FROM 得意先−受注 WHERE 伝票ID='
D0003'」のような検索文でタプルの削除を試みた
場合を示している。なお、レコード削除の処理方法の設
定は上記(1)の「直ちに親レコードを子レコードとと
もに削除する」を仮定する。この場合、削除するタプル
に対応する得意先レコード(親)を親として持つタプル
が存在しないため、仮定されたレコード削除の処理方法
の設定に従って対応する得意先レコード(親)21−2
と受注レコード(子)23−3が削除される。同時に両
レコード間にあったリンクも削除される。
FIG. 16 shows “DELETE FROM customer-order WHERE slip ID = 'in the“ customer-order ”table 71 of FIG.
D0003 'is shown in a case where an attempt is made to delete a tuple using a search sentence such as "D0003'". Note that the setting of the record deletion processing method is assumed to be "(1) immediately delete parent record together with child record". In this case, since there is no tuple having the customer record (parent) corresponding to the tuple to be deleted as a parent, the corresponding customer record (parent) 21-2 according to the assumed setting of the record deletion processing method is set.
And the order record (child) 23-3 are deleted. At the same time, the link between the two records is deleted.

【0041】一方、図17は同様に図7の「得意先−受
注」テーブル71で「DELETE FROM得意先−受注 WHERE
伝票ID='D0002'」のような検索文でタプルの削
除を試みた場合を示している。この場合、削除するタプ
ルに対応する得意先レコード(親)を親として持つタプ
ルが存在する(内容1行目のタプルが得意先レコードに
対応するフィールドの値について、得意先IDが「T0
001」、得意先名が「A社」で一致している)。した
がって、削除するタプルに対応する受注レコード(子)
23−8が削除される。同時に、その受注レコード23
−8からのリンクは削除され、その受注レコード23−
8へのリンクは他のレコード(ここでは親にあたる得意
先レコード)に付け換えられる。
On the other hand, FIG. 17 similarly shows “DELETE FROM customer-order WHERE” in the “customer-order” table 71 of FIG.
This shows a case where an attempt is made to delete a tuple using a search sentence such as “slip ID = 'D0002'”. In this case, there is a tuple having the customer record (parent) corresponding to the tuple to be deleted as a parent (the tuple on the first content line has a customer ID “T0” for the value of the field corresponding to the customer record).
001 ”, and the customer name matches“ Company A ”). Therefore, the order record (child) corresponding to the tuple to be deleted
23-8 is deleted. At the same time, the order record 23
The link from -8 is deleted and its order record 23-
The link to 8 is replaced with another record (here, the parent customer record).

【0042】なお、子レコードの削除にあたっては、現
在注目している親レコード(子レコードとフィールドを
組み合わせてタプルを作成した相手の親レコード)以外
の親レコードに対するリンクの改廃処理も必要である
が、これは追加の場合と同様にその親レコードのキーと
なる子レコードのフィールドの値に従って行われる。例
えば、図16及び図17における受注レコード(子)2
3−3,23−8の削除の場合、図中では削除した受注
レコードの得意先レコード(親)に対するリンクの削除
及び付け換えだけが示されているが、実際は商品IDの
フィールドの値に従って商品レコード(親)へのリンク
の削除及び付け換えも行われる。
When deleting a child record, it is necessary to perform a link abolition process for parent records other than the parent record of interest (the parent record of the partner who created the tuple by combining the child record and the field). This is done according to the value of the field of the child record which is the key of the parent record as in the case of addition. For example, the order record (child) 2 in FIG. 16 and FIG.
In the case of deletion of 3-3 and 23-8, only the deletion and replacement of the link to the customer record (parent) of the deleted order record are shown in the figure, but the product is actually according to the value of the product ID field. The link to the record (parent) is also deleted and replaced.

【0043】以上、テーブル更新及びデータベース更新
の処理についてテーブル71上でのタプルの更新、追
加、削除の順に説明してきたが、本実施形態ではテーブ
ルの更新はデータベース5から展開した(展開後にテー
ブル操作を行っていない)テーブル71に対してだけ行
っている。もし、展開後のテーブル操作によって作成し
たテーブルからデータベースの更新を実現しようとする
ならば、限られた条件(データベースに反映するための
フィールドが十分に揃っている等)のもとでだけ可能
で、しかも矛盾チェックやレコードの対応付けは本実施
形態よりも複雑になる。但し、その場合でも条件チェッ
クやレコードの対応付けの内容が追加、変更されるだけ
であり、更新処理手順は本実施形態における図9に示し
たもので対応が可能である。
Although the table update and database update processes have been described above in the order of updating, adding, and deleting tuples on the table 71, in this embodiment, the table update is developed from the database 5 (after the table operation, the table operation is performed). Is performed only for the table 71. If you want to update the database from a table created by operating the table after expansion, it is possible only under limited conditions (such as sufficient fields to reflect in the database). In addition, inconsistency check and record association are more complicated than in the present embodiment. However, even in this case, only the contents of the condition check and the record association are added or changed, and the update processing procedure can be handled by the one shown in FIG. 9 in the present embodiment.

【0044】[0044]

【発明の効果】以上の説明から明らかなように、本発明
によれば、データベースからのレコードデータ抽出及び
テーブルデータへの展開、展開済みテーブルデータ上で
のテーブル操作、テーブルデータ更新とそれを反映した
レコードデータの更新、さらにレコードデータ更新の際
の矛盾チェックと規則や問合せによるデータの対応付け
によって、ローカルなテーブル参照処理と効率化したデ
ータベース更新処理を実現している。すなわち、テーブ
ルデータとして展開したものについては参照処理の際に
データベースの操作が一切発生しない。そして、対話形
式を用い、テーブル上のデータをさまざまな問合せによ
って参照し、吟味した結果に従ってテーブルを更新した
場合、更新の結果を反映する時にだけデータベースに対
する操作が行われる。この結果、利用者に対してテーブ
ル形式の操作インタフェースを提供できるのと同時に、
ネットワーク型データベース自体の操作を効率化できる
という効果が得られる。
As is apparent from the above description, according to the present invention, record data is extracted from a database and expanded into table data, table operations are performed on the expanded table data, and table data is updated and reflected. The update of the record data, the inconsistency check at the time of update of the record data, and the association of the data by rules and queries realize the local table reference processing and the efficient database update processing. That is, no operation of the database occurs at the time of the reference processing for the data developed as the table data. When the data on the table is referred to by various queries using the interactive format and the table is updated according to the examined result, the operation on the database is performed only when the result of the update is reflected. As a result, it is possible to provide a user with a table format operation interface,
The effect that the operation of the network type database itself can be made efficient can be obtained.

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

【図1】本発明によるデータベースシステムの一実施形
態を示す構成図である。
FIG. 1 is a configuration diagram showing an embodiment of a database system according to the present invention.

【図2】ネットワーク型データベースのレコード間の親
子関連を示す図である。
FIG. 2 is a diagram showing a parent-child relationship between records in a network database.

【図3】ネットワーク型データベース内のレコードデー
タの内容を示す図である。
FIG. 3 is a diagram showing the contents of record data in a network database.

【図4】ネットワーク型データベースのデータベース定
義の例を示す図である。
FIG. 4 is a diagram illustrating an example of a database definition of a network-type database.

【図5】テーブル操作インタフェースによる基本的なデ
ータベース参照処理及び更新処理の全体的な手順を示す
フロー図である。
FIG. 5 is a flowchart showing an overall procedure of basic database reference processing and update processing by a table operation interface.

【図6】データベース操作要求処理部におけるレコード
データの抽出およびテーブルデータ展開処理のフロー図
である。
FIG. 6 is a flowchart of a process of extracting record data and expanding table data in a database operation request processing unit.

【図7】展開したテーブルデータの例を示す図である。FIG. 7 is a diagram illustrating an example of expanded table data.

【図8】参照(テーブルに対する選択操作)によって得
られたテーブルデータの例を示す図である。
FIG. 8 is a diagram showing an example of table data obtained by reference (selection operation for a table).

【図9】テーブル操作要求処理部を中心としたテーブル
更新及びデータベース更新の処理のフロー図である。
FIG. 9 is a flowchart of a table update and database update process centered on a table operation request processing unit.

【図10】テーブル中のタプルについてフィールド値を
更新する場合の対応付けと矛盾チェックの処理の詳細フ
ロー図である。
FIG. 10 is a detailed flow chart of the association and inconsistency check processing when updating a field value for a tuple in a table.

【図11】フィールド値の更新を試みた場合のテーブル
データ及びレコードデータの変化について例を示す図で
ある。
FIG. 11 is a diagram illustrating an example of changes in table data and record data when an attempt is made to update a field value.

【図12】テーブル中にタプルを追加する場合の対応付
けと矛盾チェックの処理の詳細フロー図である。
FIG. 12 is a detailed flow chart of the association and inconsistency check processing when a tuple is added to a table.

【図13】タプルの追加(同じ親レコードに対応付けら
れるタプルが存在する場合)を試みた場合のテーブルデ
ータ及びレコードデータの変化について例を示す図であ
る。
FIG. 13 is a diagram illustrating an example of changes in table data and record data when an attempt is made to add a tuple (when there is a tuple associated with the same parent record).

【図14】タプルの追加(同じ親レコードに対応付けら
れるタプルが存在しない場合)を試みた場合のテーブル
データ及びレコードデータの変化について例を示す図で
ある。
FIG. 14 is a diagram illustrating an example of changes in table data and record data when an attempt is made to add a tuple (when there is no tuple associated with the same parent record).

【図15】テーブル中のタプルを削除する場合の対応付
けと矛盾チェックの処理の詳細フロー図である。
FIG. 15 is a detailed flowchart of processing for association and inconsistency check when a tuple in a table is deleted.

【図16】タプルの削除(同じ親レコードに対応付けら
れるタプルが存在しない場合)を試みた場合のテーブル
データ及びレコードデータの変化について例を示す図で
ある。
FIG. 16 is a diagram illustrating an example of changes in table data and record data when an attempt is made to delete a tuple (when there is no tuple associated with the same parent record).

【図17】タプルの削除(同じ親レコードに対応付けら
れるタプルが存在する場合)を試みた場合のテーブルデ
ータ及びレコードデータの変化について例を示す図であ
る。
FIG. 17 is a diagram illustrating an example of changes in table data and record data when an attempt is made to delete a tuple (when a tuple associated with the same parent record exists).

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

1…入出力装置、2…操作要求受付部、3…データベー
ス操作要求処理部、4…テーブル操作要求処理部、5…
データベース、51…レコードデータ、52…データベ
ース定義、6…テーブルデータ格納装置。
DESCRIPTION OF SYMBOLS 1 ... I / O device, 2 ... Operation request reception part, 3 ... Database operation request processing part, 4 ... Table operation request processing part, 5 ...
Database, 51: Record data, 52: Database definition, 6: Table data storage device.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ネットワーク型データベースをテーブル
操作インタフェースによって参照および更新が可能なデ
ータベースシステムにおいて、 前記ネットワーク型データベースに対する操作要求を解
析する解析手段と、 解析した操作要求に基づくネットワーク型データベース
に対するコマンド生成処理と生成されたコマンドに対す
る実行結果データのテーブルデータへの展開処理を行う
データベース操作要求処理手段と、 前記テーブルデータを格納する格納手段と、 前記解析手段によって解析した操作要求に基づき前記テ
ーブルデータの操作を行うテーブル操作要求処理手段
と、 前記生成したテーブルデータに対するコマンドによるデ
ータベースアクセス手段を備えることを特徴とするデー
タベースシステム。
1. A database system capable of referring to and updating a network-type database by a table operation interface, analysis means for analyzing an operation request for the network-type database, and command generation processing for the network-type database based on the analyzed operation request. A database operation request processing unit for expanding the execution result data of the generated command into table data, a storage unit for storing the table data, and an operation of the table data based on the operation request analyzed by the analysis unit A database system comprising: a table operation request processing unit for performing the following; and a database access unit using a command for the generated table data.
【請求項2】 前記データベース操作要求処理手段は、
ネットワーク型データベースにおける1つのタイプの親
レコードについてそれに対する1つのタイプの子レコー
ドとの間で、各親レコードと子レコードの組み合わせに
ついてそれぞれのフィールドの並びを結合してタプルを
作成し、そのタプルの集合としてテーブルを構成するこ
とを特徴とする請求項1記載のデータベースシステム。
2. The database operation request processing means,
A tuple is created by combining the arrangement of the respective fields for each combination of parent record and child record between a parent record of one type and a child record of one type corresponding to the parent record in the network type database. The database system according to claim 1, wherein the table is configured as a set.
【請求項3】 前記テーブル操作要求処理手段は、テー
ブルの更新が行われた場合に更新に関わるタプルに対応
するネットワーク型データベースのレコードに対しても
更新内容を反映するための要求をデータベース操作要求
処理手段に対して行うことを特徴とする請求項1または
2記載のデータベースシステム。
3. The table operation request processing means sends, when a table is updated, a request for reflecting the updated contents also in a record of a network type database corresponding to a tuple related to the update, to a database operation request. 3. The database system according to claim 1, wherein the processing is performed on processing means.
【請求項4】 前記テーブル操作要求処理手段は、前記
ネットワーク型データベースのレコードに対する更新内
容の反映の際に、レコード更新によって発生するデータ
ベースの矛盾チェックと、対応付け規則によるテーブル
とデータベースの対応付けと、ユーザ問合せによるテー
ブルとデータベースの対応付けを行うことを特徴とする
請求項3記載のデータベースシステム。
4. The table operation request processing means checks the inconsistency of the database caused by record update when reflecting the update content to the record of the network database, and associates the table with the database according to the association rule. 4. The database system according to claim 3, wherein the table is associated with the database by a user inquiry.
JP11074775A 1999-03-19 1999-03-19 Database system Pending JP2000267909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11074775A JP2000267909A (en) 1999-03-19 1999-03-19 Database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11074775A JP2000267909A (en) 1999-03-19 1999-03-19 Database system

Publications (1)

Publication Number Publication Date
JP2000267909A true JP2000267909A (en) 2000-09-29

Family

ID=13557013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11074775A Pending JP2000267909A (en) 1999-03-19 1999-03-19 Database system

Country Status (1)

Country Link
JP (1) JP2000267909A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257570A (en) * 2007-04-06 2008-10-23 Ntt Data Corp Database system and program
JP2014507713A (en) * 2011-01-14 2014-03-27 アビニシオ テクノロジー エルエルシー Managing changes to a collection of data
JP2015200978A (en) * 2014-04-04 2015-11-12 富士通株式会社 Database access control program, database access control method, and information processing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257570A (en) * 2007-04-06 2008-10-23 Ntt Data Corp Database system and program
JP2014507713A (en) * 2011-01-14 2014-03-27 アビニシオ テクノロジー エルエルシー Managing changes to a collection of data
JP2015200978A (en) * 2014-04-04 2015-11-12 富士通株式会社 Database access control program, database access control method, and information processing device

Similar Documents

Publication Publication Date Title
AU773177B2 (en) System for maintaining precomputed views
US9558239B2 (en) Relational query planning for non-relational data sources
US6915305B2 (en) Restructuring view maintenance system and method
Andersson Extracting an entity relationship schema from a relational database through reverse engineering
US6460043B1 (en) Method and apparatus for operating on data with a conceptual data manipulation language
US7769769B2 (en) Methods and transformations for transforming metadata model
Simitsis et al. State-space optimization of ETL workflows
US6178425B1 (en) Method of determining the visibility to a remote database client of a plurality of database transactions using simplified visibility rules
US6704747B1 (en) Method and system for providing internet-based database interoperability using a frame model for universal database
Bloesch et al. ConQuer: a conceptual query language
US6615223B1 (en) Method and system for data replication
US7844633B2 (en) System and method for storage, management and automatic indexing of structured documents
US7831614B2 (en) System and method for generating SQL using templates
KR20010012305A (en) System and method for storing and manipulating data in an information handling system
JP2003067402A (en) Structured document managing device and method therefor
US20070156791A1 (en) File system dump/restore by node numbering
US20170140000A1 (en) Pseudo columns for data retreival
WO2011116471A1 (en) Method and system for generating updated test data
US20070174231A1 (en) Mapping-based query generation with duplicate elimination and minimal union
JP2000267909A (en) Database system
US11074401B2 (en) Merging delta object notation documents
JP2007293874A (en) Method and apparatus for compressed storage of document
US11023674B2 (en) Generation and application of object notation deltas
JP2000132435A (en) Data consistency processor between different kind of data base management systems
Fong et al. Data conversion rules from network to relational databases