JPH04139546A - Relational data base device - Google Patents

Relational data base device

Info

Publication number
JPH04139546A
JPH04139546A JP2264008A JP26400890A JPH04139546A JP H04139546 A JPH04139546 A JP H04139546A JP 2264008 A JP2264008 A JP 2264008A JP 26400890 A JP26400890 A JP 26400890A JP H04139546 A JPH04139546 A JP H04139546A
Authority
JP
Japan
Prior art keywords
attribute value
pointer
attribute
relational
data
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
JP2264008A
Other languages
Japanese (ja)
Inventor
Iwao Oe
大江 巌
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2264008A priority Critical patent/JPH04139546A/en
Publication of JPH04139546A publication Critical patent/JPH04139546A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To simply add and delete the data by providing a pointer which shows an attribute value or plural attribute value records as the value of an attribute value field of a relational table. CONSTITUTION:A pointer P is provided to show an attribute value or plural attribute value records as the value of an attribute value field of a relational table alpha. Thus a relational data base device is obtained and applies an attribute value and the pointer with switching according to a fact whether 2 corresponding attribute values are available or not. In other words, the pointer P can point the attribute value records beta and gamma in the attribute value field of the table alpha. As a result, the non-regulated data is easily processed and at the same time the number of necessary storage areas is decreased.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、関係データベースの構築方法に関する。[Detailed description of the invention] Industrial applications The present invention relates to a method for constructing a relational database.

従来の技術 近年、データベースが広く活用され、その構成が重要課
題の一つである。
BACKGROUND OF THE INVENTION In recent years, databases have been widely used, and their configuration is one of the important issues.

従来、関係型コード情報蓄積装置では、第4図(a)に
示すように1つの属性値に対応する他の属性値が複数個
存在する非正規形のデータ構造を関係表として扱うこと
はできず、あらかじめ第4図中に示すような正規形に変
換する必要があった。
Conventionally, relational code information storage devices cannot handle a non-normal data structure in which one attribute value has a plurality of other attribute values as shown in FIG. 4(a) as a relational table. First, it was necessary to convert it into a normal form as shown in FIG. 4 in advance.

発明が解決しようとする課題 このような従来のデータベース作成者は関係表の作成に
先立って非正規形データを正規形データに直すという手
間をかけなければならなかった。
Problems to be Solved by the Invention Conventional database creators have had to take the trouble of converting non-normal form data into normal form data prior to creating relational tables.

また、正規形データは非正規形データに比べてデータ量
が多くなる傾向があるため、更新・挿入などのデータ処
理を行う場合に設定すべき項目が多くなって処理が煩雑
になシやすく、加えて使用する記憶領域も大きくなると
いう問題があった。
In addition, normal form data tends to have a larger amount of data than non-normal form data, so when performing data processing such as updating or inserting, there are many items that need to be set, which tends to make the process complicated. In addition, there is a problem in that the storage area used becomes large.

本発明は上記の課題を解決するもので、非正規形データ
に対するデータ処理作業を簡易に行えるとともに、使用
する記憶領域も削減できる関係データベーヌ装置を提供
することを目的としている。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a relational database device that can easily perform data processing operations on non-normal data and can also reduce the amount of storage space used.

課題を解決するための手段 本発明は上記目的を達成するために、関係表の属性値フ
ィールドの値として、一つの属性値または、複数の属性
値レコードへのポインタラ与工、該当する属性値が二つ
以上であるか否かによって一つの属性値とポインタを切
り替えて与える関係データベーヌ装置とする。
Means for Solving the Problems In order to achieve the above object, the present invention provides a pointer to one attribute value or a plurality of attribute value records, and the corresponding attribute value is set as the value of the attribute value field of the relationship table. This is a relational data bene device that switches and provides one attribute value and a pointer depending on whether there are two or more.

作  用 本発明は上記構成により、ポインタが関係表C属性値フ
ィールドにおける複数の属性値レコードへのポインタと
なる。
Effect: With the above configuration, the present invention allows a pointer to point to a plurality of attribute value records in the attribute value field of the relationship table C.

いて、図面を参照しながら説明する。This will be explained with reference to the drawings.

