JPH0433026A - Database index definition method - Google Patents

Database index definition method

Info

Publication number
JPH0433026A
JPH0433026A JP2134391A JP13439190A JPH0433026A JP H0433026 A JPH0433026 A JP H0433026A JP 2134391 A JP2134391 A JP 2134391A JP 13439190 A JP13439190 A JP 13439190A JP H0433026 A JPH0433026 A JP H0433026A
Authority
JP
Japan
Prior art keywords
index
columns
column
displayed
constituent
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
JP2134391A
Other languages
Japanese (ja)
Inventor
Hiroyuki Muroi
室井 裕之
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 Ltd
Original Assignee
Hitachi 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 filed Critical Hitachi Ltd
Priority to JP2134391A priority Critical patent/JPH0433026A/en
Publication of JPH0433026A publication Critical patent/JPH0433026A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve operability and workability for defining an index by selecting a column to define the registration work of the column constituting the index with an operation on a display screen, and adding an index identifier in the case of deciding and registering the order of the columns according to the order of the selection. CONSTITUTION:The index constituting columns as the index definition objects are registered while displaying the table constituting column names of a data base table on a display screen 40 and selecting the columns on the display screen 40, and the column order of index constituting columns 43 is decided according to the order of selecting the columns. On the other hand, the defined index constituting columns 43 are registered after adding an index identifier 42 and the registered condition is displayed by the index identifier 42 to confirm the registration. Thus, the index constituting columns 43 can be easily registered and especially in the case of defining the index constituting column 43 composed of plural columns, the order of the registration can be easily decided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データベースのインデクス定義方式に関し、
特に、データベースからデータを検索するためのインデ
クスとなるカラムをテーブル構造で定義する場合に、イ
ンデクスを構成するカラムの各カラムの選択、順序性の
定義を容易に登録し、また、修正を行うことができるデ
ータベースのインデクス定義方式に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a database index definition method,
In particular, when columns that serve as an index for searching data from a database are defined in a table structure, the selection and ordering definition of each column composing the index can be easily registered and modified. This article relates to a database index definition method that allows for

〔従来の技術〕[Conventional technology]

多量のデータを整理して蓄積したデータベースシステム
においては、所望するデータを検素するためインデクス
が備えられる。このインデクスとして、例えば、データ
ベースのカラムを指定するカラム名を用いられる。イン
デクスを構成するカラムは、また、テーブル構造で定義
され、インデクス構成カラムが指定される。
In a database system that organizes and accumulates a large amount of data, an index is provided to search for desired data. As this index, for example, a column name specifying a column of a database can be used. The columns that make up the index are also defined in the table structure, and the index constituent columns are specified.

従来、この種のインデクス構成カラムの指定を行うイン
デクス定義方法は、データベーステーブルのテーブル構
成カラムから選択して行うのではなく、例えば、カラム
名称を直接的に六方して行うか、または、テーブル構成
カラムの各々のカラムをユニークに判別できる層を設け
、その層に番号を入力して、入力した番号から当該欄に
対応したカラムを選択し、かつ番号によりカラムの順序
を決定し、インデクス構成カラムを定義する方法で行っ
ている。
Conventionally, this type of index definition method for specifying index composition columns has not been done by selecting from the table composition columns of the database table, but for example, by directly specifying the column names, or by specifying the table composition columns. Create a layer that can uniquely identify each column, enter a number in that layer, select the column corresponding to the column from the input number, and determine the order of the columns by the number, and create an index composition column. This is done in a way that defines

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

ところで、J:、述のような従来におけるインデクス定
義方法は、インデクス構成カラムを指定するために手間
がかかり、そのため、インデクスの定義を行うための時
間が多くかかり、能率的ではないという問題がある。
By the way, the conventional index definition method as described above has the problem that it takes a lot of time to specify the index constituent columns, so it takes a lot of time to define the index, and it is not efficient. .

