JPH04266138A - Update processing system - Google Patents

Update processing system

Info

Publication number
JPH04266138A
JPH04266138A JP3026995A JP2699591A JPH04266138A JP H04266138 A JPH04266138 A JP H04266138A JP 3026995 A JP3026995 A JP 3026995A JP 2699591 A JP2699591 A JP 2699591A JP H04266138 A JPH04266138 A JP H04266138A
Authority
JP
Japan
Prior art keywords
input
updated
dictionary
information
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3026995A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Kawamura
川村 和義
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP3026995A priority Critical patent/JPH04266138A/en
Publication of JPH04266138A publication Critical patent/JPH04266138A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To assure the matching properties of a data base without overlooking a necessary table despite a large updated variable by referring to a dictionary. CONSTITUTION:Following are provided: an input means 1 to interactively input a parameter consisting of an updated item name and the values set before and after the updating together with a dictionary storage means 2 which stores the information necessary for control of a relational data base, a dictionary reference means 3 which inputs the information on a table including the updated item name through the means 2 based on the parameter inputted from the means 1, a relational data base storage means 4 which has a data base consisting of the table and the table defining information, a table selection means 5 which selects a table to be updated with reception of the information on the means 3 and inputs the table defining information through the means 4, a record retrieving means 6 which obtains a record to be updated based on the information received from both means 1 and 5, and a record updating means 7 which updates the record obtained by the means 6 into the updated value inputted from the means 1.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、関係データベースに格
納されている表を対話的に更新する更新処理方式に関し
、特に更新するデータが複数の表に格納されている場合
に複数の表のデータを一括して更新する更新処理方式に
関する。
[Field of Industrial Application] The present invention relates to an update processing method for interactively updating tables stored in a relational database, and in particular, when data to be updated is stored in multiple tables, data in multiple tables is This invention relates to an update processing method for updating all files at once.

【0002】0002

【従来の技術】従来、更新処理方式は、利用者が関係デ
ータベースを管理するための情報が格納されているディ
クショナリを調査することにより更新する必要がある表
を調べ、更新が必要なすべての表について表ごとにデー
タを更新する必要があった。
[Prior Art] Conventionally, in the update processing method, a user examines a dictionary that stores information for managing a relational database to find out which tables need to be updated, and then checks all the tables that need to be updated. It was necessary to update the data for each table.

【0003】0003

【発明が解決しようとする課題】しかし、上述した従来
の更新処理方式は更新を必要とする表を利用者が調査し
なければならず、また、表ごとにデータを更新していた
ため、利用者の操作が複雑になり、特に更新を必要とす
る表が多い場合は更新を必要とする表を見落とし易いと
いう問題点がある。
[Problems to be Solved by the Invention] However, in the conventional update processing method described above, the user has to investigate the table that requires updating, and the data is updated for each table. The problem is that the operations become complicated, and especially when there are many tables that require updating, it is easy to overlook tables that require updating.

【0004】本発明の目的は、更新を必要とする表をす
べて検出し、一括して更新処理を行うことができる更新
処理方式を提供することにある。
An object of the present invention is to provide an update processing method that can detect all tables that require updating and perform update processing all at once.

【0005】[0005]

