JPH0822405A - Management system for relational data base - Google Patents

Management system for relational data base

Info

Publication number
JPH0822405A
JPH0822405A JP6155974A JP15597494A JPH0822405A JP H0822405 A JPH0822405 A JP H0822405A JP 6155974 A JP6155974 A JP 6155974A JP 15597494 A JP15597494 A JP 15597494A JP H0822405 A JPH0822405 A JP H0822405A
Authority
JP
Japan
Prior art keywords
relational database
route
referential integrity
data
date
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
JP6155974A
Other languages
Japanese (ja)
Inventor
Noburu Yoshida
宣 吉田
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 JP6155974A priority Critical patent/JPH0822405A/en
Publication of JPH0822405A publication Critical patent/JPH0822405A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To understand the relational data base as three-dimensional structure and to enable generation management by record by incorporating the concept of records in the relational data base. CONSTITUTION:To alter route data, an alteration instruction for the route data is inputted on the keyboard 12 of a personal computer 1 together with a valid date on the basis of the alteration specifications of the route data. Consequently, a control part 11 retrieves a reference consistency table 21 to confirm whether or not an object attribute has parent-child relation. As a result of this confirmation, it is judged that the route name of the route data in a relational data base 22b as a parent attribute and the route name of station data in a relational data base 22a as a child attribute are altered. According to this judgement, the control part 11 updates the tuple of the corresponding route data in the relational data base 22b and the tuple of the corresponding station data in the relational data base 22a on the basis of the valid date.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、たとえば参照整合性
を有し、世代管理を行うリレーショナルデータベースを
管理するリレーショナルデータベースの管理システムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a relational database management system for managing a relational database having referential integrity and performing generation management.

【0002】[0002]

【従来の技術】従来、交通機関たとえば鉄道では、定期
券発行機、自動改札機等の機器が利用されている。これ
らの機器では、内部のハードディスクに記憶されている
データファイルに基づいて路線データ等を管理してい
る。
2. Description of the Related Art Conventionally, equipment such as commuter ticket issuing machines and automatic ticket gates have been used in transportation systems such as railways. These devices manage route data and the like based on data files stored in the internal hard disk.

【0003】しかし、ある会社線のある路線で路線名が
変更されたり、新駅が追加されたり、駅が廃止されたり
するようになっている。この場合、その会社線に対する
機器のデータファイルだけでなく、連絡している他社線
の各機器のデータファイルを変更するようになってい
る。
However, the route name of a certain company line is changed, a new station is added, or a station is abolished. In this case, not only the data file of the device for the company line, but also the data file of each device of the other company's line that is in contact is changed.

【0004】この変更を行う基となるデータベースとし
て路線、会社、駅、交差駅等の各リレーションが用意さ
れているリレーショナルデータベースが用いられてい
る。このリレーショナルデータベースにおける参照整合
性を損なわないデータ更新方法としてリレーショナルデ
ータベース言語SQLがISO規格(JIS規格)で標
準化されている。しかし、レコード単位の世代管理を行
う世代管理型データベースでは、有効期間か設定された
複数のタプルを1つのレコードとして扱うことによって
世代管理を実現しているので、参照整合性を保持するた
めには対称となるタプルの有効期間に重なる全世代につ
いて個々に参照制約動作を行っていない。
A relational database in which relations such as lines, companies, stations, and crossing stations are prepared is used as a database on which this change is made. As a data updating method that does not impair referential integrity in this relational database, the relational database language SQL is standardized by the ISO standard (JIS standard). However, in a generation management database that performs generation management on a record-by-record basis, generation management is realized by handling multiple tuples with valid periods set as one record, so to maintain referential integrity The referential constraint operation is not performed individually for all generations that overlap the valid period of the symmetric tuple.

【0005】このため、SQLをそのまま適用できず、
データベース利用者が1回のデータ更新に対して参照整
合性を検査し、複数の命令を実行しなければならなかっ
た。したがって、従来の世代管理型データベースでは、
参照整合性が保証されていないのでデータの信頼性に乏
しく、データベースの利用も世代管理と参照整合性に対
する知識がないと難しい。また、データの更新に対して
複数の命令が必要なため、作業量も多くなり、データベ
ースを利用したアプリケーション・プログラムも複雑な
ものにならざるを得ないという欠点があった。
For this reason, SQL cannot be directly applied,
The database user had to check the referential integrity for one data update and execute multiple instructions. Therefore, in the conventional generation management database,
Since referential integrity is not guaranteed, data reliability is poor, and it is difficult to use a database without knowledge of generation management and referential integrity. Further, since a plurality of instructions are required to update the data, the amount of work is increased, and the application program using the database is inevitably complicated.