本発明の目的は、インデクス構成カラムの登録を容易に
行えるようにし、特に、複数個のカラムからなるインデ
クス構成カラムを定義する場合の登録の順序決定の操作
を容易にすることができるデータベースのインデクス定
義方式を提供することにある。
An object of the present invention is to provide a database index that facilitates the registration of index constituent columns, and in particular, facilitates the operation of determining the registration order when defining index constituent columns consisting of a plurality of columns. The purpose is to provide a definition method.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、データベースのデータを検索
するためのインデクスとなるカラムをテーブル構造で定
義するインデクス定義方式であって、インデクス定義対
象のテーブル構成カラム名を読み込み、読み込んだテー
ブル構成カラム名を表示画面上に表示し、ポインティン
グデバイスによる表示画面上の選択指示により、定義す
るテーブル構成カラム名を選択し、その選択順序により
インデクスを構成するカラムのカラム順序を決定し、選
択したカラムを選択順に並べ、インデクス識別子を付加
して、インデクス構成カラムを登録し、登録したインデ
クス構成カラムの登録状況を表示することを特徴とする
In order to achieve the above purpose, an index definition method is used in which columns that serve as indexes for searching database data are defined in a table structure. Displayed on the display screen, select table configuration column names to be defined by the selection instructions on the display screen using a pointing device, determine the column order of the columns that make up the index based on the selection order, and select the selected columns in the selection order. It is characterized by arranging them, adding index identifiers, registering index constituent columns, and displaying the registration status of the registered index constituent columns.

〔作用〕[Effect]

前記手段によれば、インデクス定義対象のインデクス構
成カラムの登録は、データベーステーブルのテーブル構
成カラム名を表示画面に表示し、表示画面上での選択に
より行い、カラム選択の選択順によりインデクス構成カ
ラムのカラム順序を決定する。また、定義したインデク
ス構成カラムは、インデクス識別子を付加して登録し、
その登録を確認するため、インデクス識別子により登録
状況を表示する。これにより、修正が必要な場合には、
インデクス識別子によりインデクス構成カラムを表示し
、続いてインデクス構成カラムの修正を行う。
According to the above means, the index constituent columns to be index defined are registered by displaying the table constituent column names of the database table on the display screen and making selections on the display screen, and the index constituent columns are registered according to the selection order of column selection. Determine column order. In addition, the defined index configuration column is registered with an index identifier added,
To confirm the registration, the registration status is displayed using the index identifier. This way, if you need to make any corrections,
The index configuration columns are displayed using the index identifier, and then the index configuration columns are modified.

すなわち、データベースのインデクス定義を行うための
インデクス構成カラムの登録作業は、定義するカラムを
表示画面上における順次の選択操作により行う。インデ
クス構成カラムのカラム順序は、選択順序により決定さ
れる。これにより、インデクス構成カラムとして定義す
るカラムの選択を容易に行うことができる。選択したカ
ラムをインデクス構成カラムとして登録する場合、イン
デクス識別子を付加して行う。
That is, the registration of index constituent columns for defining a database index is performed by sequentially selecting columns to be defined on the display screen. The column order of the index constituent columns is determined by the selection order. This makes it easy to select columns to be defined as index constituent columns. When registering the selected column as an index constituent column, do so by adding an index identifier.

また、選択操作は、データベーステーブルのテーブル構
成カラムを表示画面上に表示し、表示画面からの選択に
より行うため、インデクス構成カラムとして選択したカ
ラムがデータベーステーブルに存在しないということを
防ぐことができる。
Further, since the selection operation is performed by displaying the table constituent columns of the database table on the display screen and selecting them from the display screen, it is possible to prevent the column selected as the index constituent column from not existing in the database table.

インデクス定義者は、インデクス識別子の指定により当
該インデクス構成カラムの登録状態が表示されるので、
これを確認しながら、登録の継続あるいは修正を行い、
最終的に定義するインデクスを決定する。これにより、
インデクス定義の操作性9作業効率が向上する。
The index definer can display the registration status of the index constituent column by specifying the index identifier.
While checking this, continue or modify the registration,
Decide on the final index to be defined. This results in
Index definition operability 9 Improves work efficiency.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて具体的に説明す
る。
Hereinafter, one embodiment of the present invention will be specifically described using the drawings.

第1図は、本発明の一実施例↓こかかるデータベースの
インデクス定義方式のインデクス定義処理の処理手順の
一例を示すフローチャートである。
FIG. 1 is a flowchart showing an example of the processing procedure of index definition processing of the database index definition method according to an embodiment of the present invention.

第1図を参照してインデクス定義の処理を説明すると、
まず、ステップ11において、インデクス定義対象テー
ブルのカラム名の読み込みを行う。
To explain the index definition process with reference to Figure 1,
First, in step 11, column names of the table to be index defined are read.

