JPH06149636A - Conversion system for data base using program - Google Patents

Conversion system for data base using program

Info

Publication number
JPH06149636A
JPH06149636A JP4304244A JP30424492A JPH06149636A JP H06149636 A JPH06149636 A JP H06149636A JP 4304244 A JP4304244 A JP 4304244A JP 30424492 A JP30424492 A JP 30424492A JP H06149636 A JPH06149636 A JP H06149636A
Authority
JP
Japan
Prior art keywords
database
program
name
item
parameter
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
JP4304244A
Other languages
Japanese (ja)
Inventor
Toshiaki Makino
俊朗 牧野
Toshiyuki Iida
敏幸 飯田
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP4304244A priority Critical patent/JPH06149636A/en
Publication of JPH06149636A publication Critical patent/JPH06149636A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To automatically change a program for using an objective data base (DB) by providing this conversion system with a means for detecting a DB operating instruction sentence, a parameter extracting means, a means for allowing the system to correspond to the parameter format of a data base to be newly operated, and a means for rewriting a data base using program based upon the correspondence. CONSTITUTION:A DB operating instruction detecting part 1 monitors an instruction sentence to be executed next by a main control part 7 during the execution of processing in the control part 7, and at the time of detecting a DB operating instruction sentence, transfers the detected sentence to a table name/item name extracting part 2. Extracted table and item names are applied to a DB using program rewriting part 3. The rewriting part 3 refers to a table name/item name correspondence table 4 and substitutes the table name and respective item names so as match them with the data base. The control part 7 outputs a command to a DB management system 9 in accordance with the rewritten DB operating instruction sentence.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、種々のデータベースシ
ステムのデータベース利用プログラムを、当該データベ
ースシステムの扱うデータベースのテーブルや項目に依
存することなしに他のデータベースシステムで利用可能
とするための、データベース利用プログラムの自動変換
システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database for making database utilization programs of various database systems available to other database systems without depending on the tables and items of the databases handled by the database system. The present invention relates to an automatic conversion system for use programs.

【0002】[0002]

【従来の技術】従来、データベースシステムを利用する
ためのプログラムは、対象とするデータベースを想定し
て記述されており、プログラム中に、当該データベース
の項目名やテーブル名が記述されている。例えば、標準
的なリレーショナルデータベース検索言語であるSQL
を用いる場合、データベース利用プログラムのデータベ
ース検索部には、 select 名称 from 自動車 where 車体重量 > 2000 のように記述されている。ここで、「自動車」は当該デー
タベースのテーブル名であり、「名称」,「車体重量」は、
テーブル「自動車」の項目名である。データベース利用プ
ログラムでは、この文を実行し、データベースを検索し
て必要なデータを抽出し、プログラム中の変数に代入
し、そのデータを利用した処理を行う。対象とするデー
タベースのパラメータ形式、すなわち、テーブル名,項
目名,テーブルの構成等が異なる場合は、また、それぞ
れに対して、個別にデータベース利用プログラムが必要
である。なお、これに関しては、例えば、informix-E
SQL/C プログラマーズ・マニュアル((株)アスキー,1
991年刊)の記載を参考にすることができる。
2. Description of the Related Art Conventionally, a program for using a database system is described assuming a target database, and the item name and table name of the database are described in the program. For example, SQL, a standard relational database search language
When using, the database search part of the database usage program describes select name from automobile where vehicle body weight> 2000. Here, "car" is the table name of the database, and "name" and "body weight" are
It is an item name of the table "car". The database utilization program executes this statement, searches the database to extract the necessary data, substitutes it into the variables in the program, and performs the processing using the data. If the parameter format of the target database, that is, the table name, item name, table configuration, etc., is different, a database utilization program is required for each. Regarding this, for example, informix-E
SQL / C Programmer's Manual (ASCII, Inc., 1)
The description in 991) can be referred to.

【0003】[0003]

