JP2002108886A - Database management system - Google Patents

Database management system

Info

Publication number
JP2002108886A
JP2002108886A JP2000295684A JP2000295684A JP2002108886A JP 2002108886 A JP2002108886 A JP 2002108886A JP 2000295684 A JP2000295684 A JP 2000295684A JP 2000295684 A JP2000295684 A JP 2000295684A JP 2002108886 A JP2002108886 A JP 2002108886A
Authority
JP
Japan
Prior art keywords
template
database
access
sql
unit
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
JP2000295684A
Other languages
Japanese (ja)
Inventor
Satoshi Ishikiri
聡 石切
Masaru Kishi
勝 岸
Kenichi Nakano
健一 中野
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.)
Yamatake Industrial Systems Co Ltd
Original Assignee
Yamatake Industrial Systems 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 Yamatake Industrial Systems Co Ltd filed Critical Yamatake Industrial Systems Co Ltd
Priority to JP2000295684A priority Critical patent/JP2002108886A/en
Publication of JP2002108886A publication Critical patent/JP2002108886A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To enable an application to access an RDB via an RDBMS without preparing an SQL statement. SOLUTION: A template having its name 'SELECT-1' is taken out of a template storing part 141 and outputted to an SQL statement production part 144. Meanwhile, an instruction receiving part 142 outputs an instruction number '20000614', i.e., an argument included in the data on the received instruction to the part 144. Receiving the template and argument, the part 144 combines the argument with the template to produce an SQL statement.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、SQL文に基づい
てデータベースのアクセスを行うデータベース管理シス
テムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database management system for accessing a database based on an SQL statement.

【0002】[0002]

【従来の技術】リレーショナルデータベース(RDB)
のモデルを実装したソフトウエアであるリレーショナル
データベース管理システム(RDBMS)では、データ
が表形式で表現され、標準化されたデータベース・アク
セス言語SQL(Structured Query Language)が用い
られている。データの更新や削除などを行うために、R
DBMSを利用する場合、SQL文を用いてRDBMS
にアクセスする。RDBMSは、SQL文が入力される
と、これに対応した機能を実行し、RDBの実行結果を
出力する。SQLは、国際標準化機構や日本工業規格で
制定されているため、基本的にはどのRDBMSに対し
ても、企画に準拠したSQL文であれば、実行は可能で
ある。しかし、現実的には、上記規格に準じてはいるも
のの、RDBMSの種類によりSQL文の記述形式が若
干異なる。
2. Description of the Related Art Relational Database (RDB)
In a relational database management system (RDBMS), which is software that implements the above model, data is represented in a table format, and a standardized database access language SQL (Structured Query Language) is used. To update or delete data,
When using DBMS, RDBMS using SQL statement
To access. When an SQL statement is input, the RDBMS executes a function corresponding to the SQL statement and outputs an RDB execution result. Since SQL is established by the International Organization for Standardization and Japanese Industrial Standards, it is basically possible to execute any RDBMS as long as it is a SQL statement conforming to the plan. However, in reality, the description format of the SQL statement is slightly different depending on the type of the RDBMS, although it conforms to the above-mentioned standard.

【0003】例えば、特開平11−25116号公報に
記載されたデータベースシステムでは、図5に示すよう
に、図示していないコンピュータの記憶装置に記憶され
たアプリケーション501のプログラムに記述されてい
るSQL文501aを実行することで、RDBMS50
2がRDB503にアクセスして所定の結果を返すよう
にしている。この場合、SQL文501aは、RDBM
S502の種類により記述形式が異なるため、アプリケ
ーション501では、使用されるRDBMS502に適
合したSQL文501aをプログラムに用意しておく必
要がある。
For example, in a database system described in Japanese Patent Application Laid-Open No. 11-25116, an SQL statement described in a program of an application 501 stored in a storage device of a computer (not shown) as shown in FIG. By executing 501a, the RDBMS 50
2 accesses the RDB 503 and returns a predetermined result. In this case, the SQL statement 501a is the RDBM
Since the description format differs depending on the type of S502, the application 501 needs to prepare an SQL statement 501a suitable for the RDBMS 502 used in the program.

【0004】[0004]