【課題を解決するための手段】本発明の更新処理方式は
、関係データベースに格納されているデータを対話的に
更新する更新処理方式において、更新する項目の項目名
と更新前の値および更新後の値で構成されたパラメータ
とを対話的に入力する入力手段と、前記関係データベー
スを管理するための情報から構成されているディクショ
ナリを記憶するディクショナリ記憶手段と、前記ディク
ショナリ記憶手段に記憶されているディクショナリから
前記入力手段により入力された前記更新する項目の項目
名を含む表の情報を入力するディクショナリ参照手段と
、前記表と表定義情報とで構成する関係データベースを
記憶する関係データベース記憶手段と、前記ディクショ
ナリ参照手段の入力する表の情報から更新が必要な表を
選択し前記関係データベースに格納されている表定義情
報を入力する表選別手段と、前記表選別手段の入力する
表定義情報と前記入力手段により入力された更新前の値
から更新を必要とするレコードを求めるレコード検索手
段と、前記表選別手段の入力する表定義情報をもとに前
記レコード検索手段により元まったレコードを前記入力
手段の入力する更新後の値に更新するレコード更新手段
とを含む構成である。
[Means for Solving the Problems] The update processing method of the present invention is an update processing method for interactively updating data stored in a relational database, which includes the item name of the item to be updated, the value before the update, and the value after the update. an input means for interactively inputting a parameter made up of values, a dictionary storage means for storing a dictionary made up of information for managing the relational database, and a dictionary storage means stored in the dictionary storage means. a dictionary reference means for inputting table information including the item name of the item to be updated inputted by the input means from a dictionary; and a relational database storage means for storing a relational database constituted by the table and table definition information; table selection means for selecting tables that need to be updated from table information input by the dictionary reference means and inputting table definition information stored in the relational database; record search means for finding records that require updating from the pre-update values input by the input means; and record search means for inputting records based on the table definition information input by the table selection means. The configuration includes record updating means for updating to updated values input by the means.

【0006】[0006]

【実施例】次に本発明の一実施例について図面を参照し
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of the present invention will be described with reference to the drawings.

【0007】図1は本発明の一実施例のブロック図であ
って、複数の表を一括更新する部分の構成を示している
FIG. 1 is a block diagram of an embodiment of the present invention, showing the configuration of a portion that updates a plurality of tables at once.

【0008】すなわち、本実施例では、更新する項目の
項目名と更新前の値および更新後の値で構成されたパラ
メータを対話的に入力する入力手段1と、関係データベ
ースを管理するための情報から構成されているディクシ
ョナリを記憶するディクショナリ記憶手段2と、ディク
ショナリ記憶手段2に記憶されているディクショナリか
ら入力手段1により入力された項目の項目名を含む表の
情報を入力するディクショナリ参照手段3と、表と表定
義情報から構成されている関係データベースを記憶する
関係データベース記憶手段4と、ディクショナリ参照手
段3により入力された表の情報から更新が必要な表を選
択し、関係データベース記憶手段4に格納されている表
定義情報を入力する表選別手段5と、表選別手段5によ
り入力された表定義情報と入力手段1により入力された
更新前の値から更新を必要とするレコードを求めるレコ
ード検索手段6と、表選別手段5により入力された表定
義情報をもとにレコード検索手段6により求まったレコ
ードを入力手段1により入力された更新後の値に更新す
るレコード更新手段7とを備えている。
That is, in this embodiment, an input means 1 for interactively inputting a parameter consisting of an item name of an item to be updated, a value before updating, and a value after updating, and information for managing a relational database are provided. a dictionary storage means 2 for storing a dictionary composed of , and a dictionary reference means 3 for inputting table information including item names of items input by the input means 1 from the dictionary stored in the dictionary storage means 2; , a relational database storage means 4 that stores a relational database composed of tables and table definition information, and a table that needs to be updated from the table information inputted by the dictionary reference means 3, and the table that needs to be updated is stored in the relational database storage means 4. A table selection means 5 for inputting stored table definition information, and a record search for finding records that require updating from the table definition information inputted by the table selection means 5 and the pre-update values inputted by the input means 1. means 6, and record updating means 7 for updating the record found by the record searching means 6 based on the table definition information inputted by the table selection means 5 to the updated value inputted by the inputting means 1. There is.

【0009】表1はディクショナリ記憶手段により記憶
されているディクショナリを示す表であり、また表2は
データベース記憶手段により記憶されている関係データ
ベースに格納されている表である。なお表1および表2
は本実施例による複数の表の一括更新処理の実施前の状
態を示している。
Table 1 is a table showing dictionaries stored by dictionary storage means, and Table 2 is a table stored in a relational database stored by database storage means. Furthermore, Table 1 and Table 2
shows the state before the batch update process for multiple tables is performed according to this embodiment.

【0010】0010

