JPH03154941A - Data base operation processing system - Google Patents

Data base operation processing system

Info

Publication number
JPH03154941A
JPH03154941A JP1294274A JP29427489A JPH03154941A JP H03154941 A JPH03154941 A JP H03154941A JP 1294274 A JP1294274 A JP 1294274A JP 29427489 A JP29427489 A JP 29427489A JP H03154941 A JPH03154941 A JP H03154941A
Authority
JP
Japan
Prior art keywords
data
unit
database
definition
request
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
JP1294274A
Other languages
Japanese (ja)
Inventor
Keiji Mogi
茂木 啓次
Kazuhiro Sato
和洋 佐藤
Miyoko Namioka
浪岡 美予子
Yoichi Yamamoto
洋一 山本
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP1294274A priority Critical patent/JPH03154941A/en
Publication of JPH03154941A publication Critical patent/JPH03154941A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To compare the data having different types with each other and to register these data by adding an area to a definition information holding part to hold the data storing attribute and providing a step to a data base operation control part to update the corresponding area added to the definition information holding part. CONSTITUTION:A data base DB definition control part 40 is called from a request control part 30 when a request is received for the definition of the DB or its change. Then the part 40 updates a DB 60 and a definition informa tion holding part 70 based on the contents of a request. A DB operation control part 50 is called from the part 30 at acceptance of the requests for operations (addition, change, deletion) given to the data stored in the DB 60. Then the part 50 analyzes the requests of users based on the definition information held by the part 70 and operates the data stored in the DB 60. Then, at the part 70, the information on the data types 83 showing the column attributes, the sorting attributes 84 showing the meaning types, and the data unit 85 are addi tionally held in a column definition information control table 80. Thus, the comparison is attained among the data of different types and these data can be registered.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベース操作処理方式に関し、より詳細に
は、データベース管理システムあるいはデータベース管
理システムとユーザの間に位置付けられるデータベース
アクセスシステムにおけるデータベース(以下、rD 
BJという)操作要求の処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a database operation processing method, and more specifically, to a database management system or a database access system located between a database management system and a user (hereinafter referred to as rD
This relates to a processing method for operation requests (referred to as BJ).

〔従来の技術〕[Conventional technology]

従来のデータベース管理システム(以下、rDB− MSJという)では、DB内に保持するデータに対して
、タイプ属性の定義を必要とし、定義されたタイプ属性
に基づいてデータ間の比較、データの登録操作の妥当性
をチエツクしていた。例えば、I S 09075: 
I nformation Processing S
ystemsD atabase L anguage
 S Q Lに示される、国際標準化機構(ISO)で
標準化したリレーショナルデータベース言語(SQL)
を見ると、DBの定義を行うテーブル舅義文では、定義
するテーブルを構成するカラム定義で、整数型、実数型
9文字型等のデータタイプを指定する。
Conventional database management systems (hereinafter referred to as rDB-MSJ) require the definition of type attributes for data held in a DB, and perform comparisons between data and data registration operations based on the defined type attributes. was checking the validity of For example, IS 09075:
Information Processing S
systems D database L anguage
A relational database language (SQL) standardized by the International Organization for Standardization (ISO), as shown in SQL.
In the table statement that defines the DB, data types such as integer type, real number type, 9-character type, etc. are specified in the column definitions that make up the table to be defined.

第4図に、従業員テーブル(emp)と部署テーブル(
dept)の定義例を示す。120は従業員テーブルの
定義例であり、従業員番号(empno)、従業員の名
前(name)、所属部署番号(dno)、給料(sa
l)の情報で構成されている。また、121は部署テー
ブルの定義例であり、部署番号(dno) 、部署の名
前(name) 。
Figure 4 shows the employee table (emp) and the department table (
An example of the definition of ``dept'' is shown below. 120 is an example of the definition of an employee table, in which the employee number (empno), employee name (name), department number (dno), salary (sa)
It consists of the information of l). Further, 121 is an example of a definition of a department table, which includes a department number (dno) and a department name (name).

管理者の従業員番号(mgrno) +予算金額(bu
dget)で構成されている。なお、int、eger
はデータタイプが整数であることを示し、char(n
)はデータタイ7− プが最大0桁の文字データであることを、それぞれ、示
している。
Administrator employee number (mgrno) + budget amount (bu
dget). In addition, int, eger
indicates that the data type is an integer, and char(n
) indicates that the data type is character data with a maximum of 0 digits.

テーブル内のタプルの操作時には、比較、登録の対象と
なるカラム同志、カラムと定数の間のデータタイプを比
較し、文字データ間、数値データ間の操作だけを認めて
いる。この場合、DBMSは、データタイプの情報によ
ってのみしか、データ間の比較、登録操作の妥当性のチ
エツクを行わない。従って、従業員番号と管理者の従業
員番号との比較は、数値データと文字データとの比較に
なるため、エラーになる。一方、従業員番号と部署番号
との比較は、意味的にはおかしくとも、DBMSはエラ
ーとは判定しない。
When manipulating tuples in a table, the columns to be compared and registered, and the data types between columns and constants, are compared, and only manipulations between character data and numeric data are permitted. In this case, the DBMS only uses data type information to compare data and check the validity of registration operations. Therefore, a comparison between the employee number and the manager's employee number results in an error because it is a comparison between numerical data and character data. On the other hand, even if the comparison between the employee number and the department number is semantically incorrect, the DBMS does not judge it as an error.

【発明が解決しようとする課題〕[Problem to be solved by the invention]

ネットワークの普及、拡大に伴い、これまで個別に開発
して来たDBシステムを統合しようという動きが出て来
ている。DBシステム統合の形態としては、第3図に示
す如き三つの形態が考えられる。図中、DBxは、それ
ぞれ個別に開発されたDBを意味しており、APxは、
ユーザプログラムを意味している。
With the spread and expansion of networks, there is a movement to integrate DB systems that have been developed individually. There are three possible forms of DB system integration as shown in FIG. In the figure, DBx means each individually developed DB, and APx is
It means a user program.

第3図(a)は、複数のD B (601,602,・
・−・)を一つのDBMS701で統合する場合である
。また、同図(b)は、各DBシステムの核であるDB
MS(702,703,・・・・)間で連絡をとり合う
ことにより、統合システムを構成する場合、同図(C)
は、I)BM S (705,707,・・・・)間の
連絡、調整を司る分散DB M S (704,706
,・・・・)により統合を図る構成である。これらの構
成の選択基準は、DBMSが提供する機能、DBMSの
異種性、あるいは適用業務の特性、運用形態等に依存す
る。
FIG. 3(a) shows a plurality of D B (601, 602, .
...) are integrated by one DBMS 701. In addition, figure (b) shows the DB, which is the core of each DB system.
When configuring an integrated system by communicating between MSs (702, 703,...), the same figure (C)
I) A distributed DBMS (704, 706, etc.) that controls communication and coordination between BMs (705, 707,...
,...) to achieve integration. The selection criteria for these configurations depends on the functions provided by the DBMS, the heterogeneity of the DBMS, the characteristics of the application business, the mode of operation, and the like.

なお、本発明においては、ユーザプログラムとDBの間
に位置するDBMSやDBMS群を、DBアクセスシス
テムと総称している。
In the present invention, a DBMS or a group of DBMSs located between a user program and a DB are collectively referred to as a DB access system.

上述の如き統合システムを構築する場合、既に作成され
ているDBの取り扱いが問題となる。すなわち、各DB
には、それぞれ大量のデータが蓄積されている。ここで
、これらのシステム間で整合性のとれたデータの管理が
行われている場合であれば、それらの統合するのは容易
である。しかし、一般には、もともと、統合を意識して
DBを設計する訳ではないので、データの重複保持、カ
ラム名やカラムのデータタイプの非統−といった問題が
あり、簡単には統合できないのが実情である。本発明に
おいては、このような問題のうち、データタイプやデー
タの単位の非統−という問題を解消することを狙ってい
る。
When constructing an integrated system as described above, handling of already created DBs becomes a problem. In other words, each DB
A large amount of data is stored in each. Here, if data is managed consistently between these systems, it is easy to integrate them. However, in general, DBs are not designed with integration in mind, so there are problems such as duplication of data, unconventional column names and column data types, and the reality is that integration is not easy. It is. Among these problems, the present invention aims to solve the problem of non-standardization of data types and data units.