【0006】[0006]

【発明が解決しようとする課題】この発明は、上記した
ように、レコード単位での世代管理を行うリレーショナ
ルデータベースにおいて参照整合性を実現することがで
きないという欠点を除去するもので、レコード単位での
世代管理を行うリレーショナルデータベースにおいて、
参照整合性を実現することができるリレーショナルデー
タベースの管理システムを提供することを目的とする。
As described above, the present invention eliminates the drawback that referential integrity cannot be realized in a relational database that manages generations in record units. In a relational database that manages generations,
It is an object of the present invention to provide a relational database management system that can realize referential integrity.

【0007】[0007]

【課題を解決するための手段】この発明のリレーショナ
ルデータベースの管理システムは、属性とタプルと有効
日付とからなる3次元の複数のリレーショナルデータベ
ース、上記各リレーショナルデータベースの参照整合性
を記憶している参照整合性テーブル、上記リレーショナ
ルデータベースの更新内容とその有効日付とを指定する
指定手段、およびこの指定手段により指定された更新内
容に基づいて対象となるリレーショナルデータベースの
記憶内容を上記有効日付を基準にして更新し、上記更新
内容に基づいて上記参照整合性テーブルから参照整合性
のあるリレーショナルデータベースを判断し、この判断
した参照整合性のあるリレーショナルデータベースの記
憶内容を上記有効日付を基準にして更新する処理手段か
ら構成されている。
The relational database management system of the present invention is a reference storing the referential integrity of a plurality of three-dimensional relational databases consisting of attributes, tuples, and effective dates. A consistency table, a designating means for designating the update content of the relational database and its effective date, and the stored content of the target relational database based on the update content designated by the designating means based on the valid date. A process for updating, determining a referential integrity relational database from the referential integrity table based on the updated content, and updating the stored content of the determined referential integrity relational database based on the valid date. Is composed of means

【0008】この発明のリレーショナルデータベースの
管理システムは、属性と路線名とこの路線名の有効日付
とからなる3次元の複数のリレーショナルデータベー
ス、上記各リレーショナルデータベースの参照整合性を
記憶している参照整合性テーブル、上記リレーショナル
データベースの更新内容とその有効日付とを指定する指
定手段、およびこの指定手段により指定された更新内容
に基づいて対象となるリレーショナルデータベースの記
憶内容を上記有効日付を基準にして更新し、上記更新内
容に基づいて上記参照整合性テーブルから参照整合性の
あるリレーショナルデータベースを判断し、この判断し
た参照整合性のあるリレーショナルデータベースの記憶
内容を上記有効日付を基準にして更新する処理手段から
構成されている。
A relational database management system according to the present invention is a three-dimensional relational database consisting of attributes, route names, and effective dates of the route names, and a referential integrity storing the referential integrity of each of the relational databases. Property table, specifying means for specifying the update contents of the relational database and the effective date thereof, and updating the stored contents of the target relational database based on the update contents specified by the specifying means on the basis of the effective date. Processing means for determining a relational database having referential integrity from the referential integrity table based on the update content and updating the stored content of the determined relational database having referential integrity based on the valid date. It consists of

【0009】[0009]

【作用】この発明は、上記のような構成において、リレ
ーショナルデータベースにレコードという概念を導入す
ることにより、リレーショナルデータベースを3次元構
造として理解し、各レコード毎の世代管理を実現するよ
うにしたものである。
According to the present invention, by introducing the concept of a record into the relational database in the above structure, the relational database is understood as a three-dimensional structure, and generation management for each record is realized. is there.

【0010】[0010]

【実施例】以下、この発明の一実施例について図面を参
照して説明する。図1はこの発明のリレーショナルデー
タベースが用いられる交通機器のデータファイルを管理
する管理システムである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a management system for managing data files of transportation equipment in which the relational database of the present invention is used.

【0011】この管理システムは、データベースの管理
者用のパーソナルコンピータ1と、このパーソナルコン
ピータ1により作成されたデータファイルが記憶された
フロッピーディスク2、…によりそれぞれのデータファ
イルの記憶内容が変更される種々の会社線に対応する自
動改札機や定期券発行機等の駅務機器3、…により構成
されている。
In this management system, the stored contents of each data file are changed by a personal computer 1 for a database administrator and a floppy disk 2 in which a data file created by the personal computer 1 is stored. It is composed of station affairs equipment 3, ...