【発明が解決しようとする課題】したがって、上記デー
タベースシステムでは、RDBMS502の種類が変更
されると、アプリケーション501のプログラムにおけ
るSQL文501aを変更する必要があるため、RDB
MS502変更の度に、アプリケーション501の変更
作業が必要になり、作業負担が大きいという問題があっ
た。これに対し、特開平7−65032号公報に記載さ
れたデータベースシステムでは、図6に示すように、デ
ータベースサーバ602に、SQL文変換部602aを
備え、RDBMS603aが変更されても、アプリケー
ション501におけるSQL文501aを変更する必要
がないようにしている。
Therefore, in the above database system, when the type of the RDBMS 502 is changed, it is necessary to change the SQL statement 501a in the program of the application 501.
Every time the MS 502 is changed, the work of changing the application 501 is required, and there is a problem that the work load is large. On the other hand, in the database system described in JP-A-7-65032, as shown in FIG. 6, the database server 602 is provided with an SQL statement conversion unit 602a, and even if the RDBMS 603a is changed, the SQL in the application 501 is changed. The sentence 501a does not need to be changed.

【0005】しかしながら、図6に示すデータベースシ
ステムにおいても、SQL文の記述は必要となるため、
アプリケーション501のプログラムの作成に、SQL
文記述のための知識は必要となる。また、データベース
のアクセス性能が悪い場合は、データベースの構造を変
更する場合があり、例えば、複数のレコードからなる複
数のテーブルを1つのテーブルに単一化することで、ア
クセス性能を向上させる場合がある。このような場合、
図6に示すように、SQL文変換部602aが備えられ
ていたとしても、アプリケーション501におけるSQ
L文501aの変更が必要となる。具体的には、SQL
文501aに定義されているテーブル名などの変更が必
要となる。
However, even in the database system shown in FIG. 6, since the description of the SQL statement is necessary,
To create a program for the application 501, use SQL
Knowledge for sentence description is required. When the access performance of the database is poor, the structure of the database may be changed. For example, the access performance may be improved by unifying a plurality of tables including a plurality of records into one table. is there. In such a case,
As shown in FIG. 6, even if the SQL statement conversion unit 602a is provided,
The L sentence 501a needs to be changed. Specifically, SQL
It is necessary to change the table name and the like defined in the statement 501a.

【0006】以上説明したように、従来では、RDBの
種類や構成を変更した場合、アプリケーションに用意し
ておくSQL文を修正したり変更するなどの必要があ
り、RDBの変更に伴う作業負担が大きいという問題が
あった。本発明は、以上のような問題点を解消するため
になされたものであり、アプリケーション側でSQL文
を用意することなく、RDBMSによりRDBにアクセ
スできるようにすることを目的とする。
As described above, conventionally, when the type or configuration of the RDB is changed, it is necessary to correct or change the SQL statement prepared for the application, and the work load accompanying the change of the RDB is reduced. There was a problem of being big. The present invention has been made to solve the above problems, and has as its object to enable an RDBMS to access an RDB without preparing an SQL statement on the application side.

【0007】[0007]

【課題を解決するための手段】本発明のデータベース管
理システムは、複数の項目とこの項目に対応するデータ
とからなる複数のレコードからなる複数のテーブルから
構成されたデータベースと、このデータベースに対する
アクセスをSQL文で制御するデータベースアクセス制
御部と、データベースのいずれかのテーブルの指定と、
指定したテーブル内でアクセス対象とする項目とが記述
され、かつアクセス対象の特定項目の情報を変更可能な
入力部分として備えたSQL文からなる複数のテンプレ
ートを格納したテンプレート格納部とを備え、入力され
たデータベースに対するアクセスの指示よりこのアクセ
スに対応するテンプレートをテンプレート格納部より取
り出し、アクセスの指示で指定された特定項目の情報を
取り出したテンプレートの入力部に加えてアクセスの指
示に対応するSQL文を作成し、この作成したSQL文
によりデータベースアクセス制御部でデータベースにア
クセスしようとしたものである。この発明によれば、デ
ータベースにアクセスするためのSQL文が、テンプレ
ートから作成される。
According to the present invention, there is provided a database management system comprising: a database including a plurality of tables each including a plurality of records including a plurality of items and data corresponding to the items; and an access to the database. A database access control unit controlled by an SQL statement, specification of any table in the database,
An item to be accessed in a specified table is described, and a template storage unit storing a plurality of templates composed of SQL statements provided as an input part capable of changing information of the specific item to be accessed is provided. A template corresponding to this access is retrieved from the template storage unit based on the specified access instruction to the database, and information on the specific item designated by the access instruction is added to the input unit of the retrieved template and an SQL statement corresponding to the access instruction Is created, and the database access control unit attempts to access the database using the created SQL statement. According to the present invention, an SQL sentence for accessing a database is created from a template.