【0011】表1および表2の例では、社員表および所
属表を構成する5個の項目に関する情報がディクショナ
リに格納されており、6件のレコードが格納されている
社員表および4件のレコードが格納されている所属表が
人事データベースに格納されている。
[0011] In the examples of Tables 1 and 2, information regarding five items constituting the employee table and affiliation table is stored in the dictionary, and the employee table stores six records and the employee table stores four records. The affiliation table in which the personnel are stored is stored in the personnel database.

【0012】次に表1および表2に示す関係データベー
スに対し、所属コードの002を005に変更する場合
の複数の表の一括更新処理について第2図のフローチャ
ートを用いて説明する。
Next, the batch update process for a plurality of tables when changing the affiliation code 002 to 005 for the relational databases shown in Tables 1 and 2 will be explained using the flowchart shown in FIG.

【0013】ステップS1は入力手段1における処理を
示し、ステップS2はディクショナリ参照手段3におけ
る処理を示し、ステップS3,S4は表選別手段5にお
ける処理を示し、ステップ5はレコード検索手段6にお
ける処理を示し、ステップS6,S7はレコード更新手
段7における処理を示す。
Step S1 shows the processing in the input means 1, step S2 shows the processing in the dictionary reference means 3, steps S3 and S4 show the processing in the table selection means 5, and step 5 shows the processing in the record search means 6. , and steps S6 and S7 indicate processing in the record updating means 7.

【0014】先ず入力手段1における処理を開始する。 すなわち、ステップS1では更新する項目の項目名であ
る所属コード、更新前の値である002、更新後の値で
ある005から構成されたパラメータを対話的に入力す
る。
First, processing in the input means 1 is started. That is, in step S1, a parameter consisting of an affiliation code which is the item name of the item to be updated, 002 which is the value before updating, and 005 which is the value after updating is input interactively.

【0015】ステップS2では、ディクショナリから所
属コードを含む表の情報を入力する。表1を参照すると
所属コードを含む表は人事データベースに格納されてい
る社員表と所属表であることがわかる。
In step S2, table information including affiliation codes is input from the dictionary. Referring to Table 1, it can be seen that the tables containing affiliation codes are the employee table and affiliation table stored in the personnel database.

【0016】ステップS3では更新を必要とする表があ
るかどうかを判断する。ステップS2により更新を必要
とする社員表,所属表が存在するため、ステップS4に
処理を進める。
[0016] In step S3, it is determined whether there is any table that requires updating. Since there are employee tables and affiliation tables that require updating in step S2, the process advances to step S4.

【0017】ステップS4ではステップS5以降の処理
で必要になる表の定義情報を関係データベースから入力
する。すなわち先ず人事データベースに格納されている
社員表の定義情報を関係データベースから入力する。
[0017] In step S4, table definition information required for the processing from step S5 onwards is input from the relational database. That is, first, the definition information of the employee table stored in the personnel database is input from the relational database.

【0018】ステップS5では、ステップS1で入力し
た更新前の値より更新を必要とするレコードを社員表か
ら求める。すなわち、所属コードが002であるレコー
ドR12,R14が求まる。
In step S5, records that require updating are determined from the employee table based on the pre-update values input in step S1. That is, records R12 and R14 whose affiliation code is 002 are found.

【0019】ステップS6ではレコードR12,R14
が存在するのでステップS7に処理を進める。
[0019] In step S6, records R12 and R14
exists, the process advances to step S7.

【0020】ステップS7では先ずレコードR12の所
属コードをステップS4で入力した社員表の定義情報に
よりステップS1で入力した更新後の値である005に
変更し、ステップS6に処理を進める。
In step S7, the affiliation code of record R12 is first changed to 005, which is the updated value input in step S1, based on the employee table definition information input in step S4, and the process proceeds to step S6.

【0021】ステップS6では更新を必要とするレコー
ドR14が存在するのでステップS7に処理を進める。
[0021] In step S6, since there is a record R14 that requires updating, the process advances to step S7.