【0012】パーソナルコンピータ1は、図2に示すよ
うに、全体を制御する制御部11、種々のリレーショナ
ルデータベースが記憶されているハードディスクHD、
種々の指示を入力するキーボード12、案内用のディス
プレイ13、上記各リレーショナルデータベースの記憶
内容を各駅務機器3、…の内容に対応したデータに変換
するデータ変換部14と、このデータ変換部14で変換
したデータをそれぞれ個々のフロッピーディスク2、…
に記憶するフロッピーディスク装置15によって構成さ
れている。
As shown in FIG. 2, the personal computer 1 includes a control unit 11 for controlling the whole, a hard disk HD in which various relational databases are stored,
A keyboard 12 for inputting various instructions, a display 13 for guidance, a data conversion unit 14 for converting the stored contents of each relational database into data corresponding to the contents of each station service device 3, ... Converted data to each floppy disk 2, ...
The floppy disk device 15 stores the data in

【0013】上記ハードディスクHD内には、参照整合
性テーブル21、およびリレーショナルデータベース2
2a、22b、…が設けられている。参照整合性テーブ
ル21は、上記リレーショナルデータベース22a、…
の参照整合性を定義することができ、あるリレーショナ
ルデータベース内の外部キーと呼ばれる属性(複数も可
能)を、他のリレーショナルデータベースの属性に対応
づけることができる。
In the hard disk HD, the referential integrity table 21 and the relational database 2 are stored.
2a, 22b, ... Are provided. The referential integrity table 21 includes the relational database 22a, ...
It is possible to define referential integrity of and to associate one or more attributes called foreign keys in one relational database with the attributes of another relational database.

【0014】参照整合性テーブル21は、その対応とし
ての親属性と子属性の関係が記憶されているテーブルで
あり、たとえば、図3に示すように、子属性のリレーシ
ョン名と属性名、親属性のリレーション名と属性名、お
よびそれらの関係が対応して記憶されている。
The referential integrity table 21 is a table in which the relationship between the parent attribute and the child attribute as the correspondence is stored. For example, as shown in FIG. 3, the relation name and attribute name of the child attribute and the parent attribute are stored. Relation names, attribute names, and their relationships are stored correspondingly.

【0015】この関係は、ISOによって標準化された
SQLによって規格化されている参照整合性に準ずるも
のであり、2つのリレーションの属性に対して関連性を
定義することによって、複数のリレーションの有機的な
結び付きを保障するものである。
This relationship conforms to the referential integrity standardized by SQL standardized by ISO, and by defining the relevance to the attributes of two relations, the organic relations of a plurality of relations are defined. It guarantees a strong connection.

【0016】たとえば、図3の場合、子属性のリレーシ
ョン名「駅」と属性名「路線名」、親属性のリレーショ
ン名「路線」と属性名「路線名」、関係「一致」が対応
して記憶されている。
For example, in the case of FIG. 3, the child attribute relation name "station" and the attribute name "route name", the parent attribute relation name "route" and the attribute name "route name", and the relationship "match" correspond to each other. Remembered

【0017】この参照整合性を保持できないようなレコ
ードの更新を行うことは不可能であり、エラーとするか
可能なかぎり参照整合性を保持するように他のリレーシ
ョナルデータベースも更新を波及させるかはデータベー
スの利用者が選択できるようになっている。
It is impossible to update a record that cannot maintain the referential integrity, and it is an error or is it possible to propagate the update to other relational databases so as to maintain the referential integrity? The database user can select it.

【0018】上記リレーショナルデータベース22a、
…は、それぞれ世代管理型のリレーショナルデータベー
スであり、有効期間を取り入れた3次元的なデータとし
てとらえられる(図4の(a)(b)(c)参照)。
The relational database 22a,
Each is a generation management type relational database, and can be regarded as three-dimensional data incorporating the effective period (see (a), (b), and (c) in FIG. 4).

【0019】これらのリレーショナルデータベース22
a、…では、連続するいくつかの有効期間に各々対応す
るタプルの集合としてレコードという概念を導入するこ
とによって、あたかも従来の二次元的なリレーショナル
データが指定期日によって変化していくように扱うこと
ができる。
These relational databases 22
In a, ..., by introducing the concept of a record as a set of tuples corresponding to several consecutive effective periods, it is treated as if the conventional two-dimensional relational data changes according to a specified date. You can