【0008】上記発明において、テンプレート格納部に
格納されているテンプレートの指定と、このテンプレー
トの入力部分に加える特定項目の情報とから構成された
関数を有するアプリケーションプログラムを備え、この
アプリケーションプログラムに対してアクセスの指示を
入力することで関数が実行され、この関数の実行によ
り、アクセスの指示に対応するSQL文を作成するよう
にしてもよい。また、テンプレート格納部に格納された
テンプレートの編集を行うテンプレート作成変更部を備
えるようにしてもよい。
In the above invention, there is provided an application program having a function composed of designation of a template stored in a template storage section and information of a specific item added to an input portion of the template. A function may be executed by inputting an access instruction, and an SQL statement corresponding to the access instruction may be created by executing this function. Further, a template creation / change unit that edits a template stored in the template storage unit may be provided.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施の形態につい
て図を参照して説明する。 <実施の形態1>はじめに、本発明の第1の実施の形態
について説明する。図1は、本発明の実施の形態におけ
るデータベース管理システムの構成を示す構成図であ
る。まず、本システムにおいては、ネットワーク101
に接続された複数のクライアントコンピュータ102が
備えられ、クライアントコンピュータ102各々には、
例えば、ある工程の完了予定日の管理などを行うための
工場管理プログラムなどのアプリケーションプログラム
112が備えられている。
Embodiments of the present invention will be described below with reference to the drawings. <First Embodiment> First, a first embodiment of the present invention will be described. FIG. 1 is a configuration diagram illustrating a configuration of a database management system according to an embodiment of the present invention. First, in the present system, the network 101
Are provided, a plurality of client computers 102 are connected to each other,
For example, an application program 112 such as a factory management program for managing a scheduled completion date of a certain process is provided.

【0010】また、ネットワーク101には、データベ
ースアクセスサーバ103と、SQL作成サーバ104
とが接続されている。データベースアクセスサーバ10
3には、まず、リレーショナルデータベース管理システ
ム(RDBMS)103aが備えられている。また、デ
ータベースアクセスサーバ103には、複数の項目とこ
の項目に対応するデータとからなる複数のレコードから
なる複数のテーブルから構成されたリレーショナルデー
タベース(RDB)103bが備えられている。RDB
MS103aとRDB103bは、例えば、図示してい
ないハードディスクなどの記憶装置に記憶されているも
のである。RDBMS103aは、所定のSQL文によ
り、RDB103bに対するアクセス制御を行ってい
る。
[0010] The network 101 includes a database access server 103 and an SQL creation server 104.
And are connected. Database access server 10
3 is provided with a relational database management system (RDBMS) 103a. The database access server 103 includes a relational database (RDB) 103b including a plurality of tables each including a plurality of records including a plurality of items and data corresponding to the items. RDB
The MS 103a and the RDB 103b are, for example, stored in a storage device such as a hard disk (not shown). The RDBMS 103a controls access to the RDB 103b using a predetermined SQL statement.

【0011】SQL作成サーバ104は、RDBMS1
03aにアクセスするためのSQL文となる複数のテン
プレートを、例えば電子データとして図示していない記
憶装置に格納したテンプレート格納部141を備え、テ
ンプレート格納部141から読み出されたテンプレート
に所定の引数を加えて所望とするSQL文を完成させ
る。テンプレートは、RDB103bのいずれかのテー
ブルの指定と、指定したテーブル内でアクセス対象とす
る項目とを備え、かつアクセス対象の特定項目の情報を
変更可能な入力部分として備えたSQL文の形式で構成
されている。テンプレート格納部141には、例えば、
アクセス対象として検索,更新,追加,削除などをRD
B103bに対して行うためのSQL文を作成するため
のテンプレートが格納されている。
The SQL creation server 104 stores the RDBMS1
For example, a template storage unit 141 stores a plurality of templates, which are SQL statements for accessing the storage unit 03a, as electronic data in a storage device (not shown), and stores a predetermined argument in the template read from the template storage unit 141. In addition, a desired SQL statement is completed. The template is configured in the form of an SQL statement that includes specification of one of the tables in the RDB 103b, items to be accessed in the specified table, and information of a specific item to be accessed as an input portion that can be changed. Have been. In the template storage unit 141, for example,
RD for search, update, add, delete, etc. as access target
A template for creating an SQL statement to be performed on B103b is stored.