これは、インデクス定義処理に必要な情報を読み込む部
分である。ここでの必要な情報とは、データベースのデ
ータとして表現されたテーブル(データを格納するテー
ブル)であるデータベーステーブルのカラム(テーブル
構成カラム)のカラム名である。次にステップ12で読
み込んだインデクス定義対象のテーブル構成カラムのカ
ラム名をデイスプレィ装置の画面に表示し、インチフス
定義者に対して表示する。
This is the part that reads the information necessary for index definition processing. The necessary information here is the column name of a column (table configuration column) of a database table that is a table expressed as database data (a table that stores data). Next, the column names of the table constituent columns for which the index definition is to be read in step 12 are displayed on the screen of the display device, and are displayed to the person defining the influenza virus.

次に、ステップ13でインチフス定義開始の処理を行う
。例えば、インチフス定義者がインチフス識別子を入力
し、定義対象のインチフスを指定し、ここでのインチフ
ス定義の処理を開始する。
Next, in step 13, a process of starting the definition of the index file is performed. For example, the person defining the influenza virus inputs the influenza virus identifier, specifies the influenza virus to be defined, and starts the process of defining the influenza virus.

次に、ステップ14において1表示画面上に表示された
テーブル構成カラムから、インチフスを構成するカラム
の選択を行う。選択されたカラムはインチフス構成カラ
ムとして、インチフス識別子が付加されて登録される。
Next, in step 14, columns forming the index are selected from the table structure columns displayed on one display screen. The selected column is registered as an inch frame constituent column with an inch frame identifier added thereto.

この選択の処理は、例えば、インチフス定義者が表示画
面上に表示されたテーブル構成カラム名から各々のカラ
ム名をポインティングデバイスなどを用いて選択するこ
とにより行う。そして、次のステップ15において、選
択され登録された順序に従って、インチフスを構成する
カラムを表示する処理を行う。
This selection process is performed, for example, by the influenza definer selecting each column name from the table constituent column names displayed on the display screen using a pointing device or the like. Then, in the next step 15, the columns constituting the index are displayed in the order in which they were selected and registered.

次のステップ16においては、インチフス定義が終了し
たか否かを判定し、まだ、インチフス定義が終了してい
ない場合には、ステップ14に戻り、ステップ14から
の処理を繰り返し行う。また、インチフス定義を終了す
る場合には、インチフス定義者が、インチフス構成カラ
ムの登録の終了を知らせると、ステップ16で、これを
判定して、インチフス定義の全体の処理を終了する。
In the next step 16, it is determined whether or not the influenza definition has been completed. If the influenza definition has not been completed yet, the process returns to step 14 and the processing from step 14 is repeated. In addition, when the influenza virus definition is to be terminated, when the influenza virus definer notifies the end of the registration of the influenza virus composition columns, this is determined in step 16, and the entire process of the influenza virus definition is terminated.

定義されるインチフスを構成するカラムの順序は、ステ
ップ15の処理において表示された順序に依存したもの
である。
The order of the columns constituting the defined index depends on the order displayed in the process of step 15.

第2図は、本発明のインチフス定義方式を一態様で実施
するインチフス定義処理装置のシステム構成の一例を説
明するブロック図である。
FIG. 2 is a block diagram illustrating an example of the system configuration of an inch fever definition processing device that implements the inch fever definition method of the present invention in one aspect.

第2図において、1は計算機本体、2は端末デイスプレ
ィ、3は端末入力装置、4は外部記憶装置、5は計算機
本体内の中央処理装置、6は計算機本体内の主記憶、7
はデータベースである。
In FIG. 2, 1 is the computer main body, 2 is a terminal display, 3 is a terminal input device, 4 is an external storage device, 5 is a central processing unit in the computer main body, 6 is a main memory in the computer main body, 7
is a database.

インチフス定義処理装置の構成は、第2図に示すように
、インチフス定義者に定義情報を表示する端末デイスプ
レィ2と、インチフス定義者が必要な情報を入力するた
めのポインティンデバイスなどを含む端末入力装置3と
、プログラム等が記憶された外部記憶装置4と、データ
ベース7とが、計算機本体(CPU)1に結合されて構
成されている。計算機本体1には、ここでのインチフス
定義処理のプログラムの実行を行うため中央処理装置5
と、プログラム実行の作業領域として利用される主記憶
6とが備えられており、この計算機本体1において、前
述した処理フロー(第1図)で説明したインチフス定義
処理が実行される。
As shown in Figure 2, the configuration of the influenza fever definition processing device includes a terminal display 2 for displaying definition information to the influenza fever definer, and a terminal input device including a pointing device for inputting necessary information by the influenza fever definer. A device 3, an external storage device 4 in which programs and the like are stored, and a database 7 are connected to a computer main body (CPU) 1. The computer main body 1 includes a central processing unit 5 for executing the program for the inch fever definition process.
and a main memory 6 used as a work area for program execution.In this computer main body 1, the influenza definition process described in the above-mentioned processing flow (FIG. 1) is executed.