【0020】すなわち、図4の(a)は、従来のリレー
ショナルデータベースの2次元のデータに対して、時間
軸としての高さを加えたものであり、指定期日において
水平に切り出した場合には従来のリレーショナルデータ
と同じ、横軸に属性、縦軸にタプルを並べた2次元のデ
ータが得られる(図4の(c)参照)。この時、主キー
として指定されるいくつかの属性は他のタプルと重複し
ない。
That is, FIG. 4 (a) shows the two-dimensional data of a conventional relational database to which height as a time axis is added. The same two-dimensional data as the relational data in which the horizontal axis has attributes and the vertical axis has tuples are obtained (see (c) of FIG. 4). At this time, some attributes specified as the primary key do not overlap with other tuples.

【0021】これに対し、垂直方向に切り出した場合
は、該当するレコードの期日による変化を表わす、2次
元のデータが得られる(図4の(b)参照)。この時、
主キーはすべて同一のものとなる。レコードに対して更
新命令が実行された場合は、この表を指定された期日を
もって更新内容が水平方向に切り出した2次元の表に反
映されるように書き換えられる。
On the other hand, when the data is cut out in the vertical direction, two-dimensional data showing the change of the corresponding record due to the date is obtained (see (b) in FIG. 4). This time,
All primary keys are the same. When an update command is executed for a record, this table is rewritten at a designated date so that the update content is reflected in a two-dimensional table cut out in the horizontal direction.

【0022】リレーショナルデータベース22aは、た
とえば駅データに対するものであり、図4の(a)に示
すように、属性情報とタプル番号と有効日付とにより各
軸が構成されている。この場合、属性情報は、開始日、
廃止日、駅コード、路線名、駅名、および表示パターン
から構成されている。
The relational database 22a is for station data, for example, and as shown in FIG. 4A, each axis is composed of attribute information, tuple numbers, and effective dates. In this case, the attribute information is the start date,
It consists of abolition date, station code, route name, station name, and display pattern.

【0023】たとえば、タプル番号としての駅コード
「4」に対して、図4の(b)に示すようなタプル群
(レコード)が記憶されており、この開始日、廃止日、
および表示パターンの異なる4つのタプルから構成され
ている(日付の重複するタプルは存在しない)。
For example, for a station code "4" as a tuple number, a tuple group (record) as shown in FIG. 4B is stored.
And tuples with different display patterns (there are no tuples with overlapping dates).

【0024】この場合、開始日「90−01−01」、
廃止日「91−12−31」、駅コード「4」、路線名
「中央線」、駅名「新宿」、および表示パターン「新
宿」のタプル、開始日「92−01−01」、廃止日
「93−02−01」、駅コード「4」、路線名「中央
線」、駅名「新宿」、および表示パターン「新宿」のタ
プル、開始日「93−02−02」、廃止日「94−
2−16」、駅コード「4」、路線名「中央線」、駅名
「新宿」、および表示パターン「 新宿 」のタプル、
開始日「94−02−17」、廃止日「NULL」、駅
コード「4」、路線名「中央線」、駅名「新宿」、およ
び表示パターン「○○新宿」のタプルから構成されてい
る。
In this case, the start date "90-01-01",
Abolition date "91-12-31", station code "4", line name "Chuo Line", station name "Shinjuku", and tuple of display pattern "Shinjuku", start date "92-01-01", abolition date " 93-02-01 ", station code" 4 ", route name" Chuo Line ", station name" Shinjuku ", and tuple of display pattern" Shinjuku ", start date" 93-02-02 ", abolition date" 94- "
2-16 ”, station code“ 4 ”, route name“ Chuo Line ”, station name“ Shinjuku ”, and tuple of display pattern“ Shinjuku ”,
The tuple includes a start date “94-02-17”, an abolition date “NULL”, a station code “4”, a route name “Chuo Line”, a station name “Shinjuku”, and a display pattern “XX Shinjuku”.

【0025】また、94−02−17に対して有効な図
4の(c)に示すような、タプル群が対応している(同
一駅コード(キー)は存在しない)。この場合、開始日
「94−01−01」、廃止日「NULL」、駅コード
「1」、路線名「東海道本線」、駅名「東京」、および
表示パターン「○○東京 」のタプル、開始日「93−
01−31」、廃止日「94−02−28」、駅コード
「2」、路線名「東海道本線」、駅名「横浜」、および
表示パターン「 横浜 」のタプル、開始日「93−0
9−01」、廃止日「NULL」、駅コード「3」、路
線名「東北本線」、駅名「仙台」、および表示パターン
「 仙 台」のタプル、開始日「94−02−17」、
廃止日「NULL」、駅コード「4」、路線名「中央
線」、駅名「新宿」、および表示パターン「○○新宿
」のタプルから構成されている。
Further, a tuple group as shown in FIG. 4C, which is effective for 94-02-17, corresponds (the same station code (key) does not exist). In this case, start date "94-01-01", abolition date "NULL", station code "1", route name "Tokaido Main Line", station name "Tokyo", and tuple of display pattern "○○ Tokyo", start date "93-
01-31 ", abolition date" 94-02-28 ", station code" 2 ", line name" Tokaido Main Line ", station name" Yokohama ", and tuple of display pattern" Yokohama ", start date" 93-0 "
9-01 ”, abolition date“ NULL ”, station code“ 3 ”, line name“ Tohoku Main Line ”, station name“ Sendai ”, and display pattern“ Sendai ”tuple, start date“ 94-02-17 ”,
It is composed of tuples of abolition date "NULL", station code "4", line name "Chuo Line", station name "Shinjuku", and display pattern "XX Shinjuku".