第1図は本発明の一実施例データベース装置における関
係データベースの構成を示す模式図である。図において
、αは関係表、β、rは複数属性値レコード、’11 
’ C21’ bll ’ b12 ’ ”21 ’C
111’21 I C22+ ’23  は属性値、p
p * P rは複数属性値レコードへのポインタであ
る。第2図は関係表への1タプル挿入の処理を示すフロ
ーチャートであシ、第3図は1タプル削除の処理を示す
フローチャートである。第2図、第3図において、ステ
ップ1ないし15は処理の詳細を示す上記構成において
、その動作を説明する。初めに関係表へのタプル挿入の
処理について説明する。
FIG. 1 is a schematic diagram showing the configuration of a relational database in a database device according to an embodiment of the present invention. In the figure, α is a relationship table, β, r are multiple attribute value records, '11
'C21' bll 'b12' ”21 'C
111'21 I C22+ '23 is the attribute value, p
p*Pr is a pointer to a multiple attribute value record. FIG. 2 is a flowchart showing the process of inserting a 1-tuple into a relational table, and FIG. 3 is a flowchart showing the process of deleting a 1-tuple. In FIG. 2 and FIG. 3, steps 1 to 15 will explain the operation in the above configuration showing details of processing. First, the process of inserting a tuple into a relational table will be explained.

第1図(−)は属性値に重複の無い正規化された関係表
であシ、通常の関係データベースと同じ構造になってい
る。この関係表αに属性値が” ”111b12.C1
1〕であるようなタプルを挿入する場合を考える。第2
図のステップ1において一致する属性値が”11および
’11であると判断され、ステップ2で〔’11 ” 
11 t cll −’のタプルを取シ出し、さらにヌ
テッブ3において、一致した属性値a11 + ’11
以外の属性値フィールドの値、すなわちbllを取り出
す。次にステップ4でbllは複数属性値レコードへの
ポインタではないと判断され、ステップ6においてbl
lとb12から成る複数属性値レコードβを作成し、レ
コードへのポインタpβをbllのあったところに書き
込む。次にステップ7において金属性値終了と判断され
、処理を終了する。この段階で関係表の構造は第1図(
b)のようになる。次にこの関係表に〔C21’ b2
1 、’22−’を挿入すると、上記と同様な動作にょ
シ、第2図の1.2,3,4.6および7の処理ステッ
プを経て第1図(C)の構造になる。この関係表にさら
に〔C21”21”23”のタプルを追加シテ挿入シた
場合ば1,2および3の処理ステップの次にステップ4
でp、が複数属性値レコードへのポインタであると判断
され、ステップ6で複数属性値レコードγにC23を付
は加えた後にステップ7を経て、第1図((1)の構造
となる。
FIG. 1 (-) is a normalized relational table with no duplication of attribute values, and has the same structure as a normal relational database. In this relational table α, the attribute value is “”111b12. C1
1]. Consider the case where a tuple is inserted. Second
In step 1 of the diagram, it is determined that the matching attribute values are "11" and "11", and in step 2, it is determined that the matching attribute values are "11" and "11".
11 t cll -' is extracted, and in Nuteb 3, the matching attribute value a11 + '11
The value of the attribute value field other than bll is extracted. Next, in step 4, it is determined that bll is not a pointer to a multiple attribute value record, and in step 6, bll
A multiple attribute value record β consisting of l and b12 is created, and a pointer pβ to the record is written where bll was. Next, in step 7, it is determined that the metallicity value has ended, and the process ends. At this stage, the structure of the relationship table is shown in Figure 1 (
b) Next, in this relation table [C21' b2
1 and '22-', the structure shown in FIG. 1(C) is obtained through the same operation as above and the processing steps 1.2, 3, 4.6, and 7 in FIG. 2. If the tuple [C21"21"23] is further inserted into this relational table, step 4 will be performed after the processing steps 1, 2, and 3.
It is determined that p is a pointer to a multi-attribute value record, and in step 6, C23 is added to the multi-attribute value record γ, followed by step 7, resulting in the structure shown in FIG. 1 ((1)).

次に第4図(、i)の構造を持つ関係表から〔C211
”21 、’23)のタプルを削除する場合を説明する
Next, from the relational table with the structure shown in Figure 4 (, i), [C211
The case of deleting the tuple "21, '23)" will be explained.

第3図のステップ9において削除すべきタプルを見ツケ
、ステップ1oで該当するタプルはポインタp、をたど
って見つけたと判断され、ステップ11に進む。ステッ
プ11ではポインタp、の指し示す複数属性値レコード
γから023を削除し、ステップ12ではγの残シの属
性値がまだ2つなのでステップ14へ移行し、これで金
属性値終了なので処理を終わる。この段階で関係表の構
造は第1図(C)のようになる。さらに、(C)の関係
表から〔C21’ ”21 t C22〕のタプルを削
除する場合、処理は第3図のステップ9,1oおよび1
1と進み、ステップ12で複数属性値レコード内の属性
値レコード内の属性値が’21の1つだけであると判断
され、ステップ13でp、のあったフィールドにC21
を書き込んでγを削除し、ステップ14を経て第1図0
))の構造となる。0))からC”111b12101
1 ”のタプルを削除する場合も同様の処理手順を経て
、第1図(−)の構造となる。
In step 9 of FIG. 3, the tuple to be deleted is found, and in step 1o it is determined that the corresponding tuple has been found by following the pointer p, and the process proceeds to step 11. In step 11, 023 is deleted from the multiple attribute value record γ pointed to by pointer p, and in step 12, there are still two remaining attribute values of γ, so the process moves to step 14, and this ends the metallic value, so the process ends. . At this stage, the structure of the relational table becomes as shown in FIG. 1(C). Furthermore, when deleting the tuple [C21'"21 t C22] from the relation table in (C), the process is performed in steps 9, 1o and 1 in FIG.
1, and in step 12 it is determined that there is only one attribute value '21' in the attribute value record in the multiple attribute value record, and in step 13 C21 is added to the field where p was.
, delete γ, go through step 14, and get 0 in Figure 1.
)) structure. 0)) to C”111b12101
When deleting the tuple 1'', the same processing procedure is followed, resulting in the structure shown in FIG. 1 (-).