例として、第4図に示したテーブル構成を考える。ここ
で、[所属する部署の管理者より多い給料を受け取って
いる従業員の名前と、その管理者の名称を得る」という
問合わせを考える。この間合わせは、SQLで記述する
と、第5図122のようになる。管理者の従業員番号は
、文字データとして定義されているため、従業員テーブ
ルの従業員番号との比較はエラーになる。
As an example, consider the table configuration shown in FIG. Here, consider a query that asks, ``Obtain the name of an employee who receives a higher salary than the manager of the department he belongs to, and the name of that manager.'' When this arrangement is described in SQL, it becomes as shown in FIG. 5, 122. Since the administrator's employee number is defined as character data, comparing it with the employee number in the employee table will result in an error.

上述の、従業員番号の如き情報は、人事DBや給与DB
等、種々のDBに格納されている。DBによって、文字
コードとして格納されているものもあれば、数値コード
として格納されているものもあり得る。また、時間や金
額のデータについて 10− は、単位の非統−という問題がある。このような状況下
で、従来のDBMSをそのまま利用するためには、デー
タのタイプ変換のためのDB再編集を行うか、DBMS
を利用する応用プログラム側で対処するという方法もあ
る。しかしながら、これを行うには、多大の労力と経費
9時間がかかるので、現実的な解決策とは言えない。
Information such as the employee number mentioned above can be found in the personnel database or payroll database.
etc. are stored in various DBs. Depending on the DB, some information may be stored as a character code, while others may be stored as a numerical code. In addition, regarding time and monetary data, there is a problem of unstandardized units. Under these circumstances, in order to use the conventional DBMS as is, you must either re-edit the DB to convert the data type, or change the DBMS.
There is also a way to deal with this problem on the application program side that uses it. However, this is not a practical solution because it requires a lot of effort and 9 hours of expense.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の技術における上述の如き問題を解
消し、データタイプやデータの単位の非統−という問題
を、DBの再編集を行うことなく解決することを可能と
するDB操作処理方式を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the above-mentioned problems in the conventional technology, and to solve the problem of unstandardized data types and data units by re-editing the DB. The object of the present invention is to provide a DB operation processing method that makes it possible to solve the problem without having to do so.

また、本発明の他の目的は、文字データ同志、数値デー
タ同志の比較、登録はすべて認めてしまうという問題を
解消することにある。例えば、第4図の例では、従業員
の名前と部署の名前とは、桁数は違うが同じデータタイ
プであり、これらの比較は意味的におかしいにもかかわ
らず、実行可能である。前述の如く、別個に開発された
DBにおいては、同じカラム名を使用しても、意味が違
う場合がある。ユーザがDBの内容を良く理解していな
いと間違った操作を要求することになり、意図した結果
を得られない場合がある。
Another object of the present invention is to solve the problem that all comparisons and registrations of character data and numerical data are permitted. For example, in the example shown in FIG. 4, the employee's name and the department's name have the same data type, although the number of digits is different, and the comparison between them is possible even though it is semantically incorrect. As mentioned above, in separately developed DBs, even if the same column name is used, the meaning may be different. If the user does not understand the contents of the DB well, the user may request the wrong operation and may not be able to obtain the intended result.

本発明においては、DBに意味的なタイプ属性(以下、
これを「分類属性」という)を持たせることにより、上
述の問題の解消を図っている。
In the present invention, a semantic type attribute (hereinafter referred to as
By providing this with a "classification attribute"), the above-mentioned problem is solved.

[課題を解決するための手段] 本発明の上述の目的は、DBと、該DBに格納するデー
タの定義情報を保持する定義情報保持部とを備え、ユー
ザプログラムからの要求を受け付け、要求の内容により
処理を振り分ける要求制御部と、DBの定義あるいは定
義変更の場合に、要求に従って前記DBと定義情報保持
部とを更新するDB定義管理部と、DB内のデータに対
する操作(追加、変更、削除)要求の場合に、要求に従
って前記DB内のデータの操作を行うDB操作管理部と
を有するDBアクセスシステムにおいて、前記定義情報
保持部に、データの比較あるいはデータの登録を行う際
に、その妥当性を判断するため2− のデータの分類属性を保持する領域を追加するとともに
、前記DB操作管理部に、前記データの分類属性の定義
およびその変更を受け付け、前記定義情報保持部内の該
当領域を更新するステップを設けたことを特徴とするD
B操作処理方式、もしくは、上述のDBアクセスシステ
ムにおいて、前記定義情報保持部に、データの単位と単
位間の換算式とを保持する領域を追加するとともに、前
記DB定義管理部に、前記データの単位および単位間の
換算式の定義およびその変更を受け付け、要求に従って
前記定義情報保持部の該当領域を更新するステップを設
けたことを特徴とするDB操作処理方式によって達成さ
れる。
[Means for Solving the Problems] The above-mentioned object of the present invention is to include a DB and a definition information holding unit that holds definition information of data to be stored in the DB, accept requests from user programs, and process requests. a request control unit that distributes processing according to the content; a DB definition management unit that updates the DB and definition information storage unit according to the request in the case of a DB definition or definition change; and a DB definition management unit that handles operations (additions, changes, In a DB access system having a DB operation management unit that operates the data in the DB according to the request in the case of a request (deletion), when comparing data or registering data in the definition information holding unit, In order to judge the validity, add an area to hold the classification attributes of the data in step 2-, and receive the definition of the classification attributes of the data and its changes in the DB operation management section, and add the area to the corresponding area in the definition information storage section. D, characterized in that it includes a step of updating the
In the B operation processing method or the above-mentioned DB access system, an area for storing data units and conversion formulas between units is added to the definition information storage section, and an area for storing the data units and the conversion formula between the units is added to the DB definition management section. This is achieved by a DB operation processing method characterized by the step of accepting definitions of units and conversion formulas between units and changes thereto, and updating the corresponding area of the definition information holding unit in accordance with the request.

[作用] 本発明に係るDB操作処理方式においては、DBアクセ
スシステムを利用する端末ユーザは、DB定義時に、分
類属性、単位を定義する。このとき、比較可能性のある
カラムには、同じ分類属性を割り当てる。例えば、第4
図のテーブルの定義は、第6図に示すようになる。すな
わち、カラム定義の後に、分類属性132.単位133
を記述する。
[Operation] In the DB operation processing method according to the present invention, a terminal user who uses a DB access system defines classification attributes and units when defining a DB. At this time, the same classification attribute is assigned to columns that can be compared. For example, the fourth
The definition of the table in the figure is as shown in FIG. That is, after the column definition, the classification attribute 132. Unit 133
Describe.

従業員テーブルの従業員番号と、部署テーブルの管理者
の従業員番号との比較を可能にするため、同じ分類属性
(empcode)を設定している。
In order to enable comparison between the employee number in the employee table and the employee number of the manager in the department table, the same classification attribute (empcode) is set.

また、既存のテーブルに対して、分類属性、単位を設定
する場合には、第7図に示すように、定義変更を行う。
Furthermore, when setting classification attributes and units for an existing table, the definitions are changed as shown in FIG.

第7図中、140〜143はそれぞれ従業員テーブルの
従業員番号1名前1部署番号、給料に分類属性を設定す
る例を示している。なお、143では、単位も設定して
いる。
In FIG. 7, 140 to 143 indicate an example in which classification attributes are set for employee number 1 name 1 department number and salary in the employee table, respectively. Note that in 143, the unit is also set.

単位およびその換算式の定義は、例えば、第8図に示す
ように行う。+50は単位として円(yen)を定義し
ている。ここでは、円を基本単位としているので、換算
式は指定していない。これに対して151.152では
千円(ki 1oyen) 、万円(manyen)を
定義している。単位の定義は、その単位名をカラム定義
に指定する前に実施する。
The units and their conversion formulas are defined, for example, as shown in FIG. +50 defines yen as a unit. Here, since the basic unit is the yen, no conversion formula is specified. On the other hand, 151.152 defines 1,000 yen (ki 1 oyen) and 10,000 yen (manyen). Define the unit before specifying the unit name in the column definition.

後に詳述する如く、DBアクセスシステムのDB定義管
理部は、上記要求量は取り時、要求に従って、カラム定
義情報管理テーブルおよび単位情4 報管理テーブルを更新する。テーブル定義の場合は、カ
ラム定義情報管理テーブルに、定義するテーブルを構成
するカラムの定義情報を追加する。
As will be described in detail later, the DB definition management section of the DB access system updates the column definition information management table and the unit information management table in accordance with the request when receiving the above-mentioned requested amount. In the case of table definition, add the definition information of the columns that make up the table to be defined to the column definition information management table.

カラム定義変更の場合には、カラム定義情報管理テーブ
ル中の該当カラムの定義情報を探し出し、指定された定
義内容の変更を行う。単位の定義の場合には、単位情報
管理テーブルに定義され単位の定義情報を追加する。
In the case of changing the column definition, the definition information of the corresponding column in the column definition information management table is searched, and the specified definition contents are changed. In the case of unit definition, the unit definition information defined in the unit information management table is added.

DB操作要求時、ユーザは、従来と同様に要求を発行す
る。このとき、分類属性が一致するカラム同志ならば、
データタイプが異なっていても比較条件を指定できる。
When requesting a DB operation, the user issues the request in the same manner as before. At this time, if the columns have matching classification attributes,
Comparison conditions can be specified even if the data types are different.

例えば、第5図に示した如き問合わせを発行したとする
。DBアクセスシステムのDB操作管理部が、ユーザの
要求を解析し実行する。このとき、条件部の比較妥当性
チエツクを分類属性と単位に基づいて行う。解析時、分
類属性が異なるカラム間の比較はエラーにする。
For example, suppose that an inquiry as shown in FIG. 5 is issued. The DB operation management unit of the DB access system analyzes and executes the user's request. At this time, a comparative validity check of the condition part is performed based on the classification attribute and unit. During analysis, comparisons between columns with different classification attributes will result in an error.

上述の例の場合、従業員番号と管理者の従業員番号との
比較は、同じ分類属性であり、かつ、単位は定義されて
いないので、比較を認める。なお、+5 分類属性が未設定のカラムや、定数指定の場合には、比
較や登録操作の相手先のカラムと同じ分類属性、単位を
有するとみなす。分類属性や単位を明示的に指定する場
合、例えば、下記の如く記述する。
In the case of the above example, the comparison between the employee number and the manager's employee number is allowed because they have the same classification attribute and the unit is not defined. Note that if the +5 classification attribute is not set or a constant is specified, it is assumed that the column has the same classification attribute and unit as the column to which the comparison or registration operation is performed. When explicitly specifying classification attributes and units, for example, write as follows.

設定対象(分類属性二単位) 上述の設定対象の部分には、カラム名や定数指定が入り
、後ろに、括弧付きで分類属性と単位を指定する。
Setting target (classification attribute 2 units) The above setting target section contains the column name and constant specification, followed by the classification attribute and unit specified in parentheses.

DB操作管理部は、要求された操作を解析後、要求され
た操作を実行する。操作実行時には、データ間の比較を
行う場合、最初にデータタイプを合わせるタイプ変換を
行う。文字データと数値データの比較の場合、数値デー
タのデータタイプに合わせて、文字データをタイプ変換
する。なお、文字データを数値データとして扱う必要が
ある場合、文字データが数値の記述形式に従っているな
らば、数値データにタイプ変換する。数値の記述形式に
従っていない場合は、タイプ変換できないので、以降の
処理の対象にしない。その後、数値6 データの場合、単位が定義されていれば、単位を合わせ
るための換算を行う。
The DB operation management unit executes the requested operation after analyzing the requested operation. When performing an operation, when comparing data, type conversion is first performed to match the data types. When comparing character data and numeric data, convert the character data to match the data type of the numeric data. Note that when character data needs to be handled as numerical data, if the character data conforms to the numerical description format, the type is converted to numerical data. If it does not follow the numerical description format, type conversion cannot be performed and it will not be subject to subsequent processing. Then, in the case of numeric value 6 data, if a unit is defined, conversion is performed to match the unit.

また、データの追加、更新時の登録操作を行う場合にも
、比較の場合と同様に、タイプ変換、換算を行った後に
、登録操作を行う。なお、数値データを文字データとし
て登録する場合には、換算後、タイプ変換を行うことに
なる。
Also, when performing a registration operation when adding or updating data, the registration operation is performed after type conversion and conversion, as in the case of comparison. Note that when registering numerical data as character data, type conversion is performed after conversion.

異なる分類属性のデータ同志の四則演算結果の分類属性
や単位は、その結果を使って比較、登録する対象の分類
属性、単位と等価として扱う。組み込み関数指定の演算
結果の場合も同様である。
The classification attributes and units that are the results of four arithmetic operations on data with different classification attributes are treated as equivalent to the classification attributes and units that are to be compared and registered using the results. The same applies to the operation result of a built-in function specification.

同じ分類属性のデータ同志の四則演算の場合で、換算可
能なデータ同志を加減算する場合には、データ値の単位
合わせを実施した後に、加減算を行う。このとき、演算
結果の単位は、換算した単位になる。乗算、除算の演算
結果の分類属性と単位は、その結果を使って比較、登録
する対象の分類属性、単位と等価として扱う。
In the case of four arithmetic operations on data of the same classification attribute, when adding or subtracting convertible data, the addition or subtraction is performed after unit matching of data values. At this time, the unit of the calculation result is the converted unit. The classification attributes and units of the results of multiplication and division operations are treated as equivalent to the classification attributes and units of the objects to be compared and registered using the results.

上述の如き処理により、データタイプの異なるデータ間
の比較、登録操作と、単位の異なるデー7− タ間の比較、登録操作とが、DBの再編集無しに可能と
なり、また、ユーザは、DBの定義情報の詳細を知るこ
となしに、要求を発行することができる。
The above-described processing makes it possible to compare and register data of different data types and to compare and register data of different units without re-editing the DB. Requests can be issued without knowing the details of the definition information.

(実施例〕 以下、本発明の実施例を図面に基づいて詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail based on the drawings.

第1図は、本発明の一実施例の全体構成を説明する図で
ある。第1図に示す実施例においては、DBアクセスシ
ステム20が、本発明を実現している。ユーザは、ユー
ザプログラムIOを介して、DBアクセスシステム20
に処理を要求する。
FIG. 1 is a diagram illustrating the overall configuration of an embodiment of the present invention. In the embodiment shown in FIG. 1, a DB access system 20 implements the present invention. The user accesses the DB access system 20 via the user program IO.
request processing.

DBアクセスシステム20は、大きく分けて、要求制御
部30.DB定義管理部40.DB操作管理部50の三
つから構成される。要求制御部30は、ユーザからの要
求を受付け、その内容によって処理を振り分ける。DB
定義管理部40は、DBの定義あるいは定義変更の要求
受付は時に要求制御部30から呼ばれ、要求の内容に従
ってDB60と定義情報保持部70を更新する。DB操
作管理部50は、DB 18− 60内のデータに対する操作(追加、変更、削除)要求
受付は時に要求制御部30から呼ばれ、定義情報保持部
70にある定義情報を利用し、ユーザの要求を解析後、
DB60内のデータを操作する。定義情報保持部70に
は、カラムの属性として、データタイプ83の他に、意
味的なタイプを示す分類属性84や、データの単位85
といった情報を、カラム定義情報管理テーブル80に追
加保持する。また、データの単位に関する定義情報とし
て、単位名91.基本となる単位92.換算式93を単
位情報管理テーブル90に保持する。なお、実施例では
、リレーショナルDBを想定しているため、管理情報を
テーブルの形式で管理している。
The DB access system 20 is broadly divided into request control units 30. DB definition management section 40. It is composed of three parts: a DB operation management section 50; The request control unit 30 receives requests from users and distributes processing depending on the contents. DB
The definition management section 40 is sometimes called by the request control section 30 to accept requests for DB definitions or definition changes, and updates the DB 60 and definition information holding section 70 according to the contents of the request. The DB operation management unit 50 is sometimes called by the request control unit 30 to accept requests for operations (additions, changes, deletions) on data in the DB 18-60, and uses definition information in the definition information holding unit 70 to accept requests for operations (additions, changes, deletions) on data in the DB 18-60. After parsing the request,
Manipulate data in DB60. In addition to the data type 83, the definition information holding unit 70 includes column attributes such as a classification attribute 84 indicating a semantic type and a data unit 85.
Such information is additionally held in the column definition information management table 80. Also, as definition information regarding the unit of data, unit name 91. Basic unit 92. The conversion formula 93 is held in the unit information management table 90. In the embodiment, since a relational DB is assumed, management information is managed in a table format.

第2図は、本発明を実施する最小機器構成を示す図であ
る。本発明の構成要素である、前述のDBアクセスシス
テム20およびユーザプログラム10は、計算機2上で
稼動する。2次記憶装置3は、DB60や、定義情報保
持部70を格納している。端末1は、ユーザプログラム
IOを起動したり、ユーザプログラム10との対話を行
うのに使用する。第一+9− 2図では、一つの計算機だけを示したが、ネットワーク
で結ばれた複数の計算機上に、前述の構成要素が配置さ
れていても良い。
FIG. 2 is a diagram showing the minimum equipment configuration for implementing the present invention. The aforementioned DB access system 20 and user program 10, which are components of the present invention, operate on the computer 2. The secondary storage device 3 stores a DB 60 and a definition information holding section 70. The terminal 1 is used to start the user program IO and to interact with the user program 10. Although only one computer is shown in Figure 1+9-2, the above-mentioned components may be placed on multiple computers connected by a network.

なお、第1図に示したDBアクセスシステム20は、先
に第3図に示した如き、複数のDBを管理する形態とし
ての、三つの形態を包含している。
Note that the DB access system 20 shown in FIG. 1 includes three forms for managing a plurality of DBs, as shown in FIG. 3 above.

以下、ユーザからのDB定義、定義変更およびDB操作
要求受付は時の、DBアクセスシステム20の処理内容
を、詳細に説明する。
Hereinafter, the processing contents of the DB access system 20 when receiving a DB definition, definition change, and DB operation request from a user will be explained in detail.

(1)要求制御処理 まず、上述の要求制御部30の処理の流れを、第12図
に示す。要求制御部30は、最初にユーザからの要求内
容を構文解析し、解析トリーを生成する(ステップ30
1)。その後、要求の内容をチエツクしくステップ30
2)、要求の内容がDBの定義に関するものであれば、
DB定義管理部40を呼び出す(ステップ303)。D
B操作に関する要求の場合には、DB操作管理部50を
呼び出す(ステップ304)。
(1) Request Control Process First, the flow of the process of the above-mentioned request control section 30 is shown in FIG. The request control unit 30 first parses the content of the request from the user and generates an analysis tree (step 30
1). After that, check the contents of the request in step 30.
2) If the request is related to the DB definition,
The DB definition management unit 40 is called (step 303). D
If the request is related to B operation, the DB operation management section 50 is called (step 304).

その他の要求の場合には、対応する管理部を呼び出す(
ステップ305)。なお、上述のその他の要求20 としでは、DBの制御に関するもの等があるが、本発明
とは直接関係がないので、ここでは、説明を省略してい
る。
For other requests, call the corresponding management department (
Step 305). Note that the above-mentioned other requests 20 are related to DB control, etc., but since they are not directly related to the present invention, their explanations are omitted here.

各管理部の処理が終わって制御が戻ったら、呼び出し元
のユーザプログラムlOに制御を戻す。
When the processing of each management section is completed and control is returned, control is returned to the calling user program IO.

第13図に、上述の構文解析301の処理の流れを示す
。構文解析301では、字句解析をしながら、例えば、
第9図に示す如き解析トリーを作成する。
FIG. 13 shows the processing flow of the syntax analysis 301 described above. In the syntactic analysis 301, while performing lexical analysis, for example,
An analysis tree as shown in FIG. 9 is created.

本解析トリーは、第5図に示した問合わせを解析した例
である。解析トリーは、要求の全体構成を保持する要求
管理ブロック200と、要求の内訳を示すノード(図の
、楕円で囲んだ部分)および名称や定数の格納部(図の
、四角で囲んだ部分)から構成されている。要求管理ブ
ロック200は、要求のタイプを保持するフィールド2
01と、各タイプの要求を記述した文の構成に従った、
ノードリストへのポインタ(202〜207)から構成
されている。ポインタの意味は、要求によって異なる。
This analysis tree is an example of analyzing the inquiry shown in FIG. The analysis tree includes a request management block 200 that holds the overall structure of the request, a node that shows the details of the request (the part surrounded by an oval in the figure), and a storage part for names and constants (the part surrounded by a square in the figure). It consists of The request management block 200 includes a field 2 that holds the type of request.
01 and according to the sentence structure describing each type of request,
It consists of pointers (202 to 207) to the node list. The meaning of the pointer varies depending on the request.

第13図に示す如く、構文解析301では、最初の字句
を解析して要求タイプをチエツクし、要求管理ブロック
の要求タイプに、要求の内容を示すコード(検索、追加
、変更、削除、テーブル定義等)を設定する(ステップ
320)。その後、要求のタイプに従って、構文仕様に
従っているかをチエツクしながら、各要求タイプに沿っ
た解析トリーを生成していく(ステップ321〜330
)。
As shown in FIG. 13, in syntax analysis 301, the first lexical is analyzed to check the request type, and a code indicating the content of the request (search, addition, change, deletion, table definition) is added to the request type of the request management block. etc.) (step 320). Then, according to the type of request, a parse tree is generated according to each request type while checking whether the syntax specifications are followed (steps 321 to 330).
).