【0026】また、リレーショナルデータベース22b
は、たとえば路線データに対するものであり、属性情報
とタプル番号と有効日付とにより各軸が構成されてい
る。この場合、属性情報は、開始日、廃止日、路線コー
ド、路線名、会社名、および表示パターンから構成され
ている。
Further, the relational database 22b
Is for route data, for example, and each axis is composed of attribute information, tuple numbers, and effective dates. In this case, the attribute information includes a start date, an abolition date, a route code, a route name, a company name, and a display pattern.

【0027】すなわち、94−04−01以降に対して
有効な図5に示すような、タプル群が対応している(同
一路線コード(キー)は存在しない)。この場合、開始
日「93−01−01」、廃止日「NULL」、路線コ
ード「1」、路線名「東海道本線 」、会社名「○○○
○○」、および表示パターン「東海道本線」のタプル、
開始日「94−04−01」、廃止日「NULL」、駅
コード「2」、路線名「東北本線」、会社名「○○○○
○」、および表示パターン「 東北本線 」のタプ
ル、開始日「90−01−01」、廃止日「NUL
L」、路線コード「3」、路線名「中央線」、会社名
「○○○○○」、および表示パターン「中央線 」
のタプルから構成されている。
That is, tuple groups as shown in FIG. 5, which are effective for 94-04-01 and later, correspond (the same route code (key) does not exist). In this case, start date "93-01-01", abolition date "NULL", route code "1", route name "Tokaido Main Line", company name "○○○"
○○ ”and tuple of display pattern“ Tokaido Main Line ”,
Start date "94-04-01", abolition date "NULL", station code "2", route name "Tohoku Main Line", company name "○○○○"
○, and tuple of display pattern “Tohoku Main Line”, start date “90-01-01”, abolition date “NUL
L ”, route code“ 3 ”, route name“ Chuo Line ”, company name“ ○○○○○ ”, and display pattern“ Chuo Line ”
It consists of tuples.

【0028】したがって、制御部11は、各駅務機器
3、…に対する指定された日付のデータファイルをリレ
ーショナルデータベース22a、22b、…の記憶内容
に応じて作成し、各データファイルをフロッピーディス
ク装置15によってフロッピーディスク2、…に記憶す
る。この各フロッピーディスク2、…を対応する駅務機
器3、…にそれぞれ設定することにより、駅務機器3、
…内の図示しないハードディスクのデータファイルを新
たな内容に更新する。
Therefore, the control section 11 creates a data file of the designated date for each station service device 3, ... In accordance with the stored contents of the relational databases 22a, 22b ,. It is stored in the floppy disk 2, .... By setting each of the floppy disks 2, ... Into the corresponding station service device 3 ,.
The data file of the hard disk (not shown) in ... is updated with new contents.

【0029】次に、上記のような構成において、A社の
路線データの変更処理について、図6に示すフローチャ
ートを参照しつつ説明する。まず、A社路線データの変
更仕様書に基づいて、管理者用のパーソナルコンピータ
1のキーボード12により路線データの変更命令を入力
する。この路線データの変更命令は、たとえば、リレー
ション名「路線データ」、キー名「3」、変更属性「路
線名」、変更内容「中央線」を「中央本線」、変更日付
「94−01−01」となっている。
Next, the process of changing the route data of the company A in the above-mentioned configuration will be described with reference to the flowchart shown in FIG. First, a route data change command is input using the keyboard 12 of the administrator's personal computer 1 based on the A company route data change specification. This route data change command is, for example, the relation name “route data”, the key name “3”, the change attribute “route name”, the change content “Chuo Line” is “Chuo Main Line”, and the change date is “94-01-01”. It has become.