【0012】また、SQL作成サーバ104は、クライ
アントコンピュータ102から検索や更新などの指示を
受け取る指示受け取り部142と、受け取った指示に対
応するテンプレートをテンプレート格納部141より取
り出すテンプレート取出し部143と、取り出したテン
プレートにクライアントコンピュータ102からの指示
に指定されている引数を組み込んでSQL文を完成する
SQL文作成部144と、作成したSQL文をRDBM
S103aに送信するSQL文送信部145とを備え
る。
The SQL creation server 104 includes an instruction receiving unit 142 that receives an instruction such as search and update from the client computer 102, a template extracting unit 143 that extracts a template corresponding to the received instruction from the template storage unit 141, An SQL statement creation unit 144 that completes an SQL statement by incorporating an argument specified in an instruction from the client computer 102 into the template created, and an RDBM
And an SQL statement transmitting unit 145 for transmitting to S103a.

【0013】加えて、SQL作成サーバ104は、RD
BMS103aからのデータをクライアントコンピュー
タ102に転送する結果転送部146と、テンプレート
格納部141に、新たにテンプレートを作成し、また、
格納されているテンプレートを修正するテンプレート作
成変更部147を備えている。一方、RDBMS103
aは、SQL作成サーバ104から送信されたSQL文
にしたがってRDB103bを操作する。例えば、検索
するためのSQL文が送信された場合、データアクセス
サーバ103では、SQL文にしたがって検索対象のデ
ータを検索し、検索したデータをSQL作成サーバ10
4の結果転送部146に送信する。
[0013] In addition, the SQL creation server 104
A new template is created in the result transfer unit 146 for transferring data from the BMS 103a to the client computer 102, and in the template storage unit 141.
A template creation / change unit 147 for modifying a stored template is provided. On the other hand, RDBMS103
a operates the RDB 103b according to the SQL sentence transmitted from the SQL creation server 104. For example, when an SQL sentence for searching is transmitted, the data access server 103 searches for data to be searched according to the SQL sentence, and stores the searched data in the SQL creation server 10.
4 to the transfer unit 146.

【0014】以下、本実施の形態におけるデータベース
管理システムについてより詳細に説明する。まず、テン
プレート格納部141には、図2に示すように、例え
ば、検索用のテンプレートがテンプレート名「SELECT-
1」,更新用のテンプレートがテンプレート名「UPDATE-
1」,追加用のテンプレートがテンプレート名「INSERT-
1」などのように、複数のテンプレートがテンプレート
名と共に格納されている。例えば、テンプレート名「SE
LECT-1」のテンプレートは、つぎに示すように、RDB
103bのいずれかのテーブルの指定と、指定したテー
ブル内で検索対象とする項目とを備え、かつ検索対象の
特定項目の情報を変更可能な入力部分として備えたSQ
L文の形式で構成されている。
Hereinafter, the database management system according to the present embodiment will be described in more detail. First, as shown in FIG. 2, for example, a template for search is stored in the template storage unit 141 with a template name “SELECT-
1 ", and the update template is the template name" UPDATE-
1 ", the template for addition is the template name" INSERT-
A plurality of templates, such as "1", are stored together with template names. For example, the template name "SE
The LECT-1 template, as shown below,
103b that includes the specification of any one of the tables 103b and the item to be searched in the specified table, and the information of the specific item to be searched is provided as a changeable input part.
It is configured in the form of an L sentence.

【0015】[SELECT-1] select指図番号,開始日,品目名称,数量,単位 from製造指図,品目マスタ,単位マスタ where製造指図,品目コード=品目マスタ.品目コード and製造指図.単位コード=単位マスタ.単位コード and製造指図.指図番号=’%s’[SELECT-1] select instruction number, start date, item name, quantity, unit from production instruction, item master, unit master where production instruction, item code = item master. Item code and production order. Unit code = unit master. Unit code and production instruction. Order number = '% s'

【0016】このSQL文は、「’%s’で指定された
指図番号に基づいて、指図番号,開始日,品目名称,数
量,単位のデータを、製造指図,品目マスタ,単位マス
タの各テーブルから選択する。製造指図,品目マスタ,
品目名称は、品目コードをキーとして品目マスタのテー
ブルから、単位は、単位コードをキーとして単位マスタ
のテーブルから得る」ということを示している。製造指
図,品目マスタ,単位マスタは、各々図3(a),
(b),(c)に示すように構成され、図1に示したR
DB103bを構成するものである。
This SQL statement is based on the instruction number specified by '% s', and stores the data of the instruction number, start date, item name, quantity and unit in each table of the production instruction, item master and unit master. Select from production order, item master,
The item name is obtained from the table of the item master using the item code as a key, and the unit is obtained from the table of the unit master using the unit code as a key. " The production order, item master, and unit master are shown in FIG.
(B) and (c), and the R shown in FIG.
It constitutes the DB 103b.