【発明が解決しようとする課題】データベースは、必要
に応じて個別に構築されるので、各データベース間でテ
ーブル名,項目名が異なり、また、テーブルの構造も異
なる。従って、あるデータベースに対して、他のデータ
ベースの利用プログラムを適用しようとしても、現状で
は、データベース利用プログラムは使用するデータベー
スに大きく依存しているため、プログラムに人手により
修正を加えなければならない。例えば、上述の、 select 名称 from 自動車 where 車体重量 > 2000 というSQL文は、対象とするデータベースにテーブル
「自動車」が存在し、そのテーブルの項目として「名称」と
「車体重量」がなければ実行できない。このため、上仮
に、対象とするデータベースに同じことを意味するデー
タがテーブル「車」の項目「車種」,「重量」に記述されてい
ても、SQL文のパラメータであるテーブル名と項目名
の違いにより、このデータベース利用プログラムを使う
ことができない。そこで、人がプログラムを読んで、該
当個所を、 select 車種 from 車 where 重量 > 2000 のように書き換える必要がある。プログラムの規模が大
きくなると、この作業は煩雑であり、また、正確さを欠
くものになる。本発明は上記事情に鑑みてなされたもの
で、その目的とするところは、従来の技術における上述
の如き問題を解消し、対象とするデータベースに応じ
て、データベース利用プログラムを自動的に変更するデ
ータベース利用プログラムの自動変換システムを提供す
ることにある。
Since the databases are constructed individually as necessary, the table names and item names are different between the databases, and the table structures are also different. Therefore, even if an application program of another database is applied to a certain database, at present, the database application program largely depends on the database to be used, and therefore the program must be manually modified. For example, the above SQL statement "select name from car where body weight>2000" cannot be executed unless the table "car" exists in the target database and "name" and "body weight" are the items of the table. . Therefore, even if data that means the same is written in the target database in the items “vehicle type” and “weight” of the table “car”, the table name and the item name of the SQL statement parameters Due to the difference, this database usage program cannot be used. Therefore, it is necessary for a person to read the program and rewrite the relevant part such as select vehicle type from vehicle where weight> 2000. As the size of the program grows, this task becomes cumbersome and inaccurate. The present invention has been made in view of the above circumstances, and an object of the present invention is to solve the above-mentioned problems in the related art and to automatically change a database use program according to a target database. It is to provide an automatic conversion system of a used program.

【0004】[0004]

【課題を解決するための手段】本発明の上述の目的は、
複数のデータベース間でデータベース利用プログラムを
共用可能とするためのデータベース利用プログラムの変
換システムであって、任意のデータベース利用プログラ
ム中のデータベース操作命令文を検出する手段と、該手
段により検出したデータベース操作命令文から当該デー
タベース利用プログラムが操作対象としていたデータベ
ース固有のパラメータを抽出するパラメータ抽出手段
と、該手段により抽出したパラメータ形式を前記データ
ベース利用プログラムが新たに操作対象としようとして
いるデータベースのパラメータ形式に対応付ける手段
と、該手段による対応付けに基づいて前記データベース
利用プログラムの書き換えを行う手段を有することを特
徴とするデータベース利用プログラムの変換システムに
よって達成される。
The above objects of the present invention are as follows:
A database usage program conversion system for enabling a database usage program to be shared between a plurality of databases, a means for detecting a database operation statement in an arbitrary database usage program, and a database operation instruction detected by the means. Parameter extraction means for extracting a database-specific parameter that the database utilization program has operated from the statement, and the parameter format extracted by the means is associated with the parameter format of the database that the database utilization program is about to newly operate. And a means for rewriting the database using program based on the correspondence by the means.

【0005】[0005]