【0030】これにより、制御部11は、参照整合性テ
ーブル21を検索し、対象属性に親子関係があるか否か
を確認する。この確認の結果、リレーション名「路
線」、属性名「路線名」が親属性であり、この親属性に
対する子属性としてリレーション名「駅」、属性名「路
線名」があると判断する。すなわち、リレーショナルデ
ータベース22bの路線データの路線名「中央線」とリ
レーショナルデータベース22aの駅データの路線名
「中央線」の変更を判断する。
As a result, the control unit 11 searches the referential integrity table 21 and confirms whether or not the target attribute has a parent-child relationship. As a result of this confirmation, it is determined that the relation name "route" and the attribute name "route name" are parent attributes, and the relation name "station" and the attribute name "route name" are child attributes to this parent attribute. That is, it is determined whether the line name “Chuo Line” in the line data of the relational database 22b and the line name “Chuo Line” in the station data of the relational database 22a are changed.

【0031】この判断により、制御部11は、リレーシ
ョナルデータベース22bの対応する路線データのタプ
ルを更新し、リレーショナルデータベース22aの対応
する駅データのタプルを更新する。
Based on this judgment, the control unit 11 updates the tuple of the corresponding route data in the relational database 22b and the tuple of the corresponding station data in the relational database 22a.

【0032】すなわち、図7の(a)に示す路線データ
に対して、図7の(b)に示すように、3番目のタプル
の廃止日を「NULL」に変更し、4番目のタプルとし
て、開始日「90−01−01」、廃止日「NUL
L」、路線コード「3」、路線名「中央線」、会社名
「○○○○○」、および表示パターン「 中央本線 」
のタプルを追加する。
That is, with respect to the route data shown in FIG. 7A, the abolition date of the third tuple is changed to "NULL" as shown in FIG. , Start date "90-01-01", abolition date "NUL
L ”, route code“ 3 ”, route name“ Chuo Line ”, company name“ ○○○○○ ”, and display pattern“ Chuo Main Line ”
Add a tuple of.

【0033】また、図8の(a)に示す駅データに対し
て、図8の(b)に示すように、3番目のタプルの廃止
日を「93−12−31」に変更し、4番目のタプルの
路線名を「中央本線」に変更し、3番目と4番目のタプ
ルの間に、開始日「94−01−01」、廃止日「94
−02−16」、駅コード「4」、路線名「中央本
線」、駅名「新宿」、および表示パターン「 新 宿
」のタプルを追加する。
Further, with respect to the station data shown in FIG. 8A, the abolition date of the third tuple is changed to "93-12-31" as shown in FIG. The route name of the second tuple was changed to "Chuo Main Line", and the start date "94-01-01" and the abolition date "94" were set between the third and fourth tuples.
-02-16 ”, station code“ 4 ”, line name“ Chuo Main Line ”, station name“ Shinjuku ”, and display pattern“ Shinjuku ”tuples are added.

【0034】この結果、図9の(a)(b)に示すよう
に、路線データと駅データの各タプルが、94−01−
01を基準にして、路線名を「中央本線」に変更するよ
うにでき、それらの整合性を保つことができる。
As a result, as shown in FIGS. 9A and 9B, each tuple of the route data and the station data is 94-01-
Based on 01, the route name can be changed to "Chuo Main Line", and their consistency can be maintained.

【0035】また、上記例では、変更について説明した
が、廃止、追加等も同様に行うことができる。たとえ
ば、94−01−01付けで、路線名「中央線」を廃止
する場合、図7の(a)に示す路線データに対して、3
番目のタプルの廃止日を「94−01−01」に変更
し、図8の(a)に示す駅データに対して、3番目のタ
プルの廃止日を「94−01−01」に変更し、4番目
のタプルを消去する。また、追加は、指定記述とするタ
プルを追加するものであり、日付でできるかできないか
を確認しているだけである。この追加の際、参照整合性
に違反するレコードは作成できない。
In the above example, the change has been described, but the abolition, addition, and the like can be similarly performed. For example, if the route name “Chuo Line” is to be abolished by adding 94-01-01, the route data shown in FIG.
The abolition date of the third tuple was changed to "94-01-01", and the abolition date of the third tuple was changed to "94-01-01" for the station data shown in Fig. 8A. Delete the fourth tuple. Also, the addition is to add a tuple as a specified description, and only confirms whether or not it can be done by date. Records that violate referential integrity cannot be created during this addition.

【0036】したがって、上記のような世代管理型のリ
レーショナルデータベースではレコードに対する更新が
行われた時に、参照整合性を破壊するような命令を拒否
するだけでなく参照整合性を保つように他のリレーショ
ンの変更も実行するよう利用者が指定できる。この時、
SQL2に規格化されている単なるタプルの変更にとど
まらず、どの期日においても参照整合性が保たれるよう
に各レコードを更新していくことができる。
Therefore, in the above generation management type relational database, when a record is updated, not only a command that destroys referential integrity is rejected but also another relation is maintained to maintain referential integrity. The user can specify that the changes in This time,
Each record can be updated so that referential integrity is maintained at any date, not limited to the change of tuples standardized in SQL2.