例えば、検索要求327の場合の処理フローを、第14
図に示す。まず、5elect節から検索対象のカラム
を指示する射影項目ノードを要求管理ブロックに繋げる
(ステップ340)。第9図の例では、第5図の間合わ
せ中のx、nameを射影項目ノード218と名称の記
憶域219と220を生成し、射影項目ポインタ203
からポイントしている。次に、from節から検索対象
のテーブルを指示するテーブル指定を取り出し、テーブ
ル指定ノードを生成し、要求管理ブロックに緊げる(ス
テップ341)。第9図の例では、from節で指定さ
れた三つのテーブルに対応するテーブル指定ノード21
0〜212と、それぞれの名称の記憶域213〜217
を生成し、ポインタチエインで結び、テーブル1ぢ定ポ
インタ202から先頭のテーブル指定ノード210をポ
イントする。
For example, the processing flow for the search request 327 is
As shown in the figure. First, a projection item node indicating a column to be searched from the 5select clause is connected to the request management block (step 340). In the example of FIG. 9, a projection item node 218 and name storage areas 219 and 220 are created for x and name in the arrangement shown in FIG. 5, and the projection item pointer 203
Points from. Next, a table specification indicating the table to be searched is extracted from the from clause, a table specification node is generated, and it is stored in the request management block (step 341). In the example in FIG. 9, the table specification node 21 corresponds to the three tables specified in the from clause.
0 to 212 and storage areas 213 to 217 for their respective names.
are generated and connected by a pointer chain, and the table 1 fixed pointer 202 points to the first table specification node 210.