【作用】本発明に係るデータベース利用プログラムの自
動変換システムにおいては、テーブル名や項目名として
各種データベースで用いられる用語に関して、同義の語
との対応付け(例えば、「自動車」と「車」は同義であり、
置き換え可能)や、各項目の値の意味するところに基づ
いた代替関係(例えば、「広さ」の項目の値を、「奥行
き」,「幅」,「高さ」の各項目の値の積で代用する)に関す
る知識を有し、その知識に基づいてデータベース利用プ
ログラム中のデータベースを操作する命令文中のパラメ
ータを適当に書き換えて、取り扱っているデータベース
に合致させることによって、データベース利用プログラ
ムの共用を実現している。
In the automatic conversion system for the database using program according to the present invention, the terms used in various databases as table names and item names are associated with synonyms (for example, "automobile" and "car" are synonymous). And
Can be replaced) or an alternative relationship based on the meaning of the value of each item (for example, the value of the item "width" is the product of the values of the items "depth", "width", and "height"). To replace the database usage program by appropriately rewriting the parameters in the command statement for operating the database in the database usage program based on that knowledge to match the database being handled. Has been realized.

【0006】[0006]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。図1は、本発明の一実施例に係るデータベ
ース(以下、「DB」ともいう)利用プログラム自動変換シ
ステムを備えた、データベースシステムのブロック構成
図である。図において、1は記憶装置8に格納されてい
るデータベース利用プログラムから、データベースを操
作するための命令文の部分を検出するDB操作命令文検
出部である。データベース利用プログラム中のDB操作
命令文には、例えば、ANSI標準では、図5に示すよ
うに、文の最初に「EXEC SQL」というキーワード
が書かれている。DB操作命令文検出部1は、このキー
ワードを判別することにより、DB操作命令文を検出す
る。2はDB操作命令文検出部1で検出された命令文か
ら、パラメータであるテーブル名や項目名を抽出するテ
ーブル名/項目名抽出部である。テーブル名/項目名抽
出部2は、DB操作命令文の予約語と「,」等のパラメー
タの区切り記号に関する情報を有し、それら以外を抽出
することによって、テーブル名/項目名を抽出する。3
はテーブル名/項目名抽出部2で抽出されたテーブル名
や項目名を対象としているデータベースに適合するよう
に置き換えることによって、実行可能なプログラムに書
き換えるDB利用プログラム書き換え部である。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block configuration diagram of a database system including a database (hereinafter, also referred to as “DB”) use program automatic conversion system according to an embodiment of the present invention. In the figure, reference numeral 1 denotes a DB operation command statement detection unit that detects a command statement portion for operating a database from a database utilization program stored in the storage device 8. In the DB operation command statement in the database utilization program, for example, in the ANSI standard, as shown in FIG. 5, a keyword "EXEC SQL" is written at the beginning of the statement. The DB operation command statement detection unit 1 detects the DB operation command statement by discriminating this keyword. Reference numeral 2 is a table name / item name extraction unit that extracts a table name or an item name that is a parameter from the command sentence detected by the DB operation command sentence detection unit 1. The table name / item name extraction unit 2 has information about reserved words of DB operation command statements and parameter delimiters such as “,”, and extracts table names / item names by extracting other information. Three
Is a DB use program rewriting unit that rewrites an executable program by replacing the table name or item name extracted by the table name / item name extraction unit 2 so as to match the target database.