【0037】また、世代管理をリレーショナルデータベ
ースが行うため、特定の日付に行わなければならないデ
ータの変更を参照整合性を損なわずに事前に行うことが
できる。
Further, since the relational database manages generations, it is possible to change data that must be performed on a specific date in advance without impairing referential integrity.

【0038】また、参照整合性を世代管理型のリレーシ
ョナルデータベースに適用することにより、参照制約動
作を指定することができ、データの信頼性が向上し、デ
ータ更新作業量も減少する。
Further, by applying the referential integrity to the relational database of the generation management type, the referential constraint operation can be designated, the reliability of the data is improved, and the amount of data updating work is reduced.

【0039】さらに、リレーショナルデータベースに開
始日、廃止日の管理、参照整合性の管理をまかせること
により、同一内容の各世代のタプルをレコードとしてと
らえ、レコードに対する更新命令を行うことにより、複
数のタプル変更を簡単に、確実に実行できる。
Furthermore, by allowing the relational database to manage the start date, the abolition date, and the management of referential integrity, tuples of each generation having the same content are regarded as records, and an update command is issued to the records to generate a plurality of tuples. Make changes easily and reliably.

【0040】[0040]

【発明の効果】以上詳述したようにこの発明によれば、
レコード単位での世代管理を行うリレーショナルデータ
ベースにおいて、参照整合性を実現することができるリ
レーショナルデータベースの管理システムを提供でき
る。
As described above in detail, according to the present invention,
A relational database management system capable of realizing referential integrity in a relational database that manages generations in record units can be provided.

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

【図1】この発明の一実施例におけるリレーショナルデ
ータベースの管理システムの構成を説明するための概略
図。
FIG. 1 is a schematic diagram for explaining the configuration of a relational database management system according to an embodiment of the present invention.

【図2】パーソナルコンピータの内部構成を示すブロッ
ク図。
FIG. 2 is a block diagram showing an internal configuration of a personal computer.

【図3】参照整合性テーブルの記憶例を示す図。FIG. 3 is a diagram showing a storage example of a referential integrity table.

【図4】駅データに対するリレーショナルデータベース
を説明するための図。
FIG. 4 is a diagram for explaining a relational database for station data.

【図5】路線データに対するタプル群を説明するための
図。
FIG. 5 is a diagram for explaining tuple groups for route data.

【図6】路線データの変更処理を説明するためのフロー
チャート。
FIG. 6 is a flowchart illustrating a route data change process.

【図7】路線データの変更内容を説明するための図。FIG. 7 is a diagram for explaining changes in route data.

【図8】駅データの変更内容を説明するための図。FIG. 8 is a diagram for explaining changes in station data.

【図9】路線データと駅データの各タプルの整合性を説
明するための図。
FIG. 9 is a diagram for explaining the consistency of each tuple of route data and station data.

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