【0022】ステップS7ではレコードR14の所属コ
ードをステップS4で入力した社員表の表定義情報によ
りステップS1で入力した更新後の値である005に変
更し、ステップS6に処理を進める。
In step S7, the affiliation code of record R14 is changed to 005, which is the updated value input in step S1, based on the table definition information of the employee table input in step S4, and the process proceeds to step S6.

【0023】ステップS6では更新を必要とするレコー
ドが存在しないのでステップS3に処理を進める。
[0023] In step S6, since there is no record that requires updating, the process advances to step S3.

【0024】ステップS3では更新を必要とする表があ
るかどうかを判断する。ここではまだ所属表が存在する
ため、ステップS4に処理を進める。
[0024] In step S3, it is determined whether there is any table that requires updating. Since the affiliation table still exists here, the process advances to step S4.

【0025】ステップS4ではステップS5以降の処理
で必要になる表の定義情報を関係データベースから入力
する。すなわち人事データベースに格納されている所属
表の定義情報を関係データベースから入力する。
[0025] In step S4, table definition information required for the processing from step S5 onwards is input from the relational database. That is, the definition information of the affiliation table stored in the personnel database is input from the relational database.

【0026】ステップS5では、ステップS1で入力し
た更新前の値から更新を必要とするレコードを所属表か
ら求める。すなわち、所属コードが002であるレコー
ドR22が求まる。
In step S5, records that require updating are determined from the affiliation table based on the pre-update values input in step S1. That is, record R22 whose affiliation code is 002 is found.

【0027】ステップS6ではレコードR22が存在す
るのでステップS7に処理を進める。
In step S6, since record R22 exists, the process advances to step S7.

【0028】ステップS7ではレコードR22の所属コ
ードをステップS4で入力した所属表の定義情報により
ステップS1で入力した更新後の値である005に変更
し、ステップS6に処理を進める。
In step S7, the affiliation code of record R22 is changed to 005, which is the updated value input in step S1, based on the definition information of the affiliation table input in step S4, and the process proceeds to step S6.

【0029】ステップS6では更新を必要とするレコー
ドが存在しないのでステップS3に処理を進める。
In step S6, since there is no record that requires updating, the process advances to step S3.

【0030】ステップS3では更新を必要とする表が残
っていないので複数表の一括更新処理を終了する。
[0030] In step S3, since there are no remaining tables that require updating, the batch update process for multiple tables is ended.

【0031】[0031]

【発明の効果】以上説明したように本発明は複数の表を
一括して更新するので、利用者の操作が簡単になり、特
に更新を必要とする表が多い場合でも、ディクショナリ
を参照することにより更新を必要とする表をすべて網羅
するため、更新を必要とする表を見落すことがなく、デ
ータベースの整合性を保証できるという効果がある。
[Effects of the Invention] As explained above, the present invention updates multiple tables at once, which simplifies operations for the user, and makes it easier to refer to the dictionary even when there are many tables that require updating. Because this method covers all tables that require updating, no table that requires updating is overlooked, and the consistency of the database can be guaranteed.

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

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

【図2】複数の表の一括更新処理の流れをしめすフロー
チャートである。
FIG. 2 is a flowchart showing the flow of batch update processing for multiple tables.

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