【0007】また、4はプログラム中のテーブル名や項
目名の対応関係を示したテーブル名/項目名対応テーブ
ルであり、本実施例では、このテーブル名/項目名対応
テーブル4は、予め与えられているものとする。上述の
テーブル名/項目名対応テーブル4の作成は以下の手順
で行う。まず、DB利用プログラムから、上述のDB操
作命令文検出部1とテーブル名/項目名抽出部2と同様
の手法で、プログラム中でテーブル名や項目名として使
用されている語を抽出する。次に、データベースのスキ
ーマ情報から、データベースのテーブル名と項目名を抽
出する。相互の対応付けは、類語辞書を用いることによ
って行う。複数項目によってある項目を代用する場合の
ように、類語辞係だけでは関係付けられないものに関し
は、人手により関係付けを行う。以上の動作によって、
図4に示すようなテーブル名/項目名対応テーブル4が
作成される。本実施例に係るDB利用プログラム自動変
換システムは、上述の4つのブロックから構成される。
Reference numeral 4 is a table name / item name correspondence table showing the correspondence between table names and item names in the program. In the present embodiment, this table name / item name correspondence table 4 is given in advance. It is assumed that The above table name / item name correspondence table 4 is created in the following procedure. First, a word used as a table name or an item name in the program is extracted from the DB use program by a method similar to that of the DB operation command statement detection unit 1 and the table name / item name extraction unit 2 described above. Next, the table name and item name of the database are extracted from the schema information of the database. Mutual correspondence is performed by using a thesaurus. For items that cannot be related only by a thesaurus, such as when a certain item is substituted by multiple items, the relationship is manually established. By the above operation,
A table name / item name correspondence table 4 as shown in FIG. 4 is created. The DB use program automatic conversion system according to the present embodiment includes the above-described four blocks.

【0008】5は利用者がシステムを操作するための入
力装置、6は利用者に必要な情報を提示し、また、操作
の結果を出力するための出力装置、7はシステム全体の
動作を制御する主制御部、8はプログラム及び利用者に
より入力された情報等を格納する記憶装置、9は主制御
部の指示に応じて、データベースを操作するデータベー
スマネージメントシステム(以下、「DBMS」という)、
10は種々のデータを格納したデータベースである。図
2は、図1に示した記憶装置8に格納されているプログ
ラムを記述する際に想定していたデータベースのテーブ
ルの1つを示す。テーブル名は「乗用車」で、項目とし
て、「車種」,「室内広さ」,「重量」,「価格」等を持つ。ま
た、図3は、図1中のデータベース10に格納されてい
るテーブルの1つを示す。テーブル名は「自動車」で、項
目として、「名称」,「室内長さ」,「室内幅」,「室内高
さ」,「車体重量」,「価格」等を持つ。図4は、図1中の
テーブル名/項目名対応テーブル4の一実施例を示すも
のであり、図2と図3に示す各データベーステーブル間
のテーブル名と項目名の対応関係を記述してあるもので
ある。
Reference numeral 5 is an input device for the user to operate the system, 6 is an output device for presenting necessary information to the user, and the result of the operation is output, and 7 is for controlling the operation of the entire system. A main control unit, 8 is a storage device for storing programs and information input by the user, 9 is a database management system (hereinafter referred to as “DBMS”) for operating a database in accordance with an instruction from the main control unit,
Reference numeral 10 is a database that stores various data. FIG. 2 shows one of the tables of the database assumed when describing the program stored in the storage device 8 shown in FIG. The table name is "passenger car", and has items such as "vehicle type", "interior area", "weight", "price", and the like. Further, FIG. 3 shows one of the tables stored in the database 10 in FIG. The table name is "car" and has items such as "name", "indoor length", "indoor width", "indoor height", "body weight", "price", and the like. FIG. 4 shows an example of the table name / item name correspondence table 4 in FIG. 1, and describes the correspondence relationship between the table names and item names between the database tables shown in FIGS. There is something.