1…パーソナルコンピータ 2…フロッピーディスク 3、〜…駅務機器 11…制御部 HD…ハードディスク 22…参照整合性テーブル 22a、22b、〜…リレーショナルデータベース DESCRIPTION OF SYMBOLS 1 ... Personal computer 2 ... Floppy disk 3, ... Station work equipment 11 ... Control part HD ... Hard disk 22 ... Reference consistency table 22a, 22b ...

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 属性とタプルと有効日付とからなる3次
元の複数のリレーショナルデータベースと、 上記各リレーショナルデータベースの参照整合性を記憶
している参照整合性テーブルと、 上記リレーショナルデータベースの更新内容とその有効
日付とを指定する指定手段と、 この指定手段により指定された更新内容に基づいて対象
となるリレーショナルデータベースの記憶内容を上記有
効日付を基準にして更新し、上記更新内容に基づいて上
記参照整合性テーブルから参照整合性のあるリレーショ
ナルデータベースを判断し、この判断した参照整合性の
あるリレーショナルデータベースの記憶内容を上記有効
日付を基準にして更新する処理手段と、 を具備したことを特徴とするリレーショナルデータベー
スの管理システム。 【請求項1】 属性と路線名とこの路線名の有効日付と
からなる3次元の複数のリレーショナルデータベース
と、 上記各リレーショナルデータベースの参照整合性を記憶
している参照整合性テーブルと、 上記リレーショナルデータベースの更新内容とその有効
日付とを指定する指定手段と、 この指定手段により指定された更新内容に基づいて対象
となるリレーショナルデータベースの記憶内容を上記有
効日付を基準にして更新し、上記更新内容に基づいて上
記参照整合性テーブルから参照整合性のあるリレーショ
ナルデータベースを判断し、この判断した参照整合性の
あるリレーショナルデータベースの記憶内容を上記有効
日付を基準にして更新する処理手段と、 を具備したことを特徴とするリレーショナルデータベー
スの管理システム。
1. A plurality of three-dimensional relational databases consisting of attributes, tuples, and effective dates, a referential integrity table storing referential integrity of each of the relational databases, an update content of the relational database, and its contents. Based on the effective date, the storage means of the target relational database is updated based on the update means specified by the specifying means and the update content specified by the specifying means, and the reference matching is performed based on the update content. A relational database having a referential integrity is determined from the compatibility table, and processing means for updating the stored content of the determined referential integrity relational database based on the valid date is provided. Database management system. 1. A plurality of three-dimensional relational databases composed of attributes, route names, and effective dates of the route names, a referential integrity table storing referential integrity of each of the relational databases, and the relational database. Specifying means for designating the update contents and the effective date thereof, and based on the update contents designated by the specifying means, the stored contents of the relational database to be updated are updated based on the effective date, and Based on the referential integrity table, a relational database having referential integrity is determined based on the validity date, and the stored content of the determined relational database having referential integrity is updated based on the valid date. A relational database management system.
JP6155974A 1994-07-07 1994-07-07 Management system for relational data base Pending JPH0822405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6155974A JPH0822405A (en) 1994-07-07 1994-07-07 Management system for relational data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6155974A JPH0822405A (en) 1994-07-07 1994-07-07 Management system for relational data base

Publications (1)

Publication Number Publication Date
JPH0822405A true JPH0822405A (en) 1996-01-23

Family

ID=15617606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6155974A Pending JPH0822405A (en) 1994-07-07 1994-07-07 Management system for relational data base

Country Status (1)

Country Link
JP (1) JPH0822405A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003044557A (en) * 2001-08-02 2003-02-14 Hitachi Information Systems Ltd Calculating apparatus for information on use of service of transit system, calculating method therefor and processing program for the method
JP2010198200A (en) * 2009-02-24 2010-09-09 Nippon Telegr & Teleph Corp <Ntt> Device and method for profile information management, and program
JP2014038615A (en) * 2012-08-20 2014-02-27 International Business Maschines Corporation Gap detection in temporally unique index in relational database

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003044557A (en) * 2001-08-02 2003-02-14 Hitachi Information Systems Ltd Calculating apparatus for information on use of service of transit system, calculating method therefor and processing program for the method
JP2010198200A (en) * 2009-02-24 2010-09-09 Nippon Telegr & Teleph Corp <Ntt> Device and method for profile information management, and program
JP2014038615A (en) * 2012-08-20 2014-02-27 International Business Maschines Corporation Gap detection in temporally unique index in relational database

Similar Documents

Publication Publication Date Title
US5564113A (en) Computer program product for rendering relational database management system differences transparent
US6442543B1 (en) Method and apparatus for changing temporal database information
US20030154197A1 (en) Flexible relational data storage method and apparatus
CA2526045C (en) Complex data access
US7401097B1 (en) System and method for creating compilations of content
EP0633538A2 (en) Relational database management system
US7617211B2 (en) System and method for automatically synchronizing security-relevant information between a relational database and a multidimensional database
US6470343B1 (en) Method, computer program product, system, and data structure for database data model extension
JP5033322B2 (en) Information management method and apparatus using connection relation information
CA2253345C (en) Relational database compiled/stored on a memory structure
US8478791B2 (en) Interoperability across heterogeneous taxonomies
JPH08185349A (en) Data security device
JPH0822405A (en) Management system for relational data base
US7433882B2 (en) Data management system and computer program
JP2007265250A (en) Identifier issuing system, program and identifier issuing method
JPH09319629A (en) Database design supporting tool
JP2906638B2 (en) Database search system
JP3264344B2 (en) Data file management device
JP2546101B2 (en) Distributed database update method
JPH10326213A (en) Data access controller and program record medium for the same
JP2000187603A (en) System and device for supporting data base design/ maintenance
Bitelli et al. Levelling data management for the monitoring of land subsidence
JP2692196B2 (en) Test data editing method
JPH05241800A (en) Total control system for data base, file, and program
JPH10307743A (en) Method and device for flexible retrieval from plural data bases