【0017】以上説明したようなテンプレートを備えた
本システムでは、つぎに説明するように、クライアント
コンピュータ102のアプリケーションプログラム11
2から、RDB103bにアクセスするようにした。ま
ず、クライアントコンピュータ102で、指図番号「20
000614」における「開始日」,「品目名称」,「数
量」,「単位」の情報を表示させる指示を入力すると、
アプリケーションプログラム112の動作により、つぎ
に示すような、関数が実行される。この関数の実行によ
り、クライアントコンピュータ102からSQL作成サ
ーバ104に対し、テンプレート名「SELECT-1」と引数
(検索のためのパラメータ)として指図番号「2000061
4」からなる検索指示のデータが送信される。
In the present system having the above-described template, the application program 11 of the client computer 102 is used as described below.
From 2, the RDB 103b is accessed. First, at the client computer 102, the instruction number "20
000614 ”, an instruction to display information of“ start date ”,“ item name ”,“ quantity ”, and“ unit ”is input.
The following functions are executed by the operation of the application program 112. By executing this function, the client computer 102 instructs the SQL creation server 104 as the template name “SELECT-1” and the instruction number “2000061” as an argument (parameter for search).
4 ”is transmitted.

【0018】[関数] SqlTmplt='SELECT-1' Param(0)='20000614' ISELECT(SqlTmplt,Param)[Function] SqlTmplt = 'SELECT-1' Param (0) = '20000614' ISELECT (SqlTmplt, Param)

【0019】SQL作成サーバ104では、指示受け取
り部142でクライアントコンピュータ102からの検
索指示のデータを受信し、まず、受信した検索指示のデ
ータの中のテンプレート名「SELECT-1」をテンプレート
取出し部143に受け渡す。テンプレート名を受け取っ
たテンプレート取出し部143は、テンプレート格納部
141よりテンプレート名「SELECT-1」のテンプレート
を取り出し、SQL文作成部144に出力する。一方、
指示受け取り部142では、受信した検索指示のデータ
の中の引数である指図番号「20000614」をSQL文作成
部144に出力する。
In the SQL creation server 104, the instruction receiving unit 142 receives the search instruction data from the client computer 102, and firstly, extracts the template name “SELECT-1” from the received search instruction data into the template extracting unit 143. Hand over to Upon receiving the template name, the template extracting unit 143 extracts the template with the template name “SELECT-1” from the template storage unit 141 and outputs the extracted template to the SQL statement creating unit 144. on the other hand,
The instruction receiving unit 142 outputs the instruction number “20000614” which is an argument in the received search instruction data to the SQL sentence creating unit 144.

【0020】テンプレートと引数とを受け取ったSQL
文作成部144では、テンプレートに受け取った引数を
組み合わせてSQL文を作成し、これをSQL文送信部
145に受け渡す。作成されたSQL文は、例えば、つ
ぎに示すように、前述した<SELECT-1>のテンプレート
の’%s’に指図番号「20000614」を入れたものとな
る。
SQL that receives template and arguments
The sentence creating unit 144 creates an SQL sentence by combining the received arguments with the template, and transfers this to the SQL sentence transmitting unit 145. The created SQL sentence is, for example, the one in which the instruction number “20000614” is inserted in “% s” of the above-mentioned <SELECT-1> template, as shown below.

【0021】[SQL文] select指図番号,開始日,品目名称,数量,単位 from製造指図,品目マスタ,単位マスタ where製造指図,品目コード=品目マスタ.品目コード and製造指図.単位コード=単位マスタ.単位コード and製造指図.指図番号=’20000614’[SQL statement] select instruction number, start date, item name, quantity, unit from production instruction, item master, unit master where production instruction, item code = item master. Item code and production order. Unit code = unit master. Unit code and production instruction. Order number = '20000614'

【0022】上記SQL文を受け取ったSQL文送信部
145は、このSQL文をデータベースアクセスサーバ
103に送信する。SQL文送信部145から送信され
たSQL文を受信したRDBMS103aは、受信した
SQL文によりRDB103bにアクセスし、図3に示
すような各テーブルより所定のデータを取り出し、指図
番号「20000614」の開始日「2000−6−4」,品目
名称「製品A」,数量「50」,単位「Kg」からなる
データを生成し、これをSQL作成サーバ104の結果
転送部146に送信する。
The SQL sentence transmitting unit 145 having received the SQL sentence transmits the SQL sentence to the database access server 103. The RDBMS 103a that has received the SQL sentence transmitted from the SQL sentence transmitting unit 145 accesses the RDB 103b using the received SQL sentence, extracts predetermined data from each table as shown in FIG. Data consisting of “2000-6-4”, item name “product A”, quantity “50”, and unit “Kg” is generated and transmitted to the result transfer unit 146 of the SQL creation server 104.