その後、where節、 group by節、 ha
ving節、 orderby節の指定があれば、それ
ぞれ対応するノードを生成し、要求管理ブロック中の条
件節、グループ指定、グループ条件、ソート指定をポイ
ントするフィールドに繋げる(ステップ342〜345
)。
After that, the where clause, group by clause, ha
If the ving clause and orderby clause are specified, corresponding nodes are generated and connected to the fields pointing to the condition clause, group specification, group condition, and sort specification in the request management block (steps 342 to 345).
).

第9図の例では、where節しか指定されていないの
で、条件式に対応するANDノード221,229、比
較条件ノード222.230.236、および、カラム
指定ノード223,224,231,232,237,
238と名称の記憶域225〜228.233〜235
.239〜242を作成し、それぞれポインタチエイン
で結び、条件節ポインタ204からANDノード22+
をポイントする。
In the example of FIG. 9, only the where clause is specified, so the AND nodes 221, 229, comparison condition nodes 222, 230, 236, and column specification nodes 223, 224, 231, 232, 237 corresponding to the conditional expression are specified. ,
238 and name storage area 225-228.233-235
.. 239 to 242, connect them with a pointer chain, and create an AND node 22+ from the conditional clause pointer 204.
point.

解析トリー中の各ノードは、第10図250に示す如く
、ノードの内容を示すノードタイプ251.ノード間の
ポインタチエインのための左右ノードポインタ252.
253等の他に、要求中で指示された分類属性、単位を
示すフィールド254,255や、以降の処理で使用す
る、換算式を示すフィールド256から構成されている
Each node in the analysis tree has a node type 251. which indicates the contents of the node, as shown in FIG. 10 250. Left and right node pointers 252 for pointer chains between nodes.
253, fields 254 and 255 indicating the classification attribute and unit specified in the request, and a field 256 indicating a conversion formula used in subsequent processing.

本実施例においては、射影項目や条件中に指定された定
数指定やカラム指定に、分類属性、単位の指定があった
場合に、指定された分類属性、単位を解析トリーの領域
に複写し、対応するノードからポイントする処理を追加
する。通常、定数指定やカラム指定の解析処理は、共通
モジュール化しているので、そこだけ変更を加えれば良
い。追加、変更、削除の解析処理(ステップ328〜3
30)においても、上述の変更点は同様である。テーブ
ル定義や定義変更では、カラム定義に分類属性や単位が
指定されたときの解析処理を追加する。また、単位定義
やその変更要求に対する解析処理も追加する。
In this embodiment, if a classification attribute or unit is specified in a constant specification or column specification specified in a projection item or condition, the specified classification attribute or unit is copied to the area of the analysis tree, Add processing to point from the corresponding node. Normally, the analysis process for constant specification and column specification is made into a common module, so you only need to make changes there. Analysis processing of additions, changes, and deletions (steps 328 to 3)
30), the above-mentioned changes are the same. When defining a table or changing a definition, add analysis processing when a classification attribute or unit is specified in a column definition. Also, add analysis processing for unit definitions and their change requests.

(2)DB定義管理部40の処理 I)B定義管理部40の処理の流れを、第15図に示す
。DB定義管理部40は、最初に、ステップ401で、
要求管理ブロック200の要求タイプ201をチエツク
し、各要求タイプ毎に、解析トリーと定義情報保持部7
0を参照しながら、要求された処理を実行する。処理が
終了したならば、要求制御部304 に制御を戻す。
(2) Processing of the DB definition management unit 40 I) The flow of processing of the B definition management unit 40 is shown in FIG. The DB definition management unit 40 first, in step 401,
The request type 201 of the request management block 200 is checked, and the analysis tree and definition information holding unit 7 are created for each request type.
The requested process is executed while referring to 0. When the processing is completed, control is returned to the request control unit 304.

以下、各要求タイプ毎の処理を示す。The processing for each request type is shown below.

(2−1)テーブル定義の場合 テーブル定義の場合には、最初に、指定されたテーブル
が未定義であること、指定されたカラム名が重複しない
こと(ステップ402.403)をチエツクする。また
、カラム定義で指、定された単位が、単位情報管理テー
ブル90に存在することをチエツクする(ステップ40
4)。その後、定義されたテーブルのテーブル定義情報
をテーブル定義情報管理テーブルに登録しくステップ4
05)、カラム群の定義情報をカラム定義情報管理テー
ブル80に登録する(ステップ406)。カラム定義情
報の登録時、分類属性、単位の指定があれば、−緒に登
録する。
(2-1) In the case of table definition In the case of table definition, it is first checked that the specified table is undefined and that the specified column names are unique (steps 402 and 403). Also, it is checked that the unit specified in the column definition exists in the unit information management table 90 (step 40).
4). After that, register the table definition information of the defined table in the table definition information management table in step 4.
05), the definition information of the column group is registered in the column definition information management table 80 (step 406). When registering column definition information, if classification attributes and units are specified, they are also registered.

例えば、第6図の従業員テーブルの定義130の如き場
合には、第1図のカラム定義情報管理テーブル80に示
した如く、カラム定義情報を格納する。
For example, in the case of the employee table definition 130 in FIG. 6, column definition information is stored as shown in the column definition information management table 80 in FIG.

(2−2)テーブル定義変更の場合 テーブル定義変更の場合には、最初に、指定されたテー
ブルが既定義であることをチエツクする(ステップ41
O)。次に、変更要求の内容をチエツクする(ステップ
411)。カラム追加の場合には、カラム名の一意性を
チエツク後、追加するカラムのカラム定義情報を、カラ
ム定義情報管理テーブル80に追加する(ステップ41
2)。分類属性、単位の指定があれば、カラム名、デー
タタイプと一緒に登録する。カラム定義更新の場合には
、指定されたカラムの存在チエツク後、カラム定義情報
管理テーブル80内の指定されたカラムのカラム定義情
報を更新する(ステップ413)。本処理では、単位の
変更が指定された場合に、その単位が単位情報管理テー
ブル90に存在することをチエツクすることと、分類属
性、単位の変更があれば、カラム定義情報管理テーブル
80内の、変更対象の分類属性、単位を変更する点に特
徴がある。なお、カラムの単位の変更は、定義間違いの
修正であり、単位の変更によるデータ値の変更は行わな
い。
(2-2) When changing the table definition When changing the table definition, first check whether the specified table is already defined (step 41).
O). Next, the contents of the change request are checked (step 411). When adding a column, after checking the uniqueness of the column name, the column definition information of the column to be added is added to the column definition information management table 80 (step 41).
2). If classification attributes and units are specified, register them together with column names and data types. In the case of column definition update, after checking the existence of the specified column, the column definition information of the specified column in the column definition information management table 80 is updated (step 413). In this process, when a unit change is specified, it is checked whether the unit exists in the unit information management table 90, and if there is a change in the classification attribute or unit, it is checked in the column definition information management table 80. , is characterized by changing the classification attributes and units to be changed. Note that changing the unit of a column is to correct a definition error, and changing the unit does not change the data value.