【0009】また、図5は、図1中の記憶装置8に格納
されているプログラムの一部で、特に、データベースを
操作する命令の部分を示すものである。図6は、本実施
例に係るデータベース利用プログラム自動変換システム
の動作フローチャートである。本実施例に係るDB利用
プログラム自動変換システムのDB操作命令文検出部1
は、記憶装置8に格納されているDB利用プログラムか
ら、次に主制御部7が実行する命令文を読み込み(ステ
ップ101)、DB操作命令文が否かを判断する(ステップ
102)。もし、DB操作命令文でなければ、そのまま
その命令を実行するように、主制御部7に指示を出す
(ステップ106)。また、DB操作命令文であった場合
には、テーブル名/項目名抽出部2が、命令文からテー
ブル名や項目名を抽出する(ステップ103)。次に、D
B利用プログラム書き換え部3が、テーブル名/項目名
対応テーブル4を利用して、プログラム中とデータベー
ス10中のテーブル名と項目名の対応付けを行い(ステ
ップ104)、データベース10中のテーブル名や項目
名に置き換えたDB操作命令文を作成して、主制御部7
へ渡し(ステップ105)、主制御部7に、命令文の実行
を促す(ステップ106)。プログラムが終了でない場合
には、また、次に実行すべき命令文の読み込みを行う
(ステップ107)。
Further, FIG. 5 shows a part of a program stored in the storage device 8 in FIG. 1, particularly a part of an instruction for operating a database. FIG. 6 is an operation flowchart of the database use program automatic conversion system according to the present embodiment. The DB operation command statement detection unit 1 of the DB use program automatic conversion system according to the present embodiment
Reads the command statement to be executed next by the main control unit 7 from the DB use program stored in the storage device 8 (step 101), and determines whether or not there is a DB operation command statement (step 102). If it is not a DB operation command statement, the main control unit 7 is instructed to execute the command as it is.
(Step 106). If it is a DB operation command statement, the table name / item name extraction unit 2 extracts the table name or item name from the command statement (step 103). Then D
The B use program rewriting unit 3 uses the table name / item name correspondence table 4 to associate the table name in the program with the item name in the database 10 (step 104). A DB operation command statement that is replaced with the item name is created, and the main control unit 7
Then, the main control unit 7 is prompted to execute the statement (step 106). If the program is not finished, read the next statement to be executed.
(Step 107).

【0010】以下、図1に示した本実施例に係るデータ
ベース利用プログラム自動変換システムを備えたデータ
ベースシステムについて、利用者の希望する条件を満た
す車に関する情報を出力するシステムを例に挙げて、そ
の動作を説明する。まず、システムが起動されると、主
制御部7は、記憶装置8に格納されているプログラムに
従い、処理を開始する。次に、出力装置6により利用者
に条件の入力を促す。利用者は、入力装置5により条件
を入力する。入力が終ると、主制御部7は、処理を続行
する。DB操作命令文検出部1は、主制御部が処理を実
行している間、主制御7が次に実行する命令文を監視
し、DB操作命令文を検出すると、検出したDB操作命
令文を、テーブル名/項目名抽出部2に渡す。図5に例
示したプログラムでは、 EXEC SQL select 車種 from 乗用車 where 価格
< :yosan や、 EXEC SQL select 車種 from 乗用車 where 室内
広さ < :hirosa 等が渡される。テーブル名/項目名抽出部2は、DB操
作命令文中のテーブル名や項目名を抽出する。ここで
は、「車種」,「乗用車」,「価格」,「室内広さ」等が抽出さ
れる。
In the following, regarding the database system provided with the automatic database use program conversion system according to the present embodiment shown in FIG. 1, a system for outputting information on vehicles satisfying a user's desired condition will be described as an example. The operation will be described. First, when the system is activated, the main control unit 7 starts processing according to the program stored in the storage device 8. Next, the output device 6 prompts the user to input conditions. The user inputs the condition using the input device 5. When the input is completed, the main control unit 7 continues the process. The DB operation command statement detecting unit 1 monitors the command statement to be executed next by the main control 7 while the main control unit is executing the process. When the DB operation command statement is detected, the DB operation command statement is detected. , Table name / item name extraction unit 2. In the program illustrated in FIG. 5, "EXEC SQL select vehicle type from passenger car where price <: yosan" and "EXEC SQL select vehicle type from passenger vehicle where room size <: hirosa" are passed. The table name / item name extraction unit 2 extracts the table name and item name in the DB operation command statement. Here, "vehicle type", "passenger car", "price", "indoor size", etc. are extracted.