【0023】データベースアクセスサーバ103よりデ
ータを受信した結果転送部146は、受け取ったデータ
をクライアントコンピュータ102に転送する。結果転
送部146から転送されてクライアントコンピュータ1
02に受信されたデータは、アプリケーションプログラ
ム112において、前述した関数を実行した結果として
用いられ、例えば、クライアントコンピュータ102に
おける図示していない表示部に表示される。このよう
に、本実施の形態によれば、アプリケーションプログラ
ム112においては、前述した関数の実行だけで、指図
番号「20000614」における開始日「2000−6−
4」,品目名称「製品A」,数量「50」,単位「K
g」のデータを、RDB103bより得ることができ
る。
The result transfer unit 146 receiving the data from the database access server 103 transfers the received data to the client computer 102. Client computer 1 transferred from result transfer unit 146
The data received at 02 is used as a result of executing the above-described function in the application program 112, and is displayed on a display unit (not shown) of the client computer 102, for example. As described above, according to the present embodiment, in the application program 112, the start date “2000-6−6” in the instruction number “20000614” is obtained only by executing the function described above.
4 ", item name" product A ", quantity" 50 ", unit" K "
g ”can be obtained from the RDB 103b.

【0024】<実施の形態2>つぎに、本発明の他の形
態について説明する。前述した実施の形態では、図1に
示すRDB103bが、図3に示すように、製造指図,
品目マスタ,単位マスタのテーブルから構成されている
ようにしたが、これらを一元化してデータベースアクセ
ス性を向上させるようにしてもよい。この場合、RDB
103bを、図4に示す製造指図のテーブルから構成す
る。
Second Embodiment Next, another embodiment of the present invention will be described. In the above-described embodiment, the RDB 103b shown in FIG.
Although the table is made up of the table of the item master and the unit master, these may be unified to improve the database accessibility. In this case, RDB
103b is composed of the table of the production order shown in FIG.

【0025】このように、前述した実施の形態とは異な
り、品目マスタ,単位マスタのテーブルを用いない場
合、例えば、テンプレート名「SELECT-1」のテンプレー
トは、つぎに示すようなSQL文の形式で構成し直せば
よい。この変更は、図1のテンプレート作成変更部14
7により行う。
As described above, unlike the above-described embodiment, when the table of the item master and the unit master is not used, for example, the template of the template name “SELECT-1” has the following SQL statement format. What is necessary is just to reconfigure. This change is performed by the template creation changing unit 14 shown in FIG.
7 is performed.

【0026】[SELECT-1] select指図番号,開始日,品目名称,数量,単位 from製造指図 where製造指図.指図番号=’%s’[SELECT-1] select instruction number, start date, item name, quantity, unit from production instruction where production instruction. Order number = '% s'

【0027】このSQL文は、「’%s’で指定された
指図番号に基づいて、指図番号,開始日,品目名称,数
量,単位のデータを、製造指図のテーブルから選択す
る」ということを示している。一方、クライアントコン
ピュータ102のアプリケーションプログラム112に
おいては、前述した関数を何ら変更せずに用いればよ
い。このように、図1のデータベース管理システムによ
れば、RDB103bの構成や、RDBMS103aに
おけるSQL文の形態などが変更されても、これに合わ
せてテンプレートを変更すればよく、アプリケーション
プログラム112においては、何ら変更する必要がな
い。
This SQL statement indicates that “data of an instruction number, a start date, an item name, a quantity, and a unit is selected from a table of a production instruction based on the instruction number specified by '% s'”. Is shown. On the other hand, in the application program 112 of the client computer 102, the above-described function may be used without any change. As described above, according to the database management system of FIG. 1, even if the configuration of the RDB 103b or the form of the SQL statement in the RDBMS 103a is changed, the template may be changed in accordance with the change, and the application program 112 No need to change.

【0028】[0028]

【発明の効果】以上説明したように、本発明によれば、
所定の項目のデータ部分を変更可能としたSQL文のテ
ンプレートを用いて、SQL文を作成してデータベース
のアクセス制御を行うようにしたので、例えばアプリケ
ーションプログラムからは、所望とするアクセスを実現
するためには、テンプレートの指定とアクセスに必要な
項目のデータとを指定するだけでよいので、アプリケー
ション側でSQL文を用意することなく、データベース
にアクセスできるようになるという優れた効果が得られ
る。
As described above, according to the present invention,
Since the SQL statement is created and the database access control is performed using the template of the SQL statement in which the data portion of the predetermined item can be changed, for example, in order to realize a desired access from an application program. In this case, since only the specification of the template and the data of the items required for the access need only be specified, an excellent effect that the application can access the database without preparing the SQL statement is obtained.

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

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