(2−3)テーブル削除の場合 テーブル削除の場合は、指定されたテーブルが既定義で
あることをチエツクした(ステップ420)後、指定さ
れたテーブルのテーブル定義情報、カラム定義情報をす
べて、定義情報保持部から削除する(ステップ421,
422)。テーブル削除では、本発明による変更部分は
ない。
(2-3) In the case of table deletion In the case of table deletion, after checking that the specified table has already been defined (step 420), all table definition information and column definition information of the specified table are deleted. Delete from the information holding unit (step 421,
422). In table deletion, there are no changes according to the present invention.

(2−4)単位定義の場合 単位定義の場合、単位定義で指定された新たな単位が、
単位情報管理テーブル90に存在しないこと(ステップ
430)、および、換算式中に指定された単位が単位情
報管理テーブル90内に既に存在すること(ステップ4
31)をチエツクする。チエツク後、単位の基本単位を
設定する(ステップ432)。
(2-4) In the case of a unit definition In the case of a unit definition, the new unit specified in the unit definition is
The unit specified in the conversion formula does not exist in the unit information management table 90 (step 430), and the unit specified in the conversion formula already exists in the unit information management table 90 (step 4
Check 31). After checking, the basic unit of the unit is set (step 432).

換算式の指定のない単位は、それ自身が基本単位となる
。換算式の指定がある場合、換算式中に指定された単位
の単位定義情報を取り出し、その基本単位を、定義され
た単位の基本単位として設定する。最後に、単位名、換
算式等の、指定された単位の定義情報を、単位情報管理
テーブル90に登録する(ステップ433)。
A unit without a conversion formula is itself a basic unit. If a conversion formula is specified, the unit definition information of the unit specified in the conversion formula is extracted and the basic unit is set as the basic unit of the defined unit. Finally, the definition information of the specified unit, such as the unit name and conversion formula, is registered in the unit information management table 90 (step 433).

(2−5)単位定義変更の場合 単位定義の変更、すなわち、換算式の変更の場7 合には、最初に、指定された単位が単位情報管理テーブ
ル90に存在すること(ステップ440)、および、換
算式中に指定された単位が単位情報管理テーブル90内
に既に存在すること(ステップ441)をチエツクする
。チエツク後、単位の基本単位を設定する(ステップ4
42)。換算式が指定された場合には、単位情報管理テ
ーブル90中の指定された単位の単位情報の換算式を変
更するとともに、換算式中に指定された単位の単位情報
を取り出し、その基本単位を、変更する単位の基本単位
として設定する。但し、変更前と変更後の換算式中の単
位が同じならば、基本単位は変わらない。換算式が指定
されなかった場合には、自分自身が基本単位になる。
(2-5) In case of unit definition change In the case of unit definition change, that is, conversion formula change, the specified unit must first exist in the unit information management table 90 (step 440), Then, it is checked whether the unit specified in the conversion formula already exists in the unit information management table 90 (step 441). After checking, set the basic unit (step 4)
42). When a conversion formula is specified, the conversion formula for the unit information of the specified unit in the unit information management table 90 is changed, the unit information of the unit specified in the conversion formula is extracted, and its basic unit is changed. , set as the basic unit of the unit to be changed. However, if the units in the conversion formula before and after the change are the same, the basic unit will not change. If no conversion formula is specified, the unit itself becomes the base unit.

その後、単位情報管理テーブル90内の指定された単位
定義情報に対して、必要な換算式、基本単位の変更を行
う(ステップ443)。最後に、定義変更による影響が
及ぶ単位について、定義情報の更新を行う(ステップ4
44)。つまり、定義変更を行う単位の基本単位が変わ
った場合に、当該単位をS 換算式中に指定している単位について、その単位の単位
定義情報中の基本単位を更新する。この更新は、再帰的
に行う。
Thereafter, necessary conversion formulas and basic units are changed for the specified unit definition information in the unit information management table 90 (step 443). Finally, update the definition information for the units affected by the definition change (step 4).
44). That is, when the basic unit of the unit whose definition is to be changed changes, the basic unit in the unit definition information for that unit is updated for the unit specified in the S conversion formula. This update is performed recursively.

(2−6)単位定義削除の場合 単位定義削除の場合は、まず、指定された単位が単位情
報管理テーブル90に存在することをチエツクする(ス
テップ450)。次に、削除する単位を単位としている
カラムについて、カラム定義情報から当該単位の指定を
消去する(ステップ451)。
(2-6) In the case of deleting a unit definition In the case of deleting a unit definition, first, it is checked whether the specified unit exists in the unit information management table 90 (step 450). Next, for the column whose unit is the unit to be deleted, the designation of the unit is deleted from the column definition information (step 451).

更に、ステップ452で、削除する単位を換算式中の単
位に指定している単位の単位定義情報を削除する。この
削除処理と、それに伴うカラム定義情報内の単位指定の
消去を再帰的に行う。最後に、単位情報管理テーブル9
0中の指定された単位定義情報を削除する(ステップ4
53)。
Furthermore, in step 452, the unit definition information of the unit that specifies the unit to be deleted as the unit in the conversion formula is deleted. This deletion process and the accompanying deletion of the unit specification in the column definition information are performed recursively. Finally, unit information management table 9
Delete the specified unit definition information in 0 (Step 4
53).

上記(2−4)〜(2−6)の処理は、本発明により新
たに導入されたものである。なお、上記単位定義の変更
、削除の処理では、他の単位情報の更新を伴う場合は、
エラーとして認めないとか、再帰的更新が発生するよう
な要求は認めないといった仕様にするのも一つの考え方
である。
The processes (2-4) to (2-6) above are newly introduced by the present invention. In addition, if the process of changing or deleting the unit definition above involves updating other unit information,
One way to think about it is to create a specification that does not accept requests that are considered errors or requests that cause recursive updates.

上述の単位として定義されるものには、「時間」:秒2
分9時間9日2年、・・・・等「重量」ニゲラム、キロ
グラム、トン、オンス、匁、・・・・等 「長さ」:メートル、ヤード、寸、・・・・等が考えら
れる。標準と考えられるものは、システム側で装備する
方式も考えられる。
The units defined above include "time": seconds2
Minutes, 9 hours, 9 days, 2 years, etc. "Weight": nigerum, kilogram, ton, ounce, momme, etc. "Length": meters, yards, dimensions, etc. can be considered. . If it is considered standard, it may be possible to equip it on the system side.

(3)DB操作管理部50の処理 DB操作管理部50の処理の流れを、第16図に示す。(3) Processing of the DB operation management unit 50 The flow of processing by the DB operation management section 50 is shown in FIG.

D’B操作管理部50は、最初に、要求制御部30から
受け取った解析トリーに基づき、定義情報保持部70の
内容と照らし合わせながら、意味解析を行う(ステップ
501)。この意味解析では、テーブル定義情報、カラ
ム定義情報を、定義情報保持部70から検索し、指定さ
れたテーブルやカラムの存在チエツク等の要求の妥当性
チエツクを行う。更に、第1+図に示す如く、以降の処
理で必要となるテーブル管理ブロック270や、カラム
管理ブロック280等を作成し、解析トリーのポインタ
チェイ30 ンの付は換えを行う。意味解析の後は、リレーショナル
DBの特徴である、DBへのアクセス手順を決定する最
適化を行う(ステップ502)。最適化の後、決定した
アクセス手順を実行する処理手続きを生成する(ステッ
プ503)。その後、生成した処理手続きを実行し、要
求されたDB操作を実現する(ステップ504)。処理
が終了すれば、制御を要求制御部30に戻す。
The D'B operation management section 50 first performs semantic analysis based on the analysis tree received from the request control section 30 while comparing it with the contents of the definition information holding section 70 (step 501). In this semantic analysis, table definition information and column definition information are retrieved from the definition information holding unit 70, and the validity of the request is checked, such as checking the existence of a specified table or column. Furthermore, as shown in Figure 1+, table management blocks 270, column management blocks 280, etc. that are required in subsequent processing are created, and the pointer chains 30 of the analysis tree are replaced. After the semantic analysis, optimization is performed to determine the access procedure to the DB, which is a characteristic of relational DBs (step 502). After optimization, a processing procedure for executing the determined access procedure is generated (step 503). Thereafter, the generated processing procedure is executed to realize the requested DB operation (step 504). When the processing is completed, control is returned to the request control unit 30.

以下、各処理の詳細を示す。Details of each process are shown below.

(3−1)意味解析 意味解析の処理の流れを、第17図に示した。意味解析
では、最初に、ステップ510で、テーブル指定ノード
のチェーンを辿りながら指定されたテーブルのテーブル
定義情報を検索し、存在チエツクをしながら、テーブル
管理ブロック270を作成する。このとき、テーブル指
定ノードのテーブル名へのポインタを、当該テーブル管
理ブロックを指すように付は換える。なお、このテーブ
ル管理ブロック270は、テーブル名271等のテーブ
ル定義情報を保持する。また、ラベルの指定がある場1
− 合には、ラベル管理ブロック275を生成し、ラベルの
付いたテーブルのテーブル管理ブロック270へのポイ
ンタチエインを張る。テーブル指定ノードのラベル名へ
のポインタを、ラベル管理ブロック275へのポインタ
に付は換える。ラベル管理ブロック275は、ラベル名
276、対応するテーブル管理ブロックへのポインタ2
77等を保持する。なお、テーブル管理ブロック270
は、テーブル毎に1個だけ生成する。
(3-1) Semantic analysis The flow of semantic analysis processing is shown in FIG. 17. In the semantic analysis, first, in step 510, the table definition information of the specified table is searched for while tracing the chain of table specification nodes, and the table management block 270 is created while checking for existence. At this time, the pointer to the table name of the table specification node is changed to point to the table management block. Note that this table management block 270 holds table definition information such as a table name 271. In addition, if a label is specified, 1
- If so, generate a label management block 275 and establish a pointer chain to the table management block 270 of the labeled table. The pointer to the label name of the table specification node is replaced with a pointer to the label management block 275. The label management block 275 includes a label name 276 and a pointer 2 to the corresponding table management block.
Holds 77th grade. Note that the table management block 270
generates only one for each table.