次に、ここで実行されるデータベースのインチフス定義
処理の具体例を、端末デイスプレィにおける表示画面例
を示して説明する。
Next, a specific example of the database index definition process executed here will be explained by showing an example of a display screen on a terminal display.

第3図は、インチフス定義処理の開始画面の一例を示す
図である。第3図に示すように、端末デイスプレィ2に
おける表示画面上には、画面上部のタイトル欄に[イン
チフスの定義、修正、削除」と表示されたインチフス定
義処理の開始画面30が表示され、この画面内の下部に
は、既に定義されているインチフスがある場合に定義法
インデクスがインデクスー覧32に表示され、インデク
ス識別子入カフイールド33が開かれる。この開始画面
30を用いて、インチフス定義者は、インデクスー覧3
2に表示されている登録済インチフスの一覧の内容を見
て、インデクス識別子入カフイールド33に新たに定義
するインチフスのインチフス識別子として、例えばr 
1ndex I JをここC定義するインチフス識別子
として入力する。
FIG. 3 is a diagram showing an example of a start screen for the influenza virus definition process. As shown in FIG. 3, on the display screen of the terminal display 2, a start screen 30 for the inch file definition process is displayed with "define, modify, delete inch file" displayed in the title column at the top of the screen. At the bottom of the screen, if there is an index already defined, the definition method index is displayed in an index list 32, and an index identifier input field 33 is opened. Using this start screen 30, the index file definer can
2, look at the contents of the registered index list displayed in 2, and enter, for example, r as the index identifier of the newly defined index identifier in the index identifier input field 33.
Input 1ndex I J as the index identifier defined here.

第4図は、インチフス定義処理のインチフス構成カラム
登録処理画面の一例を示す図である。第4図に示すよう
に、端末デイスプレィ2における表示画面上には、画面
上部のタイトル欄に「インデクス構成カラム賛録、修正
」と表示されたインチフス構成カラム登録処理画面40
が表示されて、インチフス構成カラムの登録処理が行な
われる。
FIG. 4 is a diagram illustrating an example of the influenza system configuration column registration processing screen of the influenza system definition process. As shown in FIG. 4, on the display screen of the terminal display 2, there is an index structure column registration processing screen 40 with "Index structure column approval, modification" displayed in the title field at the top of the screen.
is displayed, and the registration process for the input file configuration columns is performed.

この登録処理画面40の上部には、インデクス識別子入
カフイールド42が開かれ、ここに既に入力されたイン
チフス識別子rindex I Jが表示され、このイ
ンチフス識別子で定義されるインチフス構成カラムがイ
ンチフス構成カラムフィールド43に表示される。イン
チフス定義者は、表示されたインチフス構成カラムフィ
ールド43の表示内容を見て、登録内容を確認すると共
に、表示されたインデクス構成カラムの内容に所望しな
いインデクス構成カラムを含む場合は、修正の処理を行
い、再登録を行う。
At the top of this registration process screen 40, an index identifier input field 42 is opened, and the index identifier RINDEX IJ that has already been input is displayed here, and the index identifier column defined by this index identifier is entered in the index identifier input field 43. will be displayed. The index file definer looks at the displayed content of the displayed index file structure column field 43 and confirms the registered content, and if the contents of the displayed index structure column include an undesired index structure column, performs correction processing. and re-register.

第5図は、定義対象のテーブル構成カラムのカラム名表
示画面の一例を示す図である。第5図に示すように、端
末デイスプレィ2における表示画面上には、画面上部の
タイトル欄に「テーブルが持つカラム名表示」と表示さ
れたカラム名表示画面50が表示されて、画面内の下部
に、インデクスの定義対象となっているテーブル構成カ
ラムの全てのテーブル構成カラム22が表示される。イ
ンデクス定義者は、ここで表示されているテーブル構成
カラム22の中から、ポインティングデバイスを用いて
、所望するテーブル構成カラムを順次に指定して選択を
行う。このような選択操作により、インデクスの定義対
象のテーブル構成カラムのカラム選択が行なわれ、イン
デクス構成カラムが選択された順序に登録される。
FIG. 5 is a diagram showing an example of a column name display screen for table configuration columns to be defined. As shown in FIG. 5, a column name display screen 50 is displayed on the display screen of the terminal display 2, with "Display column name of table" displayed in the title column at the top of the screen. , all table structure columns 22 of the table structure columns for which indexes are defined are displayed. The index definer uses a pointing device to sequentially designate and select desired table structure columns from among the table structure columns 22 displayed here. Through such a selection operation, column selection of table constituent columns for which an index is to be defined is performed, and the index constituent columns are registered in the selected order.

第6図は、インデクスとして定義したインデクス構成カ
ラムの修正処理の処理手順の一例を示すフローチャート
である。
FIG. 6 is a flowchart illustrating an example of a processing procedure for modifying an index constituent column defined as an index.

第6図を参照してインデクス構成カラムの修正処理を説
明すると、まず、ステップ61において、登録インデク
スを表示する処理を行い、既に定義されて登録されてい
るインデクス構成カラムに対応するインデクス識別子を
表示する。次にステップ62において、修正すべきイン
デクスを選択す処理を行う。これにより、表示されたイ
ンデクス識別子から修正対象インデクスが選択される。
To explain the process of modifying index constituent columns with reference to FIG. 6, first, in step 61, a process of displaying the registered index is performed, and the index identifier corresponding to the index constituent column that has already been defined and registered is displayed. do. Next, in step 62, processing is performed to select an index to be modified. As a result, the index to be modified is selected from the displayed index identifiers.

次のステップ63では、選択されたインデクスを構成す
るカラムを表示する処理を行う。すなわち、インデクス
識別子から、そのインデクス構成カラムを画面上に表示
する。
In the next step 63, processing is performed to display the columns constituting the selected index. That is, the index constituent columns are displayed on the screen based on the index identifier.

次にステップ64において、インデクスを構成するイン
デクス構成カラムの各カラムの順序変更。
Next, in step 64, the order of each of the index constituent columns constituting the index is changed.

カラムの追加、削除などの処理を行い、インデクス構成
カラムの修正処理を行う。そして、次のステップ65に
おいて、修正を行った結果のインデクスを構成するイン
デクス構成カラムのカラム表示を行う。これにより、こ
こでの修正処理を反映したインデクスを構成しているイ
ンデクス構成カラムが表示され、インデクスのカラム構
成が表示される。
Performs processing such as adding and deleting columns, and performs processing to modify index composition columns. Then, in the next step 65, the index constituent columns forming the index resulting from the correction are displayed. As a result, the index configuration columns that make up the index reflecting the correction processing here are displayed, and the column configuration of the index is displayed.

次のステップ66においては、修正対象のインデクスの
インデクス構成カラムの修正が終了したか否かを判定し
、まだ、修正、変更が終了していない場合にはステップ
64に戻り、ステップ64からの処理を繰り返し行う。
In the next step 66, it is determined whether or not the modification of the index constituent columns of the index to be modified has been completed. If the modification or change has not been completed yet, the process returns to step 64 and the processing from step 64 is performed. Repeat.

また、修正の処理が終了した場合には、インデクス定義
者がインデクス構成カラムの修正処理の終了を知らせる
と、ステップ66でこれを判定して、インデクス構成カ
ラムの修正処理を終了する。
Further, when the modification processing is completed, when the index definer notifies the completion of the modification processing of the index constituent columns, this is determined in step 66 and the modification processing of the index constituent columns is ended.

第7図は、インデクス修正処理の開始画面の一例を示す
図である。第7図に示すように、端末デイスプレィ2に
おける表示画面上には、画面上部のタイトル欄に「イン
デクスの定義、修正、削除」と表示されたインデクス修
正処理を行うための開始画面70が表示される。この開
始画面70は、インデクス定義処理を行う場合の開始画
面30と同じである。この修正処理の開始画面70にお
いては、インデクスー覧32には既に入力されて登録済
となってる登録済インデクスのインデクス識別子rin
dex 1 、1ndex 2 、1ndex 3 、
− Jが表示され、インデクス識別子入カフイールド3
3が開かれる。このインデクス識別子入カフイールド3
3に、修正処理を行うインデクス識別子を入力する。
FIG. 7 is a diagram showing an example of a start screen for index correction processing. As shown in FIG. 7, a start screen 70 for performing index correction processing is displayed on the display screen of the terminal display 2, with "Index Definition, Modification, and Deletion" displayed in the title column at the top of the screen. Ru. This start screen 70 is the same as the start screen 30 when performing index definition processing. On the start screen 70 of this correction process, the index identifier rin of the registered index that has already been input and registered in the index list 32 is displayed.
dex 1 , 1ndex 2 , 1ndex 3 ,
− J is displayed and the index identifier input field 3 is displayed.
3 will be opened. This index identifier field 3
In step 3, input the index identifier for which correction processing is to be performed.

この場合、前述のようにインデクス識別子入カフイール
ド33に入力されたインデクス識別子が、インデクスー
覧32に表示されていない場合には。
In this case, if the index identifier input into the index identifier input field 33 as described above is not displayed in the index list 32.

新規にインデクスを登録するためのインデクス識別子の
入力となる。この場合には登録処理となる。
This is used to input an index identifier for registering a new index. In this case, registration processing is performed.

ここでは、例えば修正処理を行うインデクスのインデク
ス識別子としてインデクスー覧22に表示されているイ
ンデクス識別子rindex 2 Jをインデクス識別
子フィールド33に入力する。
Here, for example, the index identifier rindex 2 J displayed in the index list 22 is input into the index identifier field 33 as the index identifier of the index to be modified.

第8図および第9図は、インデクス構成カラムの修正処
理画面の一例を示す図である。第8図に示すように、端
末デイスプレィ2における表示画面上には、画面上部の
タイトル欄に「インデクス構成カラム登録、修正」と表
示されたインデクス構成カラム修正処理画面8oが表示
されて、インデクス構成カラムの修正処理が行なわれる
。この修正処理画面80は、前述のインデクス構成カラ
ムの登録修正処理画面4oと同じである。この画面80
のインデクス識別子入カフイールド42には、修正処理
の開始画面70のインデクス識別子入カフイールド33
で入力され、修正対象となっているインデクスのインデ
クス識別子rindex 2 Jが表示され、このイン
デクス識別子rindex 2 Jで指示されるインデ
クス構成カラムが、インデクス構成カラムフィールド4
3に表示される。インデクス定義者は、表示されたイン
デクス構成カラムフィールド43の表示内容を見て、イ
ンデクス構成カラム構成の修正を行う。また、修正の一
部の処理として、インデクス構成カラムの不要なカラム
の削除の処理も行う。そして、修正の結果はインデクス
構成カラムフィールド43の最終的な表示内容を見て、
修正内容を確認して再登録を行い、インデクス構成カラ
ムの修正処理を終了する。例えば、第9図に示すように
、修正したインデクス構成カラムフィールド43の表示
内容は、第8図の画面のインデクス構成カラムフィール
ド43の表示内容の状態(インデクス構成カラムとして
カラムB、カラムCが表示されている状態)からの修正
処理を行って、第9図に示す画面のインデクス構成カラ
ムフィールド43の状態(インデクス構成カラムとして
カラムE、カラムC,カラムBが表示されてる状態)に
修正される。
FIG. 8 and FIG. 9 are diagrams showing an example of an index configuration column correction processing screen. As shown in FIG. 8, an index configuration column correction processing screen 8o is displayed on the display screen of the terminal display 2, with "Index configuration column registration and modification" displayed in the title field at the top of the screen. Column correction processing is performed. This correction processing screen 80 is the same as the registration correction processing screen 4o for the index configuration columns described above. This screen 80
The index identifier input field 42 contains the index identifier input field 33 of the correction processing start screen 70.
The index identifier rindex 2 J of the index entered in and subject to modification is displayed, and the index configuration column indicated by this index identifier rindex 2 J is displayed in the index configuration column field 4.
3. The index definer looks at the displayed content of the displayed index configuration column field 43 and modifies the index configuration column configuration. Additionally, as part of the modification process, unnecessary columns from the index constituent columns are deleted. Then, the result of the modification is determined by looking at the final display contents of the index configuration column field 43.
Confirm the modification details, re-register, and finish the index configuration column modification process. For example, as shown in FIG. 9, the display contents of the modified index structure column field 43 are the same as the display contents of the index structure column field 43 on the screen of FIG. The state of the index composition column field 43 on the screen shown in FIG. 9 is corrected (column E, column C, and column B are displayed as index composition columns) by performing correction processing from the state shown in FIG. .

以上、説明したように本実施例にかかるインデグス構成
カラムを定義し、また、修正する処理を行うインデスク
定義方式の要部の処理をまとめると次のようになる。
As explained above, the main parts of the in-desk definition method for defining and modifying index constituent columns according to this embodiment are summarized as follows.

インデクスの定義を行うインデクス構成カラム登録処理
においては、 (1)データベーステーブルのテーブル構成カラム名を
読み込む処理と、 (2)読み込んだテーブル構成カラム名を表示する処理
と、 (3)定義しようとするインデクスのインデクス識別子
を入力する処理と、 (4)表示画面上に表示されているテーブル構成カラム
名を、ポインティングデバイスで順次に選択し、その選
択順序に従属してインデクスを構成するインデクス構成
カラムのカラム順序を決定して、インデクスを登録する
処理と、 (5)インデクス構成カラムの登録状況を表示する処理
と を順次に行う。
The index configuration column registration process that defines an index involves (1) reading the table configuration column names of the database table, (2) displaying the read table configuration column names, and (3) attempting to define them. (4) Select the table constituent column names displayed on the display screen in sequence with a pointing device, and select the index constituent columns that constitute the index according to the selection order. The process of determining the column order and registering the index, and (5) the process of displaying the registration status of the index constituent columns are performed in sequence.

また、定義したインデクス構成カラムの修正処理におい
ては (6)修正する対象インデクスのインデクス構成カラム
に対して付加されているインデクス識別子を表示する処
理と、 (7)表示されているインデクス識別子によりカラム構
成を修正すべきインデクス構成カラムのインデクス識別
子を選択する処理と、 (8)選択されたインデクス識別子により修正するイン
デクスのインデクス構成カラムの登録状況を表示する処
理と、 (9)表示されたインデクス構成カラムの登録順序を変
更する処理と、 (10)表示されているインデクス構成カラムから削除
するカラムを、ポインティングデバイスで選択し、イン
デクス構成カラムからカラムを削除する処理と、 (11)データベーステーブルのテーブル構成カラム名
を読み込む処理と、 (12)読み込んだテーブル構成カラム名を表示する処
理と、 (13)表示されているテーブル構成カラムを、ポイン
ティングデバイスで選択し、インデクスを構成するカラ
ムにカラムを追加する処理と、を順次に行う。
In addition, in the process of modifying the defined index configuration column, (6) processing to display the index identifier added to the index configuration column of the target index to be modified, and (7) column configuration using the displayed index identifier. (8) Processing of displaying the registration status of the index configuration column of the index to be modified using the selected index identifier; (9) Displaying the displayed index configuration column (10) Using a pointing device, select a column to be deleted from the displayed index configuration columns and delete the column from the index configuration columns; (11) Table configuration of the database table. (12) Displaying the read table configuration column name; (13) Selecting the displayed table configuration column with a pointing device and adding the column to the columns that make up the index. Processing and are performed sequentially.

以上、本発明を実施例にもとづき具体的に説明したが1
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。
The present invention has been specifically described above based on examples, but 1.
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.

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

以上、説明したように、本発明によれば、インデクスの
構成カラムの決定を、テーブル構成カラムからの選択に
より実行できるので、インデクス構成カラムとして指定
したカラムがテーブルに存在しないというミスマツチを
防ぐことができる。
As described above, according to the present invention, the index constituent columns can be determined by selecting from the table constituent columns, so it is possible to prevent a mismatch in which a column specified as an index constituent column does not exist in the table. can.

また、複数種のインデクスはカラム選択順に登録され、
インデクス定義が容易にできる。
In addition, multiple types of indexes are registered in the order of column selection,
Index definition is easy.

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

第1図は、本発明の一実施例にかかるデータベースのイ
ンデクス定義方式のインデクス定義処理の処理手順の一
例を示すフローチャート、第2図は、本発明のインデク
ス定義方式を一態様で実施するインデクス定義処理装置
のシステム構成の一例を説明するブロック図、 第3図は、インデクス定義処理の開始画面の一例を示す
図、 第4図は、インデクス定義処理のインデクス構成カラム
登録処理画面の一例を示す図、第5図は、定義対象のテ
ーブル構成カラムのカラム名表示画面の一例を示す図。 第6図は、インデクスとして定義したインデクス構成カ
ラムの修正処理の処理手順の一例を示すフローチャート
、 第7図は、インデクス修正処理の開始画面の一例を示す
図、 第8図および第9図は、インデクス構成カラム修正処理
画面の一例を示す図である。 図中、1・・・計算機本体、2・・・端末デイスプレィ
、3・・・端末入力装置、4・・・外部記憶装置、5・
・・中央処理装置、6・・・主記憶、7・・・データベ
ース、22・・・テーブル構成カラム、30・・・イン
デクス定義処理開始画面、32・・・インデクスー覧、
33.42・・・インデクス識別子入カフイールド、4
0・・・インデクス構成カラム登録処理画面、43・・
・インデクス構成カラムフィールド、50−・・カラム
名表示画面、30・・・インデクス修正処理開始画面、
80・・・インデクス構成カラム修正処理画面。
FIG. 1 is a flowchart showing an example of the processing procedure of an index definition process of a database index definition method according to an embodiment of the present invention, and FIG. 2 is an index definition that implements the index definition method of the present invention in one aspect. A block diagram illustrating an example of the system configuration of the processing device; FIG. 3 is a diagram illustrating an example of a start screen for index definition processing; FIG. 4 is a diagram illustrating an example of an index configuration column registration processing screen for index definition processing. , FIG. 5 is a diagram showing an example of a column name display screen for table configuration columns to be defined. FIG. 6 is a flowchart showing an example of a processing procedure for modifying an index constituent column defined as an index; FIG. 7 is a diagram showing an example of a start screen for index modification processing; FIGS. 8 and 9 are: FIG. 3 is a diagram illustrating an example of an index configuration column correction processing screen. In the figure, 1... Computer main body, 2... Terminal display, 3... Terminal input device, 4... External storage device, 5...
... Central processing unit, 6... Main memory, 7... Database, 22... Table configuration columns, 30... Index definition processing start screen, 32... Index list,
33.42...Index identifier field, 4
0... Index configuration column registration processing screen, 43...
- Index configuration column field, 50-- Column name display screen, 30... Index correction processing start screen,
80... Index configuration column correction processing screen.

Claims (1)

【特許請求の範囲】[Claims] 1、データベースのデータを検索するためのインデクス
となるカラムをテーブル構造で定義するインデクス定義
方式であって、インデクス定義対象のテーブル構成カラ
ム名を読み込み、読み込んだテーブル構成カラム名を表
示画面上に表示し、ポインティングデバイスによる表示
画面上の選択指示により、定義するテーブル構成カラム
名を選択し、その選択順序によりインデクスを構成する
カラムのカラム順序を決定し、選択したカラムを選択順
に並べ、インデクス識別子を付加して、インデクス構成
カラムを登録し、登録したインデクス構成カラムの登録
状況を表示することを特徴とするデータベースのインデ
クス定義方式。
1. An index definition method that defines columns that serve as indexes for searching database data in a table structure, reads the table structure column names to be index defined, and displays the read table structure column names on the display screen. Then, in accordance with the selection instructions on the display screen using the pointing device, select the table constituent column names to be defined, determine the column order of the columns that make up the index according to the selection order, arrange the selected columns in the selection order, and assign the index identifier. A database index definition method characterized by further registering index constituent columns and displaying the registration status of the registered index constituent columns.
JP2134391A 1990-05-24 1990-05-24 Database index definition method Pending JPH0433026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2134391A JPH0433026A (en) 1990-05-24 1990-05-24 Database index definition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2134391A JPH0433026A (en) 1990-05-24 1990-05-24 Database index definition method

Publications (1)

Publication Number Publication Date
JPH0433026A true JPH0433026A (en) 1992-02-04

Family

ID=15127307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2134391A Pending JPH0433026A (en) 1990-05-24 1990-05-24 Database index definition method

Country Status (1)

Country Link
JP (1) JPH0433026A (en)

Similar Documents

Publication Publication Date Title
US5625771A (en) Method for making cursor form
JPH08137899A (en) Information management system
CN106933967B (en) Batch modification method and device for file contents
JPH0248774A (en) Data controlling method for cad system
US8056073B2 (en) Method, computer program product, and system for merging multiple same class instance states
JP3441155B2 (en) Information management search device
JP5884925B2 (en) Management support apparatus, management support method, and management support program
JPH0433164A (en) Temporary table connection system in relational type data base
JPH0535454A (en) Retrieval and display method for program component
JPH07295868A (en) Database integrity constraint management method
JPH07319896A (en) Search device
JP3337717B2 (en) Database processing device and database processing method
JPH11250039A (en) Editing supporting method using database and recording medium storing program for the same
CN119597755A (en) A database parallel equivalent join method based on column storage format
JP2004126838A (en) Document creation support method
JP4228267B2 (en) Collective attribute search system, collective attribute search method, and collective attribute search program
JPH05233396A (en) Temporary definition system for virtual table
JP2892422B2 (en) How to create delay analysis data
JPH0934933A (en) Parts layout device
JP2002278760A (en) Method, system and program for creating electronic document program
KR19980040474A (en) Method and apparatus for searching records in a subscriber management system for Windows using a template
JPS63138455A (en) Processing system for display of object attribute list
JPH0535797A (en) Information retrieval device
JP2002117041A (en) Database inquiring system
JPH02212971A (en) Name of correlation automatic generation system