【図2】 図1のテンプレート格納部の構成を示す構成
図である。
FIG. 2 is a configuration diagram illustrating a configuration of a template storage unit in FIG. 1;

【図3】 図1のデータベースの構成を示す構成図であ
る。
FIG. 3 is a configuration diagram showing a configuration of a database of FIG. 1;

【図4】 図1のデータベースの他の構成を示す構成図
である。
FIG. 4 is a configuration diagram showing another configuration of the database of FIG. 1;

【図5】 従来よりあるデータベース管理システムの構
成を示す構成図である。
FIG. 5 is a configuration diagram showing a configuration of a conventional database management system.

【図6】 従来よりあるデータベース管理システムの構
成を示す構成図である。
FIG. 6 is a configuration diagram showing a configuration of a conventional database management system.

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

101…ネットワーク、102…クライアントコンピュ
ータ、103…データベースアクセスサーバ、103a
…リレーショナルデータベース管理システム(RDBM
S)、103b…リレーショナルデータベース(RD
B)、104…SQL作成サーバ、112…アプリケー
ションプログラム、141…テンプレート格納部、14
2…指示受け取り部、143…テンプレート取出し部、
144…SQL文作成部、145…SQL文送信部、1
46…結果転送部、147…テンプレート作成変更部。
101: network, 102: client computer, 103: database access server, 103a
... Relational database management system (RDBM)
S), 103b ... Relational database (RD)
B), 104: SQL creation server, 112: application program, 141: template storage unit, 14
2: Instruction receiving unit, 143: Template extracting unit,
144 ... SQL sentence creation unit, 145 ... SQL sentence transmission unit, 1
46: Result transfer unit, 147: Template creation / change unit.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B075 QT06 5B082 GA08 GC04  ──────────────────────────────────────────────────続 き The continuation of the front page F term (reference) 5B075 QT06 5B082 GA08 GC04

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の項目とこの項目に対応するデータ
とからなる複数のレコードからなる複数のテーブルから
構成されたデータベースと、 このデータベースに対するアクセスをSQL文で制御す
るデータベースアクセス制御部と、 前記データベースのいずれかのテーブルの指定と、指定
したテーブル内でアクセス対象とする項目とが記述さ
れ、かつアクセス対象の特定項目の情報を変更可能な入
力部分として備えたSQL文からなる複数のテンプレー
トを格納したテンプレート格納部とを備え、 入力された前記データベースに対するアクセスの指示よ
りこのアクセスに対応するテンプレートを前記テンプレ
ート格納部より取り出し、 前記アクセスの指示で指定された特定項目の情報を前記
取り出したテンプレートの入力部に加えて前記アクセス
の指示に対応するSQL文を作成し、 この作成したSQL文を前記データベースアクセス制御
部に送信し、 前記作成したSQL文を受信した前記データベースアク
セス制御部で、受信したSQL文により前記データベー
スにアクセスすることを特徴とするデータベース管理シ
ステム。
A database configured from a plurality of tables each including a plurality of records including a plurality of items and data corresponding to the items; a database access control unit configured to control access to the databases by using an SQL statement; A plurality of templates consisting of an SQL statement in which the specification of any table of the database and the item to be accessed in the specified table are described and the information of the specific item to be accessed is provided as a changeable input part A template corresponding to the access from the input instruction for access to the database from the template storage unit, and information of the specific item designated by the access instruction being extracted from the template. In addition to the input section of An SQL sentence corresponding to the access instruction is created, the created SQL sentence is transmitted to the database access control unit, and the database access control unit that has received the created SQL sentence writes the SQL sentence to the database based on the received SQL sentence. A database management system characterized by accessing.
【請求項2】 請求項1記載のデータベース管理システ
ムにおいて、 前記テンプレート格納部に格納されているテンプレート
の指定と、このテンプレートの入力部分に加える特定項
目の情報とから構成された関数を有するアプリケーショ
ンプログラムを備え、 このアプリケーションプログラムに対して前記アクセス
の指示を入力することで前記関数が実行され、 この関数の実行により、前記アクセスに対応するテンプ
レートを前記テンプレート格納部より取り出し、前記ア
クセスの指示で指定された特定項目の情報を前記取り出
したテンプレートの入力部に加えて前記アクセスの指示
に対応するSQL文を作成することを特徴とするデータ
ベース管理システム。
2. The database management system according to claim 1, wherein the application program has a function composed of designation of a template stored in the template storage unit and information of a specific item added to an input part of the template. The function is executed by inputting the access instruction to the application program. By executing the function, a template corresponding to the access is retrieved from the template storage unit and specified by the access instruction. A database management system, wherein information of the specified item is added to an input section of the extracted template, and an SQL statement corresponding to the access instruction is created.
【請求項3】 請求項1または2記載のデータベース管
理システムにおいて、前記テンプレート格納部に格納さ
れたテンプレートの編集を行うテンプレート作成変更部
を備えたことを特徴とするデータベース管理システム。
3. The database management system according to claim 1, further comprising a template creation / change unit that edits a template stored in the template storage unit.
JP2000295684A 2000-09-28 2000-09-28 Database management system Pending JP2002108886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000295684A JP2002108886A (en) 2000-09-28 2000-09-28 Database management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000295684A JP2002108886A (en) 2000-09-28 2000-09-28 Database management system