次に、ステップ511で、射影項目や条件節等のノード
のチエインを辿りながら、カラムが指定されているもの
を抽出し、指定されたカラムのカラム定義情報を検索し
、カラム管理ブロック280を生成することにより、カ
ラムの存在チエツクを行う。テーブル名やラベル名が付
いたカラムの場合には、対応するテーブルにカラムが存
在するか否かをチエツクする。テーブル名やラベル名が
付いていないカラムの場合には、テーブル管理ブロック
270を作成したテーブル中に当該カラムが存在するこ
と、また、複数のテーブルに存在しないこ2 とをチエツクする。更に、カラムが指定されているノー
ドのカラム名へのポインタ、テーブル名およびラベル名
へのポインタを、それぞれ、対応するカラム管理ブロッ
ク280.テーブル管理ブロック270およびラベル管
理ブロック275を指すように付は換える。カラム管理
ブロック280は、カラム毎に1個だけ生成し、カラム
名281や、分類属性282.単位283等のカラム定
義情報、および、当該カラムが属するテーブルのテーブ
ル管理ブロック270へのポインタ284等の管理情報
を保持している。
Next, in step 511, while tracing the chain of nodes such as projection items and conditional clauses, those with specified columns are extracted, the column definition information of the specified column is searched, and the column management block 280 is generated. The presence of the column is checked by doing this. If the column has a table name or label name, check whether the column exists in the corresponding table. If the column does not have a table name or label name, it is checked that the column exists in the table in which the table management block 270 was created, and that it does not exist in multiple tables. Furthermore, a pointer to the column name, table name, and label name of the node where the column is specified are respectively stored in the corresponding column management block 280. The table management block 270 and label management block 275 are reassigned to point to them. Only one column management block 280 is generated for each column, and includes column name 281, classification attribute 282 . It holds column definition information such as a unit 283 and management information such as a pointer 284 to the table management block 270 of the table to which the column belongs.

最後に、ステップ512で、タイプ互換性チエツクを行
う。従来は、追加、変更の場合の値を登録するカラムと
登録する値の間、および、条件中で比較する対象同志の
間で、データタイプの互換性をチエツクしていた。すな
わち1文字データと数値データ間の比較、登録をエラー
にしていた。本発明では、データタイプの代りに分類属
性および単位で互換性をチエツクする。文字データであ
っても、内容が数値の表現形式になっていれば、数値と
して扱えるようにするので、エラーにしない。
Finally, in step 512, a type compatibility check is performed. Conventionally, data type compatibility was checked between the column in which the value is registered and the value to be registered in the case of addition or change, and between the objects to be compared in the condition. In other words, comparison and registration between single character data and numerical data caused an error. In the present invention, compatibility is checked by classification attributes and units instead of data types. Even if the data is character data, if the content is in a numeric representation format, it will be treated as a numeric value, so no error will occur.