【0011】図5に例示したプログラムは、図2のデー
タベースを想定して記述されているので、ここで抽出さ
れたテーブル名と項目名は、図2のデータベースのもの
であり、実際にシステムがデータベース10に持つ、図
3のデータベースのものとは異なっている。このため、
この命令文をDBMS9に与えても、データベースの検
索は成功しない。ここで、抽出されたテーブル名と項目
名は、DB利用プログラム書き換え部3に与えられる。
DB利用プログラム書き換え部3は、図4に示したテー
ブル名/項目名対応テーブル4を参照し、テーブル名と
各項目名を図3のデータベースに適合するように置き換
える。ここで、テーブル名「乗用車」は「自動車」に置き換
えられ、項目名「車種」は同じ内容を示す「名称」に置き換
えられる。また、図2の項目「室内広さ」と同じ内容を示
す項目は、図3のデータベース中にはないが、これに対
しては、「室内長さ*室内幅*室内高さ*10-9」のよう
に、「室内長さ」,「室内幅」,「室内高さ」の3つの項目の
積で置き換えられる。なお、ここで、10-9を乗じること
により、単位の換算も行われる。
Since the program illustrated in FIG. 5 is written assuming the database in FIG. 2, the table names and item names extracted here are those in the database in FIG. The database 10 is different from the database shown in FIG. For this reason,
Even if this statement is given to the DBMS 9, the database search is not successful. Here, the extracted table name and item name are given to the DB use program rewriting unit 3.
The DB use program rewriting unit 3 refers to the table name / item name correspondence table 4 shown in FIG. 4, and replaces the table name and each item name so as to match the database of FIG. Here, the table name "passenger car" is replaced with "automobile", and the item name "vehicle type" is replaced with "name" showing the same content. Also, the item showing the same content as the item "indoor size" in Fig. 2 is not in the database in Fig. 3, but in contrast to this, "indoor length * indoor width * indoor height * 10-9 , “Indoor length”, “indoor width”, and “indoor height”. Here, the unit conversion is also performed by multiplying by 10 -9 .

【0012】結果として、DB利用プログラム書き換え
部3によって、上述のDB操作命令文は、それぞれ、 EXEC SQL select 名称 from 自動車 where 価格
< :yosan や、 EXEC SQL select 名称 from 自動車 where 室内
長さ*室内幅*室内高さ*10-9 < :hirosa と書き換えられる。書き換えられたDB操作命令文は主
制御部7に渡され、主制御部7は処理を続行する。主制
御部7は、書き換えられたDB操作命令文に従って、D
BMS9に指令を出し、DBMS9はデータベース10
を操作して、必要なデータを主制御部7に返す。主制御
部7はそのデータを記憶装置8に格納し、処理を続行す
る。一連の処理が終了すると、結果が出力装置6によ
り、利用者に提供される。以上説明したように、本実施
例によれば、他のデータベースを対象として記述された
データベース利用プログラムを、別のデータベースを持
つシステムに対しても簡単に転用できる。
As a result, by the DB use program rewriting unit 3, the above-mentioned DB operation command statements are executed as follows: EXEC SQL select name from car where price <: yosan or EXEC SQL select name from car where room length * room width * Indoor height * 10-9 <Rewritten as: hirosa. The rewritten DB operation command statement is passed to the main control unit 7, and the main control unit 7 continues the processing. The main control unit 7 follows D according to the rewritten DB operation command statement.
A command is issued to the BMS 9, and the DBMS 9 uses the database 10
Is operated to return necessary data to the main control unit 7. The main controller 7 stores the data in the storage device 8 and continues the process. When the series of processing is completed, the result is provided to the user by the output device 6. As described above, according to this embodiment, a database use program written for another database can be easily transferred to a system having another database.