Publications (1)

Publication Number Publication Date
JP2002108886A true JP2002108886A (en) 2002-04-12

Family

ID=18778072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000295684A Pending JP2002108886A (en) 2000-09-28 2000-09-28 Database management system

Country Status (1)

Country Link
JP (1) JP2002108886A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058734A (en) * 2005-08-26 2007-03-08 Hitachi Ltd Wide area data cooperation system
JP2009026163A (en) * 2007-07-23 2009-02-05 Fujitsu Ltd Database verification method and device
JP2009271587A (en) * 2008-04-30 2009-11-19 Toshiba Tec Corp Data management system
JP2009543226A (en) * 2006-06-29 2009-12-03 ストラタヴィア コーポレーション Automation of standard operating procedures in database management
US8738753B2 (en) 2006-06-29 2014-05-27 Hewlett-Packard Development Company, L.P. Standard operating procedure automation in database administration
JP2015114911A (en) * 2013-12-12 2015-06-22 富士通株式会社 Data storage device, data storage method, and data storage program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058734A (en) * 2005-08-26 2007-03-08 Hitachi Ltd Wide area data cooperation system
JP2009543226A (en) * 2006-06-29 2009-12-03 ストラタヴィア コーポレーション Automation of standard operating procedures in database management
US8738753B2 (en) 2006-06-29 2014-05-27 Hewlett-Packard Development Company, L.P. Standard operating procedure automation in database administration
JP2009026163A (en) * 2007-07-23 2009-02-05 Fujitsu Ltd Database verification method and device
JP2009271587A (en) * 2008-04-30 2009-11-19 Toshiba Tec Corp Data management system
JP2015114911A (en) * 2013-12-12 2015-06-22 富士通株式会社 Data storage device, data storage method, and data storage program

Similar Documents

Publication Publication Date Title
US6356913B1 (en) Generic (database-independent) and dynamically-modifiable schema
US7650335B2 (en) High-level database management system
CN100468396C (en) Mapping architecture for arbitrary data models
CA2603901C (en) System and methods for facilitating a linear grid database with data organization by dimension
JP4822889B2 (en) Database integrated reference program, database integrated reference method, and database integrated reference device
JP4227033B2 (en) Database integrated reference device, database integrated reference method, and database integrated reference program
US8412746B2 (en) Method and system for federated querying of data sources
KR20060045622A (en) Extraction, transformation and loading designer module of a computerized financial system
US20030028551A1 (en) System and method for retrieval of objects from object to relational mappings
US20030105745A1 (en) Text-file based relational database
EP1808780B1 (en) Determination of database statistics using application logic
US20120296942A1 (en) Method and system for implementing efficient updatable relational views over xml data
US7668888B2 (en) Converting object structures for search engines
JP2008532154A (en) Method, computer program, and system for processing a workflow (integrating data management operations into a workflow system)
KR100529661B1 (en) Object integrated management system
KR20070052673A (en) Clinical genomics merged repository and partial episode support with support abstract and semantic meaning preserving data sniffers
JPH04172542A (en) Function extension system for data base management system
JP2006524376A (en) Generic database schema
US7596577B2 (en) Methods and systems for specifying a user interface for an application
US5956727A (en) Heterogeneous database system with data source extensibility and alteration of database functions
JP2002108886A (en) Database management system
US6360229B2 (en) Generic execution model for isolating applications from underlying databases
US7133875B1 (en) Method and apparatus for redefining a group of related objects in a relational database system
CN111797119A (en) Caching device, caching system and caching method
US20200159712A1 (en) Database engine for amorphous data sets

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070626

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20070823

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070823

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20070823

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070925