このように、本発明の実施例の関係データベース装置に
よれば、関係表の属性値フィールドの値として、一つの
属性値または複数属性値レコードを示すポインタを与え
、その与え方は該当する属性値が二つ以上のときに前記
ポインタを与えるものとすることにより、フィールドの
記憶領域を増加させることなく対応出来、データの追加
および削除処理も簡単に機械処理でできる。
As described above, according to the relational database device of the embodiment of the present invention, a pointer indicating one attribute value or a plurality of attribute value records is given as the value of the attribute value field of the relational table, and the way of giving is the pointer that indicates the corresponding attribute value. By providing the pointer when there are two or more, it is possible to cope without increasing the storage area of the field, and data addition and deletion processing can be easily performed by machine processing.

発明の効果 以上の実施例から明らかなように、本発明は関係表の属
性値フィールドの属性値として、一つの属性値、または
複数の属性値のレコードを示すポインタを与え、前記の
与え方は属性値が一つのときはどの属性値を与え、属性
値が複数個のときにはその属性値群を記載したレコード
を示すポインタを与えるものとすることで、複数の属性
値があるときでもフィールドの記憶領域を幅加させずに
対応でき、データの追加および削除も機械処理で簡単に
できる。
Effects of the Invention As is clear from the above embodiments, the present invention provides a pointer indicating a record of one attribute value or a plurality of attribute values as an attribute value in an attribute value field of a relationship table. When there is one attribute value, which attribute value is given, and when there are multiple attribute values, a pointer indicating the record containing the attribute value group is given, so that the field can be memorized even when there are multiple attribute values. It can be handled without increasing the width of the area, and data can be easily added and deleted using machine processing.

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