【0013】なお、上記実施例は本発明の一例を示した
ものであり、本発明はこれに限定されるべはものではな
いことは言うまでもないことである。例えば、上記実施
例の説明では、テーブル名/項目名対応テーブルを予め
与えられるものとしたが、これは、処理実行時に、プロ
グラム中のテーブル名/項目名を検出しつつ、随時、類
義語辞書を参照しつつ、動的に作成するようにすること
も可能である。また、類義語辞書のみでは対応付けがで
きない場合は、形態素解析を用いて、「車体重量」を「車
体」と「重量」に分け、「重量」の類語を探すなどの手法を
用いて対応付けを行うことも可能である。更に、上記実
施例に示したテーブル名/項目名対応テーブルの代わり
に、より一般的な同義語や類義語を理解し、また、各種
項目間の関係を理解し得る知的システムを用いても、同
様な効果が得られることも言うまでもない。
It is needless to say that the above embodiment shows one example of the present invention, and the present invention is not limited to this. For example, in the description of the above embodiment, the table name / item name correspondence table is given in advance. However, this is to detect the table name / item name in the program at the time of processing execution, and at any time to create a synonym dictionary. It is also possible to create it dynamically while referring to it. If the synonym dictionary alone cannot be used for the matching, the morphological analysis is used to divide the “body weight” into “body” and “weight”, and a method such as searching for a synonym of “weight” is used. It is also possible to do so. Furthermore, instead of the table name / item name correspondence table shown in the above embodiment, an intelligent system that can understand more general synonyms and synonyms and can understand the relationship between various items can be used. It goes without saying that the same effect can be obtained.

【0014】[0014]

【発明の効果】以上、詳細に説明した如く、本発明によ
れば、対象とするデータベースに応じて、データベース
利用プログラムを自動的に変更するデータベース利用プ
ログラムの自動変換システムを実現できるという顕著な
効果を奏するものである。
As described above in detail, according to the present invention, it is possible to realize a database conversion program automatic conversion system for automatically changing a database usage program according to a target database. Is played.

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

【図1】本発明の一実施例に係るデータベース利用プロ
グラム自動変換システムを備えた、データベースシステ
ムのブロック構成図である。
FIG. 1 is a block configuration diagram of a database system including a database utilization program automatic conversion system according to an embodiment of the present invention.

【図2】図1に示した記憶装置8に格納されているプロ
グラムを記述する際に想定していたデータベースのテー
ブルの1例である。
FIG. 2 is an example of a database table assumed when describing a program stored in a storage device 8 shown in FIG.

【図3】図1中のデータベース10に格納されているテ
ーブルの1例である。
FIG. 3 is an example of a table stored in a database 10 in FIG.

【図4】図1に示したテーブル名/項目名対応テーブル
4の一例である。
FIG. 4 is an example of a table name / item name correspondence table 4 shown in FIG.

【図5】図1に示したシステムに与えられたプログラム
の一部である。
5 is a part of a program provided to the system shown in FIG.

【図6】図1に示したシステムのうち、本発明に関する
部分の動作を示すフローチャートである。
FIG. 6 is a flowchart showing an operation of a part related to the present invention in the system shown in FIG.

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