1    入力手段 2    ディクショナリ記憶手段 3    ディクショナリ参照手段 4    関係データベース記憶手段 5    表選別手段 6    レコード検索手段 7    レコード更新手段 1 Input means 2 Dictionary storage means 3 Dictionary reference means 4. Relational database storage means 5 Table sorting means 6 Record search means 7 Record update means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  関係データベースに格納されているデ
ータを対話的に更新する更新処理方式において、更新す
る項目の項目名と更新前の値および更新後の値で構成さ
れたパラメータとを対話的に入力する入力手段と、前記
関係データベースを管理するための情報から構成されて
いるディクショナリを記憶するディクショナリ記憶手段
と、前記ディクショナリ記憶手段に記憶されているディ
クショナリから前記入力手段により入力された前記更新
する項目の項目名を含む表の情報を入力するディクショ
ナリ参照手段と、前記表と表定義情報とで構成する関係
データベースを記憶する関係データベース記憶手段と、
前記ディクショナリ参照手段の入力する表の情報から更
新が必要な表を選択し前記関係データベースに格納され
ている表定義情報を入力する表選別手段と、前記表選別
手段の入力する表定義情報と前記入力手段により入力さ
れた更新前の値から更新を必要とするレコードを求める
レコード検索手段と、前記表選別手段の入力する表定義
情報をもとに前記レコード検索手段により元まったレコ
ードを前記入力手段の入力する更新後の値に更新するレ
コード更新手段とを含むことを特徴とする更新処理方式
[Claim 1] In an update processing method for interactively updating data stored in a relational database, an item name of an item to be updated and a parameter consisting of a value before update and a value after update are interactively updated. an input means for inputting information, a dictionary storage means for storing a dictionary constituted of information for managing the relational database, and a dictionary storage means for storing the information input by the input means from a dictionary stored in the dictionary storage means; dictionary reference means for inputting table information including item names of items; relational database storage means for storing a relational database constituted by the table and table definition information;
table selection means for selecting tables that need to be updated from table information input by the dictionary reference means and inputting table definition information stored in the relational database; a record search means for finding records that require updating from the pre-update values input by the input means; and a record search means that searches for records that require updating from the pre-update values input by the input means; and record updating means for updating the record to the updated value input by the means.
JP3026995A 1991-02-21 1991-02-21 Update processing system Pending JPH04266138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3026995A JPH04266138A (en) 1991-02-21 1991-02-21 Update processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3026995A JPH04266138A (en) 1991-02-21 1991-02-21 Update processing system

Publications (1)

Publication Number Publication Date
JPH04266138A true JPH04266138A (en) 1992-09-22

Family

ID=12208743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3026995A Pending JPH04266138A (en) 1991-02-21 1991-02-21 Update processing system

Country Status (1)

Country Link
JP (1) JPH04266138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954766B2 (en) * 2001-12-21 2005-10-11 Juniper Networks, Inc. Systems and methods for organizing and validating data in documents

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954766B2 (en) * 2001-12-21 2005-10-11 Juniper Networks, Inc. Systems and methods for organizing and validating data in documents
US8788469B2 (en) 2001-12-21 2014-07-22 Juniper Networks, Inc. Systems and methods for organizing and validating data in documents

Similar Documents

Publication Publication Date Title
US6192373B1 (en) Managing directory listings in a relational database
US6980976B2 (en) Combined database index of unstructured and structured columns
US5257365A (en) Database system with multi-dimensional summary search tree nodes for reducing the necessity to access records
US7401095B2 (en) Method and system for composing a query for a database and traversing the database
EP1247165B1 (en) System and method for transforming a relational database to a hierarchical database
US20010003455A1 (en) Method, system and graphic user interface for entering and editing filter conditions for filtering a database
US5303367A (en) Computer driven systems and methods for managing data which use two generic data elements and a single ordered file
US6598038B1 (en) Workload reduction mechanism for index tuning
US5903893A (en) Method and apparatus for optimizing a merge-join operation across heterogeneous databases
US5613110A (en) Indexing method and apparatus facilitating a binary search of digital data
GB2329044A (en) Data retrieval system
ZA200100187B (en) Value-instance-connectivity computer-implemented database.
US7277892B2 (en) Database processing system, method, program and program storage device
US5287493A (en) Database interactive prompted query system having named database tables linked together by a user through join statements
JPH04266138A (en) Update processing system
JP2842487B2 (en) Data editing method
US6578038B1 (en) Managing directory listings in a relational database
US20050055331A1 (en) Computer implemented method for retrieving data from a data storage system and according computer program product and data storage system
Kapoor Efficient Storage and Retrieval of In-Memory Static Data
JPH0315223B2 (en)
JPH0728834A (en) Information retrieving device
JPH0795300B2 (en) Name management method in database
JP2002202904A (en) Data management method and recording medium readable by computer
JPH05233713A (en) Learning type ambiguity retrieving method
KR100473054B1 (en) An expressional method of database using multistage query