第1図は本発明の一実施例の関係データベース装置にお
けるデータの配列を示す模式図、第2図は本発明の一実
施例の関係データベース装置におけるデータの追加処理
の動作を示すフローチャート、第3図は本発明の一実施
例の関係データベース装置におけるデータの削除処理の
動作を示すフローチャート、第4図は従来の関係データ
ベース装置における複数の属性値に対するデータの配列
を示す僕弐図である。 α・・・・・・関係表、A、BおよびC・・・・・・属
性、a。 bおよびC・・・・・一つの属性値、p・・・・・ポイ
ンタ、βおよびγ・・・・・・複数属性値レコ−ド。 代理人の氏名 弁理士 小鍜治  明 ほか2名菓 図 (α) (C) べ−−間イjし^し くb) A、3.c−、−J栓 αbx −属性値 P−コ;゛イJり (d> 第 図 第 (CL) 因 (b)
FIG. 1 is a schematic diagram showing a data arrangement in a relational database device according to an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of data addition processing in a relational database device according to an embodiment of the present invention, and FIG. FIG. 4 is a flowchart showing the operation of data deletion processing in a relational database device according to an embodiment of the present invention, and FIG. 4 is a second diagram showing the arrangement of data for a plurality of attribute values in a conventional relational database device. α...Relationship table, A, B and C...Attribute, a. b and C...one attribute value, p...pointer, β and γ...multiple attribute value record. Name of agent: Patent attorney Akira Okaji and two others c-, -J plug αbx - attribute value P-ko;

Claims (1)

【特許請求の範囲】[Claims] 関係表の属性値フィールドの値として、一つの属性値、
または複数属性値レコードへのポインタを与え、該当す
る属性値が二つ以上であるか否かによって前記一つの属
性値または前記ポインタを切り替えて与えるようにして
なる関係データベース装置。
One attribute value, as the value of the attribute value field of the relationship table,
Alternatively, a relational database device provides a pointer to a plurality of attribute value records, and switches and provides the one attribute value or the pointer depending on whether there are two or more corresponding attribute values.
JP2264008A 1990-10-01 1990-10-01 Relational data base device Pending JPH04139546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2264008A JPH04139546A (en) 1990-10-01 1990-10-01 Relational data base device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2264008A JPH04139546A (en) 1990-10-01 1990-10-01 Relational data base device

Publications (1)

Publication Number Publication Date
JPH04139546A true JPH04139546A (en) 1992-05-13

Family

ID=17397268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2264008A Pending JPH04139546A (en) 1990-10-01 1990-10-01 Relational data base device

Country Status (1)

Country Link
JP (1) JPH04139546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666527A (en) * 1992-12-28 1997-09-09 Fujitsu Limited System for dynamically changing logical data structure of database
JP2013037585A (en) * 2011-08-09 2013-02-21 Fujitsu Ltd Information processor, information processing method and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020241A (en) * 1983-07-15 1985-02-01 Toshiba Corp Information retrieval device
JPS6024657A (en) * 1983-07-20 1985-02-07 Fujitsu Ltd Data storing method
JPH01241640A (en) * 1988-03-24 1989-09-26 Matsushita Electric Ind Co Ltd Data base device and data base managing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020241A (en) * 1983-07-15 1985-02-01 Toshiba Corp Information retrieval device
JPS6024657A (en) * 1983-07-20 1985-02-07 Fujitsu Ltd Data storing method
JPH01241640A (en) * 1988-03-24 1989-09-26 Matsushita Electric Ind Co Ltd Data base device and data base managing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666527A (en) * 1992-12-28 1997-09-09 Fujitsu Limited System for dynamically changing logical data structure of database
JP2013037585A (en) * 2011-08-09 2013-02-21 Fujitsu Ltd Information processor, information processing method and program

Similar Documents

Publication Publication Date Title
Codd Normalized data base structure: A brief tutorial
US6484181B2 (en) Method and system for handling foreign key update in an object-oriented database environment
EP0470194A1 (en) Method and apparatus for manipulating digital video data
US6289355B1 (en) Fast log apply
ZA200100187B (en) Value-instance-connectivity computer-implemented database.
EP0113352A1 (en) Database management system for controlling concurrent access to a database.
US7181481B2 (en) System and method for concurrently reorganizing logically related LOB table spaces
JPH04139546A (en) Relational data base device
JPH0193843A (en) System for coupling table
JP3012254B2 (en) List information transmission method
CA2322603C (en) Optimizing updatable scrollable cursors in database systems
JP3555542B2 (en) Group number setting device and group number setting method
KR0165510B1 (en) Table of database management system
JPH0736737A (en) Method for generating test data
JPH07219824A (en) Editing method for relational data base and device therefor
JPH05334364A (en) Method for preparing retrieval condition expression
JPH07160559A (en) Saving medium merge system
JPH0264768A (en) Index system for data file
JPH04335471A (en) Data base reference processing system
JPS63214831A (en) Control method for file in work station
JPH01287731A (en) Data base device and data base managing method
JPH0496114A (en) Operating state retrieving system
JPH0561751A (en) Journal acquiring method
JPH0962708A (en) Data indexing method
Tutorial Using Suprlink to Combine Data Files without Keys