1:DB操作命令文検出部、2:テーブル名/項目名抽
出部、3:DB利用プログラム書き換え部、4:テーブ
ル名/項目名対応テーブル、5:入力装置、6:出力装
置、7:主制御部、8:記憶装置、9:DBMS、1
0:データベース。
1: DB operation command statement detection unit, 2: Table name / item name extraction unit, 3: DB use program rewriting unit, 4: Table name / item name correspondence table, 5: Input device, 6: Output device, 7: Main Control unit, 8: storage device, 9: DBMS, 1
0: database.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のデータベース間でデータベース利
用プログラムを共用可能とするためのデータベース利用
プログラムの変換システムであって、任意のデータベー
ス利用プログラム中のデータベース操作命令文を検出す
る手段と、該手段により検出したデータベース操作命令
文から当該データベース利用プログラムが操作対象とし
ていたデータベース固有のパラメータを抽出するパラメ
ータ抽出手段と、該手段により抽出したパラメータ形式
を前記データベース利用プログラムが新たに操作対象と
しようとしているデータベースのパラメータ形式に対応
付ける手段と、該手段による対応付けに基づいて前記デ
ータベース利用プログラムの書き換えを行う手段を有す
ることを特徴とするデータベース利用プログラムの変換
システム。
1. A database utilization program conversion system for sharing a database utilization program among a plurality of databases, comprising means for detecting a database operation command statement in an arbitrary database utilization program, and said means. Parameter extracting means for extracting a database-specific parameter that the database using program has operated from the detected database operating command statement, and a database for which the database using program newly intends to operate the parameter format extracted by the means. And a means for associating the database use program with the parameter format, and a means for rewriting the database use program based on the correspondence by the means.
【請求項2】 前記パラメータ抽出手段により抽出した
パラメータ形式を対象データベースのパラメータ形式に
対応付ける手段が、前記データベース操作命令文中のパ
ラメータであるテーブル名/項目名とプログラム中のテ
ーブル名/項目名とを対応関係を示すテーブルとして与
えられるものであることを特徴とする請求項1記載のデ
ータベース利用プログラムの変換システム。
2. A means for associating the parameter format extracted by the parameter extracting means with the parameter format of the target database, uses the table name / item name which is the parameter in the database operation command statement and the table name / item name in the program. The database utilization program conversion system according to claim 1, wherein the conversion system is provided as a table showing a correspondence relationship.
JP4304244A 1992-11-16 1992-11-16 Conversion system for data base using program Pending JPH06149636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4304244A JPH06149636A (en) 1992-11-16 1992-11-16 Conversion system for data base using program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4304244A JPH06149636A (en) 1992-11-16 1992-11-16 Conversion system for data base using program

Publications (1)

Publication Number Publication Date
JPH06149636A true JPH06149636A (en) 1994-05-31

Family

ID=17930728

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4304244A Pending JPH06149636A (en) 1992-11-16 1992-11-16 Conversion system for data base using program

Country Status (1)

Country Link
JP (1) JPH06149636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316063B2 (en) 2008-01-11 2012-11-20 Rsun Corporation Data-driven database processor
JP2016126388A (en) * 2014-12-26 2016-07-11 株式会社Fcs Business integration management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316063B2 (en) 2008-01-11 2012-11-20 Rsun Corporation Data-driven database processor
JP2016126388A (en) * 2014-12-26 2016-07-11 株式会社Fcs Business integration management system

Similar Documents

Publication Publication Date Title
US6243710B1 (en) Methods and apparatus for efficiently splitting query execution across client and server in an object-relational mapping
ATE333125T1 (en) ACCESS TO HIERARCHICAL DATA STORAGE VIA SQL INPUT
JPH03130874A (en) Retrieval processing system for relational data base
US20060224555A1 (en) System and method for assisting generation of business specification
JPH06149636A (en) Conversion system for data base using program
JPH08263277A (en) Automatic generation device for data operation program
US7225196B2 (en) Data conversion method and computer system therefor
JPH07319742A (en) Physical deleting system for logically deleted data
JP2000250921A (en) Method and system for managing database
JPH02238567A (en) Automatic data classification assisting device
JP2977951B2 (en) Arithmetic unit
GB2269689A (en) Method for editing sub-query statements for searching a relational database
JPH10124357A (en) Device and method for automatically loading data onto rdb (relational data base) table
WO1998057279B1 (en) Knowledge representation system including integrated knowledge-base and database, and method and apparatus for utilizing the same
JP2000181691A (en) Program structure analysis system
JPS62219124A (en) Item attribute inheriting and processing system for data base
JPH05266086A (en) Retrieval range merge method for index
JPH0277939A (en) Intelligent supporting system for execution
JPS63238622A (en) Relation retrieval system
Sperzel et al. Updating the UMLS Metathesaurus: a model
JPH02278426A (en) Automatic program generating device
JPH06236261A (en) Separating system for procedure language program component
JPH05150984A (en) Knowledge base system acquiring processor
JPH06110935A (en) Relational data base management system
JPH04241672A (en) Character string retrieving system