数値の表現形式としては、SQLで[数定数(n u 
m eric 1itera+)と呼んでいる形式を利
用する。真数(exact numeric 1ite
ral)と概数(approxima+、e nume
ric 1iteral)の指定例を、以下に示す。
As a representation format for numerical values, in SQL, [numeric constant (n u
A format called meric 1itera+) is used. exact numeric 1ite
ral) and approximate numbers (approxima+, e number
An example of specifying ric 1 iteral) is shown below.

(真数)123.−23.4..385(概数)、42
8E10,1.88E−10この互換性チエツクの手順
を、第18図の処理フローに基づいて、以下に示す。
(True number) 123. -23.4. .. 385 (approximate number), 42
8E10, 1.88E-10 The procedure for this compatibility check is shown below based on the processing flow of FIG.

まず、最初に、解析トリー中のカラム指定ノードや定数
指定ノードに、対応するカラムや定数の分類属性、単位
を設定する(ステップ520)。カラムの場合、対応す
るカラム管理ブロック280から当該カラムの分類属性
、単位を設定する。分類属性がない場合は、不定と設定
する。単位がない場合も不定にする。単位を設定する場
合には、単位情報管理テーブル90から当該単位の基本
単位と換算式を検索し、−緒にカラム指定ノードに設定
する。定数の場合は、構文解析時に、当該定数指定に指
定されている分類属性、単位を設定している指定がない
場合は、それぞれ不定になる。単位の指定があった場合
には、単位情報管理テーブル90から当該単位の基本単
位と換算式を検索して設定する。ユーザが指定した単位
が単位情報管理テーブル90にない場合、エラーにする
First, the classification attributes and units of the corresponding columns and constants are set in the column specification nodes and constant specification nodes in the analysis tree (step 520). In the case of a column, the classification attribute and unit of the column are set from the corresponding column management block 280. If there is no classification attribute, set it to indeterminate. It is also undefined if there is no unit. When setting a unit, the basic unit and conversion formula of the unit are retrieved from the unit information management table 90 and set together in the column designation node. In the case of a constant, when parsing the constant, if there is no specification that sets the classification attribute or unit specified in the constant specification, each becomes undefined. When a unit is specified, the basic unit and conversion formula of the unit are searched from the unit information management table 90 and set. If the unit specified by the user is not in the unit information management table 90, an error is generated.

次に、演算式の指定がある場合、ステップ521で、当
該演算式に対応するノードに分類属性、単位を設定する
。演算式の分類属性は、不定にする。
Next, if an arithmetic expression is specified, in step 521, classification attributes and units are set for the node corresponding to the arithmetic expression. The classification attribute of the arithmetic expression is made undefined.

演算式が加減算のみから成り、演算式のすべての項の基
本単位が一致するならば、当該演算式の単位をその基本
単位にする。それ以外の場合には、当該演算式の単位は
、不定にする。
If the arithmetic expression consists only of addition and subtraction, and the basic units of all terms in the arithmetic expression match, then the unit of the arithmetic expression is made the basic unit. In other cases, the unit of the arithmetic expression is undefined.

最後に、ステップ522で、要求中の個々の比較。Finally, at step 522, the individual comparisons in the request.

登録の妥当性をチエツクする。比較、登録操作に対応す
るノードの左辺と右辺の分類属性を比較する。両辺の分
類属性が一致するか、どちらか一方が不定であれば、妥
当であ、る。それ以外は、エラーにする。次に、単位を
比較する。両辺の単位の基本単位が一致するか、どちら
か一方が不定であれば、妥当である。それ以外は、エラ
ーにする。
Check validity of registration. Compare the classification attributes on the left and right sides of the node corresponding to the comparison and registration operation. It is valid if the classification attributes on both sides match, or if one of them is undefined. Otherwise, an error will occur. Next, compare the units. It is valid if the basic units of the units on both sides match, or if one of them is indefinite. Otherwise, an error will occur.

35 なお、単位が不定になったものについては、そのノード
の単位情報(換算式、基本単位等)を消去する。
35 If the unit becomes undefined, the unit information (conversion formula, basic unit, etc.) of that node will be deleted.

第5図の問合わせの例では、比較条件が三つあり、それ
ぞれについて、上述の処理を行う。部署番号の比較条件
は、同じ分類属性(deptcode)であり、妥当で
ある。管理者番号と従業員番号との比較は、データタイ
プは、整数と文字列とで異なるが、同じ分類属性(em
pcode)なので、妥当になる。
In the inquiry example shown in FIG. 5, there are three comparison conditions, and the above-described processing is performed for each of them. The comparison condition for the department numbers is the same classification attribute (deptcode) and is valid. Comparison of administrator number and employee number shows that although the data type is different between integer and character string, they have the same classification attribute (em
pcode), so it is valid.

給料は、同じテーブル中のカラムなので、分類属性、単
位ともに一致し、妥当である。従って、この間合わせは
妥当と判断される。
Salary is a column in the same table, so the classification attributes and units match and are valid. Therefore, this arrangement is judged to be appropriate.

(3−2)最適化 最適化ステップ502では、アクセス手順の候補を生成
し、各候補のアクセスコストを見積り、コストが最小の
アクセス手順を選択する。この処理については、例えば
、W、F 、K ing、 m著の論文rRelaLi
onal Database System : Wh
ere WeStand TodayJ(I F I 
P、+980)中の2.2 AccessPath 5
election(pp、373−375)に詳しい。
(3-2) Optimization In the optimization step 502, candidates for access procedures are generated, the access cost of each candidate is estimated, and the access procedure with the minimum cost is selected. This process is described, for example, in the paper RelaLi by W, F., King, M.
onal Database System: Wh
are WeStand TodayJ(I F I
2.2 AccessPath 5 in P, +980)
Election (pp, 373-375).

本処理に関しては、換算式の最適化処理を追加する。比
較、登録の前に、換算処理が必要になる場合、つまり、
比較、登録における対象の単位がどちらも不定でない場
合に、換算式を次のように変換する処理を追加する。
Regarding this processing, optimization processing of the conversion formula is added. If conversion processing is required before comparison and registration, that is,
Add processing to convert the conversion formula as follows when the target units for comparison and registration are both non-determined.

■〈比較の場合〉一方の単位の換算式が、もう一方の単
位からの換算式であるならば、その換算式を使って、単
位合わせを行う。そうでない場合、両方の換算式を基本
単位からの換算式に変換し、その後、係数を比較し、係
数の小さい方から係数の大きい方への換算式を作成し、
これを単位合わせに使用する。
■ <For comparison> If the conversion formula for one unit is a conversion formula from the other unit, use that conversion formula to match the units. If not, convert both conversion formulas to conversion formulas from the base unit, then compare the coefficients and create a conversion formula from the one with the smaller coefficient to the one with the larger coefficient,
Use this for unit matching.

■〈登録の場合〉登録する方を登録先の単位に換算する
換算式を生成する。
■<For registration> Generate a conversion formula to convert the unit to be registered into the unit of the registration destination.

また、加減算のみから成る演算式で、演算式中のすべて
の項の基本単位が一致する場合に、各項の換算式を、基
本単位からの換算式に変換する処理を追加する。なお、
上述の処理の追加は、従来の最適化処理の順序に影響を
与えるものではないので、この最適化の処理の中ならば
、どこで行って如良い。
Additionally, in an arithmetic expression consisting only of addition and subtraction, when the basic units of all terms in the arithmetic expression match, a process is added to convert the conversion expression of each term into a conversion expression from the basic unit. In addition,
The addition of the above processing does not affect the order of conventional optimization processing, so it can be added anywhere within this optimization processing.

(3−3)処理手続き生成 処理手続き生成ステップ503では、」二連の最適化で
決定したアクセス手順に従った処理を行う処理手続きを
生成する。本発明に関しては、アクセス手順に従う処理
手続きを生成しながら、以下の手続きを生成する。
(3-3) Processing Procedure Generation Processing procedure generation step 503 generates a processing procedure that performs processing according to the access procedure determined by the double optimization. Regarding the present invention, the following procedure is generated while generating a processing procedure that follows the access procedure.

■文字データを、数値データと比較したり、数値データ
として登録したりする場合の、文字データを数値データ
に変換する手続き。
■Procedure for converting character data into numerical data when comparing character data with numerical data or registering it as numerical data.

■数値データを、文字データとして登録する場合の、数
値データを文字データに変換する手続き。
■Procedure to convert numerical data to character data when registering numerical data as character data.

■単位の換算式がある場合の換算手続き。■Conversion procedure when there is a unit conversion formula.

なお、登録の場合で、タイプの変換手続きと換算手続き
の両方を行う場合には、数値データに換算手続きを行う
ように、手続きの実行順序を設定する。
Note that in the case of registration, if both a type conversion procedure and a conversion procedure are performed, the execution order of the procedures is set so that the conversion procedure is performed on numerical data.

(3−4)処理手続き実行 生成した手続きを実行する。本発明に関する処理の変更
はない。
(3-4) Execute processing procedure Execute the generated procedure. There are no process changes related to the present invention.

なお、上述の実施例においては、処理手続きとして実行
可能なオブジェクトコードを生成している。従って、処
理手続き実行では、生成した処理手続きの先頭に制御を
渡すだけで、要求された操作を実行することが可能にな
っている。DBMSによっては、処理手続き生成ステッ
プ503で、中間言語レベルの処理手続きを生成し、処
理手続き実行ステップ504では、処理手続きを解釈し
ながらインタプリティブに処理を行う方式もある。この
ような方式の場合には、前述のデータ変換手続きや換算
手続きもインタプリティブに行うため、これらの手続き
を解釈し、実行する処理の追加が必要である。
Note that in the above-described embodiment, object code that can be executed as a processing procedure is generated. Therefore, when executing a processing procedure, it is possible to execute the requested operation simply by passing control to the beginning of the generated processing procedure. Depending on the DBMS, there is a method in which a processing procedure at an intermediate language level is generated in the processing procedure generation step 503, and processing is performed interpretively while interpreting the processing procedure in the processing procedure execution step 504. In the case of such a method, since the data conversion procedures and conversion procedures described above are also performed interpretively, it is necessary to add processing to interpret and execute these procedures.

上記実施例によれば、DBアクセスシステム20での分
類属性や単位の管理が可能になり、データタイプや単位
が一致していないデータ間での操作が容易になるという
効果がある。なお、上記実施例は、本発明の一例として
示したものであり、本発明はこれに限定されるものでは
ない。例えば、9 本発明を、データの分類属性のみを付与して実施するこ
とも有効である。
According to the embodiment described above, it is possible to manage classification attributes and units in the DB access system 20, and there is an effect that operations on data whose data types and units do not match are facilitated. Note that the above embodiment is shown as an example of the present invention, and the present invention is not limited thereto. For example, 9 It is also effective to implement the present invention by assigning only data classification attributes.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明した如く、本発明によれば、DBを再
編集することなしに、データタイプが異なるデータ間の
比較、登録が1’+J能となり、ユーザの使い勝手が向
上するという顕著な効果がある。
As explained in detail above, according to the present invention, comparison and registration between data of different data types becomes 1'+J possible without re-editing the DB, and the remarkable effect of improving usability for the user is achieved. There is.

また、DBの再編集なしに、単位の異なるデータ間の比
較、登録が可能となり、かつ、単位間の換算をシステム
が自動的に行うので、ユーザの使い勝手が向上するとい
う効果もある。
Furthermore, since it becomes possible to compare and register data in different units without re-editing the DB, and the system automatically performs conversion between units, it has the effect of improving usability for the user.

また、データタイプ、単位の異なるデータ間の比較、登
録が可能となることにより、別個に開発した複数のDB
による分散システ・ム、統合システムを構築する上で、
データ間の整合性の維持が容易になり、更には、DBシ
ステムの柔軟性、可用性が向上するとともに、適用範囲
の拡大を図り易くなるという効果がある。
In addition, by making it possible to compare and register data with different data types and units, multiple databases developed separately can be used.
In building distributed systems and integrated systems,
This has the effect of making it easier to maintain consistency between data, improving the flexibility and availability of the DB system, and making it easier to expand the scope of application.

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

第1図は本発明の一実施例であるDBシステムの全体構
成を示す図、第2図は実施例のシステムの最小機器構成
を示す図、第3図は実施例のDBアクセスシステムの運
用形態の例を示す図、第4図は従来のDB定義要求の例
を示す図、第5図は間合わせ要求の例を示す図、第6図
〜第8図は実施例におけるDB定義、同変更および単位
定義要求の例を示す図、第9図は構文解析後の解析トリ
ーの構造例を示す図、第1O図は解析トリー中のノード
の構成を示す図、第1+図は意味解析後の解析トリーの
構成を示す図、第12図〜第18図は実施例のDBアク
セスシステムにおける処理の流れを示すフローチャート
である。 l:端末、2:計算機、3:二次記憶装置、10ニユー
ザブログラム、20:DBアクセスシステム、30:要
求制御部、40:DB定義管理部、50:DB操作管理
部、60:DB、70:定義情報保持部、80:カラム
定義情報管理テーブル、90:単位情報管理テーブル、
270:テーブル管理ブロック、275ニラベル管理ブ
ロツク、280:カラム管理ブロック。 8 図 untt yen 51 ◇ハdefine unit kiJoyen−1α)
O*yen””’y define unit man
yen −10*kiloyen符開平 、、1−G)4ソ41 L18.) 符開平 154941(19) 第 1 図 第 図
Fig. 1 is a diagram showing the overall configuration of a DB system that is an embodiment of the present invention, Fig. 2 is a diagram showing the minimum equipment configuration of the system of the embodiment, and Fig. 3 is an operational form of the DB access system of the embodiment. FIG. 4 is a diagram showing an example of a conventional DB definition request, FIG. 5 is a diagram showing an example of a makeshift request, and FIGS. 6 to 8 are DB definitions and changes in the embodiment. and a diagram showing an example of a unit definition request, Figure 9 is a diagram showing an example of the structure of the parse tree after syntax analysis, Figure 1O is a diagram showing the configuration of nodes in the parse tree, and Figure 1+ is a diagram after semantic analysis. Figures 12 to 18 showing the structure of the analysis tree are flowcharts showing the flow of processing in the DB access system of the embodiment. l: terminal, 2: computer, 3: secondary storage device, 10 user program, 20: DB access system, 30: request control unit, 40: DB definition management unit, 50: DB operation management unit, 60: DB , 70: definition information holding unit, 80: column definition information management table, 90: unit information management table,
270: Table management block, 275 Label management block, 280: Column management block. 8 figure untt yen 51 ◇define unit kiJoyen-1α)
O*yen""'y define unit man
yen -10*kiloyen sign square root,, 1-G) 4 so 41 L18. ) Symbol 154941 (19) Fig. 1 Fig.

Claims (1)

【特許請求の範囲】 1、データベースと、該データベースに格納するデータ
の定義情報を保持する定義情報保持部とを備え、ユーザ
プログラムからの要求を受け付け、要求の内容により処
理を振り分ける要求制御部と、データベースの定義ある
いは定義変更の場合に、要求に従って前記データベース
と定義情報保持部とを更新するデータベース定義管理部
と、データベース内のデータに対する操作(追加,変更
,削除)要求の場合に、要求に従って前記データベース
内のデータの操作を行うデータベース操作管理部とを有
するデータベースアクセスシステムにおいて、前記定義
情報保持部に、データの比較あるいはデータの登録を行
う際に、その妥当性を判断するためのデータの分類属性
を保持する領域を追加するとともに、前記データベース
操作管理部に、前記データの分類属性の定義およびその
変更を受け付け、前記定義情報保持部内の該当領域を更
新するステップを設けたことを特徴とするデータベース
操作処理方式。 2、前記各構成要件に加え、前記データベース操作管理
部に、前記データの分類属性の同一性により要求された
操作の妥当性を認めるステップを設けたことを特徴とす
る請求項1記載のデータベース操作処理方式。 3、前記各構成要件に加え、前記データベース操作管理
部に、前記データの分類属性が一致する文字データと数
値データとの比較を行うとき、あるいは、文字データを
数値データとして登録するときに、文字データをその内
容に従い数値データに変換するステップと、数値データ
を文字データとして登録するときに、数値データを文字
データの形式に変換するステップとを設けたことを特徴
とする請求項2記載のデータベース操作処理方式。 4、前記各構成要件に加え、前記データベース操作管理
部に、データ同志の四則演算における演算対象の分類属
性の同一性を無視するステップと、当該演算結果の分類
属性を、演算後の操作相手の分類属性と等価とみなして
処理するステップとを設けたことを特徴とする請求項2
記載のデータベース操作処理方式。 5、前記各構成要件に加え、前記データベース操作管理
部に、要求中にユーザが指定した分類属性の変更を認め
るステップと、分類属性不定のデータに対しては操作相
手の分類属性と等価とみなして処理するステップとを設
けたことを特徴とする請求項2記載のデータベース操作
処理方式。 6、データベースと、該データベースに格納するデータ
の定義情報を保持する定義情報保持部とを備え、ユーザ
プログラムからの要求を受け付け、要求の内容により処
理を振り分ける要求制御部と、データベースの定義ある
いは定義変更の場合に、要求に従って前記データベース
と定義情報保持部とを更新するデータベース定義管理部
と、データベース内のデータに対する操作(追加,変更
,削除)要求の場合に、要求に従って前記データベース
内のデータの操作を行うデータベース操作管理部とを有
するデータベースアクセスシステムにおいて、前記定義
情報保持部に、データの単位と単位間の換算式とを保持
する領域を追加するとともに、前記データベース定義管
理部に、前記データの単位および単位間の換算式の定義
およびその変更を受け付け、要求に従って前記定義情報
保持部の該当領域を更新するステップを設けたことを特
徴とするデータベース操作処理方式。 7、前記各構成要件に加え、前記データベース操作管理
部に、前記データの単位間の換算可能性により要求され
た操作の妥当性を認めるステップを設けたことを特徴と
する請求項6記載のデータベース操作処理方式。 8、前記各構成要件に加え、前記定義情報保持部に、定
義された単位の基本となる単位を保持する領域を保持す
るとともに、前記データベース定義管理部に、単位の定
義時あるいは定義変更時に、換算式中の単位とその換算
式の関係を再帰的に辿りながら基本となる単位をみつけ
、前記定義情報保持部の該当領域に設定するステップを
、また、前記データベース操作管理部に、操作対象のデ
ータ同志の単位が一致しない場合に、データ間の換算可
能性を、当該データの単位の基本単位の一致により判断
するステップを設けたことを特徴とする請求項6記載の
データベース操作処理方式。 9、前記各構成要件に加え、前記データベース操作管理
部に、単位が換算可能である文字データと数値データの
比較を行うとき、あるいは、文字データを数値データと
して登録するときに、文字データをその内容に従い数値
データに変換し、換算必要ならば換算式に従い操作相手
の数値データの単位まで換算するステップと、数値デー
タを文字データとして登録するときに、数値データを換
算必要ならば換算式に従い操作相手の文字データの単位
まで換算後、文字データの形式に変換するステップとを
設けたことを特徴とする請求項6記載のデータベース操
作処理方式。 10、前記各構成要件に加え、前記データベース操作管
理部に、要求中にユーザが指定した単位の変更を認める
ステップと、単位不定のデータに対しては、操作相手の
単位と等価とみなして処理するステップとを設けたこと
を特徴とする請求項6記載のデータベース操作処理方式
[Claims] 1. A request control unit that includes a database and a definition information holding unit that holds definition information of data to be stored in the database, receives requests from user programs, and distributes processing according to the content of the request. , a database definition management unit that updates the database and the definition information storage unit according to a request in the case of a database definition or definition change; In a database access system having a database operation management unit that operates data in the database, the definition information holding unit stores data for determining validity when comparing data or registering data. The method further comprises a step of adding an area for holding classification attributes, and receiving definitions of classification attributes of the data and changes thereto in the database operation management unit, and updating the corresponding areas in the definition information storage unit. Database operation processing method. 2. The database operation according to claim 1, characterized in that, in addition to each of the constituent requirements, the database operation management section is provided with a step of validating the requested operation based on the sameness of classification attributes of the data. Processing method. 3. In addition to each of the above configuration requirements, when comparing character data and numeric data that match the classification attributes of the data, or when registering character data as numeric data, character The database according to claim 2, further comprising a step of converting the data into numerical data according to its contents, and a step of converting the numerical data into a character data format when registering the numerical data as character data. Operation processing method. 4. In addition to each of the above configuration requirements, the database operation management unit includes a step of ignoring the sameness of the classification attributes of the operation target in the four arithmetic operations between data, and a step of ignoring the classification attributes of the operation result after the operation. Claim 2 further comprising a step of treating the classification attribute as being equivalent to the classification attribute.
The database operation processing method described. 5. In addition to each of the above configuration requirements, a step of allowing the database operation management unit to change the classification attribute specified by the user during the request, and regarding data with undefined classification attributes as equivalent to the classification attribute of the operation partner. 3. The database operation processing method according to claim 2, further comprising a step of processing the data. 6. A request control unit that includes a database and a definition information holding unit that holds definition information of data to be stored in the database, receives requests from user programs, and distributes processing according to the content of the request, and a definition or definition of the database. A database definition management unit that updates the database and definition information holding unit in accordance with a request in the case of a change, and a database definition management unit that updates the data in the database in accordance with the request in the case of an operation (addition, change, deletion) request for data in the database. In a database access system having a database operation management unit that performs operations, an area for storing units of data and conversion formulas between units is added to the definition information storage unit, and an area for storing units of data and conversion formulas between units is added to the definition information storage unit; 1. A database operation processing method, comprising the step of accepting definitions of units and conversion formulas between units and changes thereto, and updating corresponding areas of the definition information storage unit in accordance with requests. 7. The database according to claim 6, wherein, in addition to each of the constituent requirements, the database operation management section is provided with a step of validating the requested operation based on the possibility of conversion between units of the data. Operation processing method. 8. In addition to each of the above-mentioned configuration requirements, the definition information holding section holds an area that holds the basic unit of the defined unit, and the database definition management section stores the following information when defining or changing the definition of a unit: The step of finding the basic unit by recursively tracing the relationship between the units in the conversion formula and the conversion formula, and setting it in the corresponding area of the definition information holding unit, 7. The database operation processing method according to claim 6, further comprising the step of determining, when the units of the data do not match, the conversion possibility between the data based on the match of the basic units of the units of the data. 9. In addition to each of the above configuration requirements, when comparing character data and numerical data whose units can be converted, or registering character data as numerical data, character data must be Convert the numerical data according to the content, and if conversion is necessary, convert it to the unit of the numerical data of the operation partner according to the conversion formula, and when registering the numerical data as character data, convert the numerical data. If necessary, operate according to the conversion formula. 7. The database operation processing method according to claim 6, further comprising the step of converting the character data of the other party into units and then converting the data into a character data format. 10. In addition to the above-mentioned configuration requirements, a step of allowing the database operation management unit to change the unit specified by the user during the request, and processing data whose unit is undefined as being equivalent to the unit of the operation partner. 7. The database operation processing method according to claim 6, further comprising the step of:
JP1294274A 1989-11-13 1989-11-13 Data base operation processing system Pending JPH03154941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1294274A JPH03154941A (en) 1989-11-13 1989-11-13 Data base operation processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1294274A JPH03154941A (en) 1989-11-13 1989-11-13 Data base operation processing system

Publications (1)

Publication Number Publication Date
JPH03154941A true JPH03154941A (en) 1991-07-02

Family

ID=17805586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1294274A Pending JPH03154941A (en) 1989-11-13 1989-11-13 Data base operation processing system

Country Status (1)

Country Link
JP (1) JPH03154941A (en)

Similar Documents

Publication Publication Date Title
US8612468B2 (en) System and method for retrieving data from a relational database management system
US7599948B2 (en) Object relational mapping layer
CN100468396C (en) Mapping architecture for arbitrary data models
US7769769B2 (en) Methods and transformations for transforming metadata model
US7162469B2 (en) Querying an object for properties
US7136873B2 (en) Dynamic filtering in a database system
CA2415183C (en) Performing spreadsheet-like calculations in a database system
US7412436B2 (en) System and interface for manipulating a database
US6460043B1 (en) Method and apparatus for operating on data with a conceptual data manipulation language
US7082433B2 (en) Translation of object queries involving inheritence
US7650357B2 (en) Translation of object queries involving inheritence
US7096216B2 (en) Performing operations on a set of objects in a database system
US7386568B2 (en) Techniques for partial rewrite of XPath queries in a relational database
US7359912B2 (en) Result set formatting and processing
CN100541493C (en) The apparatus and method that are used for structured document management
US8478760B2 (en) Techniques of efficient query over text, image, audio, video and other domain specific data in XML using XML table index with integration of text index and other domain specific indexes
US20060224613A1 (en) Method and system for an administrative apparatus for creating a business rule set for dynamic transform and load
EP1193618A2 (en) Cost based materialized view selection for query optimization
JP3914662B2 (en) Database processing method and apparatus, and medium storing the processing program
Stonebraker Object management in POSTGRES using procedures
US6401083B1 (en) Method and mechanism for associating properties with objects and instances
JPH07141236A (en) Method and equipment for optimizing inquiry in relational database system with external function
CN107515887A (en) A kind of interactive query method suitable for a variety of big data management systems
Scharffe et al. Correspondence patterns for ontology alignment
US8229920B2 (en) Index selection for XML database systems