JP3471666B2 - Keyword search method over multiple tables - Google Patents

Keyword search method over multiple tables

Info

Publication number
JP3471666B2
JP3471666B2 JP20149499A JP20149499A JP3471666B2 JP 3471666 B2 JP3471666 B2 JP 3471666B2 JP 20149499 A JP20149499 A JP 20149499A JP 20149499 A JP20149499 A JP 20149499A JP 3471666 B2 JP3471666 B2 JP 3471666B2
Authority
JP
Japan
Prior art keywords
keyword
name
field
tables
extraction
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.)
Expired - Fee Related
Application number
JP20149499A
Other languages
Japanese (ja)
Other versions
JP2001028001A (en
Inventor
利幸 松下
靖彦 朝日
真 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Solutions Innovators Ltd
Original Assignee
NEC Corp
NEC Solutions Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Solutions Innovators Ltd filed Critical NEC Corp
Priority to JP20149499A priority Critical patent/JP3471666B2/en
Publication of JP2001028001A publication Critical patent/JP2001028001A/en
Application granted granted Critical
Publication of JP3471666B2 publication Critical patent/JP3471666B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数のテーブルの
内容をキーワードにより検索するためのその方法に関す
る。
TECHNICAL FIELD The present invention relates to a method for searching the contents of a plurality of tables by keywords.

【0002】[0002]

【従来の技術】従来の複数テーブルにわたるキーワード
検索方法を以下に説明する。
2. Description of the Related Art A conventional keyword search method over a plurality of tables will be described below.

【0003】例えば、1つのテーブルに記録されている
「リンゴ」の価格を知りたい場合には、テーブルの品目
フィールドの値を「リンゴ」として、品目フィールドの
値が「リンゴ」であるレコードを検索することになる。
このためのSQL文は、例えば、 SELECT * FROM TABLE1 WHERE NAME = "リンゴ" となる。
For example, when it is desired to know the price of "apple" recorded in one table, the value of the item field of the table is set to "apple" and the record in which the value of the item field is "apple" is searched. Will be done.
The SQL statement for this is, for example, SELECT * FROM TABLE1 WHERE NAME = "apple".

【0004】各テーブルが、各年の各産品種別の価格を
記録したものであるとすると、リンゴの価格変動を調べ
るためには、複数年にわたる産品種別が果物であるテー
ブルについて、上記のレコードの検索の手順を繰り返す
ことになる。
Assuming that each table records the price of each product variety of each year, in order to examine the price fluctuation of apples, in order to investigate the price fluctuation of apples, the table of the record shown above is used for the table in which the product variety of each product product over several years is fruit. The search procedure will be repeated.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記の従来の
複数テーブルにわたるキーワード検索方法においては、
テーブル数が膨大である場合には、価格変動を知りたい
品目を含むテーブルを抽出すること自体が煩わしいの
で、全てのテーブルについて検索を行うことになり、従
って、検索に多大な時間が費やされていた。
However, in the above-mentioned conventional keyword search method over a plurality of tables,
When the number of tables is enormous, it is troublesome to extract the table that includes the item for which you want to know the price fluctuation, so you have to search all the tables, so a lot of time is spent on the search. Was there.

【0006】従って、本発明は、複数のテーブルの内容
をキーワードにより高速に検索することを可能とする方
法を提供することを目的とする。
[0006] Therefore, an object of the present invention is to provide a method for enabling the contents of a plurality of tables to be searched at high speed by keywords.

【0007】[0007]

【課題を解決するための手段】本発明による複数テーブ
ルにわたるキーワード検索方法は、各々が複数の検索対
象テーブルの各々のキーワード検索に使用されるキーワ
ードフィールドをキーワードフィールドとして有する複
数の第1の抽出テーブルを記録媒体に生成する第1の生
成ステップと、前記複数の第1の抽出テーブルの各々の
名称を名称フィールドとして、該第1の抽出テーブルの
前記キーワードフィールドをキーワードフィールドとし
て有するキーワード対第1の抽出テーブル名テーブルを
前記記録媒体に生成する第2の生成ステップと、前記複
数の第1の抽出テーブルの各々の名称を第1の名称フィ
ールドとして、レコード番号をレコード番号フィールド
として有するテーブル一覧テーブルを前記記録媒体に生
成する第3の生成ステップと、前記テーブル一覧テーブ
ルの前記第1の名称フィールドを名称フィールドとし
て、前記テーブル一覧テーブルの前記レコード番号フィ
ールドをレコード番号フィールドとして有する第1の抽
出テーブル名対レコード番号テーブルを前記記録媒体に
生成する第4の生成ステップと、入力装置を介して使用
者からキーワードを入力する入力ステップと、入力され
たキーワードを有する第1の抽出テーブルの名称を前記
キーワード対第1の抽出テーブル名テーブルを参照して
検索する第1の検索ステップと、検索された第1の抽出
テーブルの名称を前記第1の名称フィールドに有する前
記テーブル一覧テーブルのレコード番号を前記第1の抽
出テーブル名対レコード番号テーブルを参照して検索す
る第2の検索ステップと、前記テーブル一覧テーブルの
検索されたレコード番号のレコードより成る検索結果テ
ーブルを生成する第5の生成ステップと、前記検索結果
テーブルを出力装置に表示する第1の表示ステップと、
前記検索結果テーブルの前記入力装置を介して前記使用
者により選択されたレコードの第1の名称フィールドに
ある名称の第1の抽出テーブルの内容を前記出力装置に
表示する第2の表示ステップと、を有することを特徴と
する。
According to a keyword search method for a plurality of tables according to the present invention, a plurality of first extraction tables each having a keyword field used for a keyword search of a plurality of search target tables as a keyword field. And a keyword pair having a name of each of the plurality of first extraction tables as a name field and the keyword field of the first extraction table as a keyword field. A second generation step of generating an extraction table name table in the recording medium, and a table list table having a name of each of the plurality of first extraction tables as a first name field and a record number as a record number field. Third generation generated on the recording medium And a first extraction table name-record number table having the table and the first name field of the table list table as the name field and the record number field of the table list table as the record number field in the recording medium. Refer to the keyword-to-first extraction table name table for the fourth generation step, the input step of inputting a keyword from the user through the input device, and the name of the first extraction table having the input keyword. And a record number of the table list table having the name of the retrieved first extraction table in the first name field in the first extraction table name vs. record number table. A second searching step for searching by reference; and the table A fifth generation step of generating a search result table consisting records retrieved record number of list table, a first display step of displaying on the output device the search result table,
A second display step of displaying the contents of the first extraction table of the name in the first name field of the record selected by the user via the input device of the search result table on the output device; It is characterized by having.

【0008】また、本発明による複数テーブルにわたる
キーワード検索方法は、上記の複数テーブルにわたるキ
ーワード検索方法において、前記複数の第1の抽出テー
ブルの前記キーワードフィールドの内容を非重複でキー
ワードフィールドに有するキーワードテーブルを前記記
録媒体に生成する第5の生成ステップと、前記入力ステ
ップで入力されたキーワードが前記キーワードテーブル
の前記キーワードフィールドにあるか否かを判定する判
定ステップと、を更に有し、前記判定ステップでの判定
結果が偽である場合には前記第1の検索ステップからの
ステップを行わないことを特徴とする。
A keyword search method for a plurality of tables according to the present invention is the keyword search method for a plurality of tables described above, wherein the contents of the keyword fields of the plurality of first extraction tables are non-overlapping in a keyword field. Further comprising: a fifth generating step for generating in the recording medium; and a determining step of determining whether or not the keyword input in the input step is in the keyword field of the keyword table. If the determination result in step 1 is false, the steps from the first search step are not performed.

【0009】更に、本発明による複数テーブルにわたる
キーワード検索方法は、上記の複数テーブルにわたるキ
ーワード検索方法において、各々が前記複数の検索対象
テーブルの各々のキーワード検索に使用されないフィー
ルドを有する複数の第2の抽出テーブルを前記記録媒体
に生成する第6の生成ステップを更に有し、前記テーブ
ル一覧テーブル及び前記検索結果テーブルは更に前記複
数の第2の抽出テーブルの名称を第2の名称フィールド
として有し、前記第2の表示ステップでは、前記第1の
名称フィールドにある名称の第1の抽出テーブルの内容
に加え前記第2の名称フィールドにある名称の第2の抽
出テーブルの内容を表示することを特徴とする。
Further, a keyword search method for a plurality of tables according to the present invention is the method for a keyword search for a plurality of tables described above, wherein a plurality of second search fields each having a field that is not used for keyword search of each of the plurality of search target tables are provided. A sixth generation step of generating an extraction table on the recording medium, wherein the table list table and the search result table further have names of the plurality of second extraction tables as a second name field, In the second display step, in addition to the contents of the first extraction table of the name in the first name field, the contents of the second extraction table of the name in the second name field are displayed. And

【0010】更に、本発明による複数テーブルにわたる
キーワード検索方法は、上記の複数テーブルにわたるキ
ーワード検索方法において、前記入力ステップでは複数
のキーワードを入力し、前記第1の検索ステップでは、
前記複数のキーワードの各々に対応して検索されたレコ
ードのうち互いに重複するレコードの第1の抽出テーブ
ルの名称を検索結果とすることを特徴とする。
Further, a keyword search method for a plurality of tables according to the present invention is the above keyword search method for a plurality of tables, wherein a plurality of keywords are input in the input step, and in the first search step,
It is characterized in that the names of the first extraction table of the records that are duplicated among the records retrieved corresponding to each of the plurality of keywords are used as the retrieval result.

【0011】更に、本発明による複数テーブルにわたる
キーワード検索方法は、上記の複数テーブルにわたるキ
ーワード検索方法において、前記入力ステップでは複数
のキーワードを入力し、前記第1の検索ステップでは、
前記複数のキーワードの各々に対応して検索されたレコ
ードの総和のレコードの第1の抽出テーブルの名称を検
索結果とすることを特徴とする。
Further, a keyword search method for a plurality of tables according to the present invention is the above keyword search method for a plurality of tables, wherein a plurality of keywords are input in the input step, and in the first search step,
It is characterized in that the name of the first extraction table of the record of the sum total of the records searched corresponding to each of the plurality of keywords is used as the search result.

【0012】更に、本発明による複数テーブルにわたる
キーワード検索方法は、上記の複数テーブルにわたるキ
ーワード検索方法において、前記複数の抽出テーブルの
いずれかの前記キーワードフィールドに前記抽出テーブ
ルに対応する検索対象テーブルのキーワードフィールド
の内容以外の内容を有するレコードを追加する追加ステ
ップを更に有することを特徴とする。
Further, a keyword search method for a plurality of tables according to the present invention is the above keyword search method for a plurality of tables, wherein a keyword of a search target table corresponding to the extraction table is set in one of the keyword fields of the plurality of extraction tables. The method further comprises an additional step of adding a record having a content other than the content of the field.

【0013】本発明によるコンピュータ読み取り可能な
記録媒体は、上記の複数テーブルにわたるキーワード検
索方法をコンピュータに実行させるためのプログラムを
記録したことを特徴とする。
A computer-readable recording medium according to the present invention is characterized in that a program for causing a computer to execute the above-described keyword search method across a plurality of tables is recorded.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0015】図1は、検索の対象となる各テーブルの1
例の構成を示す。なお、検索の対象となる各テーブルを
以下「検索対象テーブル」という。図1を参照すると、
テーブルの各レコードは、NAMEフィールドとPRICEフィ
ールドより構成される。図1に示すのは、所定の年(例
えば1999年)の果物の価格テーブルであるが、他の
年の果物の価格テーブル、野菜などの他の産品種別につ
いての各年の価格テーブルも同様な構成をとり、これら
が検索の対象となる。検索対象テーブルは、コンピュー
タに接続されたハードディスクなどの記録媒体に記録さ
れる。
FIG. 1 shows one of the tables to be searched.
An example configuration is shown. Each table to be searched is hereinafter referred to as a “search target table”. Referring to FIG.
Each record in the table consists of a NAME field and a PRICE field. FIG. 1 shows a price table of fruits in a predetermined year (for example, 1999), but the price table of fruits in other years and the price table of each year for other varieties such as vegetables are similar. It is configured and these are the targets of the search. The search target table is recorded in a recording medium such as a hard disk connected to the computer.

【0016】図2は、本発明の実施形態で生成されるテ
ーブル群を示す。図2を参照すると、テーブル群は、テ
ーブル一覧テーブル1、数値テーブル2、文字テーブル
3、キーワードテーブル4、キーワード対文字テーブル
名テーブル5、文字テーブル対レコード番号テーブル6
より構成される。テーブル群は、コンピュータに接続さ
れたハードディスクなどの記録媒体に記録される。
FIG. 2 shows a table group generated in the embodiment of the present invention. Referring to FIG. 2, the table group includes a table list table 1, a numerical value table 2, a character table 3, a keyword table 4, a keyword-to-character table name table 5, and a character table-to-record number table 6.
It is composed of The table group is recorded in a recording medium such as a hard disk connected to the computer.

【0017】各テーブルの説明を以下にする。The description of each table will be given below.

【0018】テーブル一覧テーブル1の各レコードは、
レコード番号を示すIDフィールド、数値テーブルの名
称が格納される数値テーブルフィールド、文字テーブル
の名称が格納される文字テーブルフィールド、検索対象
テーブルの説明の文字を格納するテーブル説明フィール
ドより構成される。なお、テーブル一覧テーブル1をも
とに検索の結果としてHTMLテーブルを生成し、その
HTMLテーブルのIDフィールド、テーブル説明フィ
ールドなどのいずれかのフィールドのOnCkickイベント
ハンドラには、テーブル一覧テーブルの各レコードと関
連付けられている検索対象テーブルを表示するためのメ
ソッドが対応付けられる。なお、HTML文書で表示さ
れるのはIDフィールドとテーブル説明フィールドだけ
であっても良い。また、生成されるHTMLテーブル
は、テーブル一覧テーブル1の全レコードのうち検索の
結果絞り込まれたレコードのみより構成される。又は、
生成されるHTMLテーブルはテーブル一覧テーブル1
の全レコードより構成されるが、検索の結果絞り込まれ
たレコードのみが特殊表示される。
Each record in the table list table 1 is
It is composed of an ID field indicating a record number, a numeric table field storing the name of a numeric table, a character table field storing the name of a character table, and a table description field storing the description character of the search target table. It should be noted that an HTML table is generated as a result of the search based on the table list table 1, and the OnCkick event handler of any of the fields such as the ID field and the table description field of the HTML table includes each record of the table list table. A method for displaying the associated search target table is associated. Note that only the ID field and the table description field may be displayed in the HTML document. Further, the generated HTML table is composed of only the records narrowed down as a result of the search among all the records in the table list table 1. Or
The generated HTML table is the table list table 1
It consists of all records of, but only the records narrowed down as a result of the search are displayed specially.

【0019】数値テーブル2は、各検索対象テーブルに
格納されている各品目の価格が格納されているテーブル
であり、この各レコードは、検索対象テーブル内での各
品目の識別子が格納されるBUNフィールド(BUNは「分
類」のローマ字表記の先頭文字)と、各品目の価格が格
納されるPRICEフィールドより構成される。数値テーブ
ル2は、検索対象テーブル毎に生成される。
The numerical table 2 is a table in which the price of each item stored in each search target table is stored, and each record is a BUN in which the identifier of each item in the search target table is stored. It consists of a field (BUN is the first letter of the "classification" in Roman letters) and a PRICE field that stores the price of each item. The numerical value table 2 is generated for each search target table.

【0020】文字テーブル3は、各検索対象テーブルに
格納されている各品目の名称が格納されているテーブル
であり、この各レコードは、検索対象テーブル内での各
品目の識別子が格納されるBUNフィールドと、各品目の
名称が格納されるNAMEフィールドより構成される。な
お、数値テーブル2のBUNフィールドと文字テーブル3
のBUNフィールドは1対1に対応する。文字テーブル3
は、検索対象テーブル毎に生成される。
The character table 3 is a table in which the names of the respective items stored in the respective retrieval target tables are stored, and each of these records is a BUN in which the identifier of each item in the retrieval target table is stored. It consists of a field and a NAME field that stores the name of each item. The BUN field of the numerical table 2 and the character table 3
The BUN field of 1 corresponds to 1: 1. Character table 3
Is generated for each search target table.

【0021】キーワードテーブル4は、全ての検索対象
テーブルのうち少なくとも1つの検索対象テーブルに格
納されている品目名が格納されているテーブルである。
The keyword table 4 is a table in which the item names stored in at least one search target table among all the search target tables are stored.

【0022】キーワード対文字テーブル名テーブル5
は、品目名毎にその品目名が格納されている文字テーブ
ルの名称を格納したテーブルであり、この各レコード
は、品目名が格納されているNAMEフィールドと、NAMEフ
ィールドに格納された名称の品目が格納されている文字
テーブルの名称が格納されているテーブル名フィールド
より構成される。図2の例では、NAMEフィールドの値が
「リンゴ」であるレコードは1つしかないが、この他に
あっても良い。すなわち、NAMEフィールドとテーブル名
フィールドは1対多の関係にある。
Keyword-to-character table name table 5
Is a table that stores the name of the character table that stores the item name for each item name. Each record contains the NAME field that stores the item name and the item whose name is stored in the NAME field. It is composed of a table name field in which the name of the character table in which is stored. In the example of FIG. 2, there is only one record in which the value of the NAME field is "apple", but there may be other records. That is, the NAME field and the table name field have a one-to-many relationship.

【0023】文字テーブル対レコード番号テーブル6
は、文字テーブル3毎にテーブル一覧テーブル1におい
て文字テーブル3が格納されているレコード番号(I
D)を格納したテーブルであり、その各レコードは、文
字テーブルの名称が格納される文字テーブルフィールド
と文字テーブルフィールドによって示される名称を有す
る文字テーブルがテーブル一覧テーブル1において格納
されているレコード番号が格納されるIDレコードより
構成される。
Character table vs. record number table 6
Is the record number (I where the character table 3 is stored in the table list table 1 for each character table 3).
D) is stored in each table, and each record has a record number in which a character table field in which the name of the character table is stored and a character table having a name indicated by the character table field are stored in the table list table 1. It is composed of stored ID records.

【0024】次に、各テーブルを生成する方法を以下に
説明する。
Next, a method of generating each table will be described below.

【0025】数値テーブル2は、各検索対象テーブルか
ら価格フィールドを抽出することにより生成する。文字
テーブル3は、各検索対象テーブルから品目フィールド
を抽出することにより生成する。また、数値テーブル2
と文字テーブル3の生成の際には、同じ品目に対する数
値テーブル2のBUNと文字テーブル3のBUNフィールドの
値を同一にする。
The numerical value table 2 is generated by extracting the price field from each search target table. The character table 3 is generated by extracting the item field from each search target table. Also, numerical table 2
When the character table 3 is generated, the BUN of the numerical value table 2 and the value of the BUN field of the character table 3 for the same item are made the same.

【0026】キーワードテーブル4は、全ての文字テー
ブル3のNAMEフィールドの値を非重複で追加することに
より生成する。
The keyword table 4 is generated by adding the values of the NAME fields of all the character tables 3 without duplication.

【0027】キーワード対文字テーブル名テーブル5の
各レコードは、文字テーブル3を基に、文字テーブル3
に含まれている各レコードのNAMEフィールドの値と文字
テーブル3の名称により生成する。
Each record of the keyword-to-character table name table 5 is based on the character table 3 and is based on the character table 3.
It is generated by the value of the NAME field of each record included in and the name of the character table 3.

【0028】テーブル一覧テーブル1の各レコードは、
数値テーブル2及び文字テーブル3を生成するときにそ
れらの名称を数値テーブルフィールド及び文字テーブル
フィールドの値として生成する。IDフィールドは例え
ば、自動連番である。テーブル説明フィールドの内容
は、例えば、付加的にキーボードなどの入力装置を介し
て使用者によりコンピュータに入力された内容をもとに
作成する。
Each record in the table list table 1 is
When the numerical table 2 and the character table 3 are generated, their names are generated as the values of the numerical table field and the character table field. The ID field is, for example, an automatic serial number. The contents of the table description field are created based on the contents input to the computer by the user through an input device such as a keyboard, for example.

【0029】文字テーブル対レコード番号テーブル6
は、テーブル一覧テーブル1のIDフィールドと文字テ
ーブルフィールドを抽出することにより生成する。
Character table vs. record number table 6
Is generated by extracting the ID field and the character table field of the table list table 1.

【0030】次に、キーワードを含む検索対象テーブル
を表示する方法について図3を参照して説明する。
Next, a method of displaying a search target table including keywords will be described with reference to FIG.

【0031】まず、使用者がコンピュータが表示するH
TML文書の画面上でキーワードをキーボードなどの入
力装置を介してコンピュータに入力する(ステップS2
01)。画面上の入力位置は、例えば、HTML文書上
の所定のエディットボックスである。
First, H displayed by the user on the computer
A keyword is input to the computer on the screen of the TML document via an input device such as a keyboard (step S2).
01). The input position on the screen is, for example, a predetermined edit box on the HTML document.

【0032】次に、入力されたキーワードがキーワード
テーブル4に格納されているか否かを調べる(ステップ
S202)。格納されていればステップS203に進
み、格納されていなければ処理を終了する。
Next, it is checked whether or not the input keyword is stored in the keyword table 4 (step S202). If it is stored, the process proceeds to step S203, and if it is not stored, the process ends.

【0033】次に、入力されたキーワードが格納されて
いる文字テーブルの名称をキーワード対文字テーブル名
テーブル5を参照することにより検索する。この文字テ
ーブルの数は単数又は複数である(ステップS20
3)。
Next, the name of the character table in which the input keyword is stored is searched by referring to the keyword-to-character table name table 5. The number of character tables is singular or plural (step S20).
3).

【0034】次に、検索された文字テーブルの名称を格
納しているテーブル一覧テーブル1のレコードの番号を
文字テーブル対レコード番号テーブル6を参照すること
により検索する(ステップS204)。
Next, the number of the record of the table list table 1 which stores the name of the retrieved character table is retrieved by referring to the character table-record number table 6 (step S204).

【0035】次に、テーブル一覧テーブル1のレコード
のうち検索されたレコード番号を有するレコードのみよ
りなるHTML表又は検索されたレコード番号を有する
レコードが特殊表示されるHTML表を生成する(ステ
ップS205)。
Next, among the records of the table list table 1, an HTML table including only records having the retrieved record number or an HTML table in which the record having the retrieved record number is specially displayed is generated (step S205). .

【0036】次に、生成されたHTML表を表示する
(ステップS206)。
Next, the generated HTML table is displayed (step S206).

【0037】次に、使用者がHTML表の検索されたレ
コードを選択してクリックする(ステップS207)。
Next, the user selects and clicks the retrieved record in the HTML table (step S207).

【0038】次に、HTML表のレコードのうちクリッ
クされたレコードの数値テーブルフィールドに名前が格
納されている数値テーブル2及びそのレコードの文字テ
ーブルフィールドに名前が格納されている文字テーブル
3を用いて、品目名とその価格より構成されるレコード
より成り、対応する検索対象テーブルと同一の内容のテ
ーブルを表示する。なお、この際、品目名として入力さ
れたキーワードを有するレコードのみを表示しても良い
し、数値テーブル2及び文字テーブル3の全てのレコー
ドを表示しても良い(ステップS208)。
Next, using the numeric table 2 whose name is stored in the numeric table field of the clicked record among the records in the HTML table and the character table 3 whose name is stored in the character table field of that record, , Which consists of records consisting of item names and prices, and which has the same contents as the corresponding search target table is displayed. At this time, only the record having the keyword input as the item name may be displayed, or all the records of the numerical value table 2 and the character table 3 may be displayed (step S208).

【0039】次に、使用者がHTML表を再表示のため
のHTML文書上の所定の位置(戻るボタンの位置な
ど)をクリックする(ステップS209)。
Next, the user clicks a predetermined position (such as the position of the return button) on the HTML document for redisplaying the HTML table (step S209).

【0040】ステップS209からはステップS206
に戻る。
From step S209 to step S206
Return to.

【0041】以上がキーワードを含む検索対象テーブル
を表示する方法である。
The above is the method of displaying the search target table including the keyword.

【0042】なお、上記の実施形態においては、品目名
をキーワードとするとしたが、他のフィールドの内容を
キーワードとしても良い。また、検索対象テーブルの各
テーブルには品目名のフィールド他に価格のフィールド
のみがあるとしたが、価格のフィールドは他のフィール
ドであっても良く、また、価格のフィールドの他のフィ
ールドが追加されていても良い。
In the above embodiment, the item name is used as the keyword, but the contents of other fields may be used as the keyword. Also, although it has been stated that each table of the search target table has only the price field in addition to the item name field, the price field may be another field, and another field of the price field may be added. It may be done.

【0043】また、使用者がキーボードなどの入力装置
を介して、文字テーブル3に、例えば「変動」、「推
移」、「○○年」、「果物」といった文字列をNAMEフィ
ールドの内容として持つレコードを追加して、検索時の
キーワードを入力する際に、これらの文字列をキーワー
ドとして選択するようにしても良い。この際、文字テー
ブル3の追加されたレコードに対応するレコードが数値
テーブル2に無くても良い。このようにすることによ
り、検索対象テーブルを説明する文字列により目的の検
索対象テーブルを検索することが可能となる。
Further, the user holds a character string such as “variation”, “transition”, “xx year”, “fruit” in the character table 3 as the contents of the NAME field through the input device such as a keyboard. You may make it select these character strings as a keyword, when adding a record and inputting the keyword at the time of a search. At this time, the record corresponding to the added record in the character table 3 may not be present in the numerical value table 2. By doing so, it becomes possible to search for the target search target table using the character string that describes the search target table.

【0044】更に、検索時のキーワードを複数個とし
て、ステップS203で、それぞれのキーワードに対応
した文字テーブルの論理積或いは論理和をとって、その
結果をステップS203の結果としての文字テーブルと
してもよい。すなわち、各々のキーワードに対応して検
索された文字テーブルのうちキーワード間で重複する文
字テーブルのみをステップS203の結果としての文字
テーブルとしても良いし、各々のキーワードに対応して
検索された文字テーブルのキーワードについての全てを
ステップS203の結果としての文字テーブルとしても
良い。
Further, a plurality of keywords at the time of retrieval may be set, and the logical product or logical sum of the character tables corresponding to the respective keywords may be taken in step S203, and the result may be used as the character table as the result of step S203. . That is, among the character tables searched for each keyword, only the character tables overlapping between the keywords may be used as the character table as the result of step S203, or the character table searched for each keyword may be used. All of the keywords may be used as the character table as the result of step S203.

【0045】更に、文字テーブル3に「変動」、「推
移」、「○○年」、「果物」といった文字列をNAMEフィ
ールドの内容として持つレコードを追加する場合に対応
して、検索時にキーワードを入力する代わりに、文章を
入力して、文章を分解して抽出した単語を複数キーワー
ドとして、ステップS203で、それぞれのキーワード
に対応した文字テーブルの論理積或いは論理和をとっ
て、その結果をステップS203の結果としての文字テ
ーブルとしてもよい。
Further, in order to add a record having a character string such as "variation", "transition", "XX year", and "fruit" as the contents of the NAME field to the character table 3, the keyword is searched at the time of retrieval. Instead of inputting, a sentence is input, the words extracted by decomposing the sentence are used as a plurality of keywords, and in step S203, the logical product or logical sum of the character tables corresponding to each keyword is taken, and the result is stepped. It may be a character table as a result of S203.

【0046】なお、上記の実施形態による各テーブルを
生成する方法及びキーワードを含む検索対象テーブルを
表示する方法(使用者による入力のステップは除く)
は、コンピュータに当該方法を実行させるためのプログ
ラムを記録したCD−ROMなどの記録媒体からコンピ
ュータが当該プログラムを読み込んで実行することによ
り実現することもできる。
The method of generating each table and the method of displaying a search target table including a keyword according to the above embodiment (excluding the step of input by the user).
Can also be realized by the computer reading and executing the program from a recording medium such as a CD-ROM in which a program for causing the computer to execute the method is recorded.

【0047】この際、通常は、コンピュータのCPU
は、オペレーティングシステムにより、当該プログラム
を当該記録媒体から主メモリに一旦転送した後に、主メ
モリから当該プログラムを読み込んで実行する。
At this time, the CPU of the computer is usually used.
The operating system temporarily transfers the program from the recording medium to the main memory, then reads the program from the main memory and executes the program.

【0048】また、上記プログラムは、インタプリタ形
式の命令を記述したテキスト形式のファイルと、このフ
ァイルを読み込んで実行命令に変換するインタプリタよ
り生成されることもある。
The above program may be generated by a text format file in which an interpreter format instruction is described and an interpreter that reads this file and converts it into an execution instruction.

【0049】[0049]

【発明の効果】以上説明したように、本発明によれば、
検索対象テーブルをキーワードにより絞り込むことが出
来るので、検索時間を短縮することができるという効果
が奏される。
As described above, according to the present invention,
Since the search target table can be narrowed down by the keyword, there is an effect that the search time can be shortened.

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

【図1】本発明の実施形態による検索対象テーブルの構
成例を示す図である。
FIG. 1 is a diagram showing a configuration example of a search target table according to an embodiment of the present invention.

【図2】本発明の実施形態で生成されるテーブル群を示
す図である。
FIG. 2 is a diagram showing a table group generated in the embodiment of the present invention.

【図3】本発明の実施形態によるキーワードを含む検索
対象テーブルを表示する方法を示すフローチャートであ
る。
FIG. 3 is a flowchart illustrating a method of displaying a search target table including a keyword according to an exemplary embodiment of the present invention.

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

1 テーブル一覧テーブル 2 数値テーブル 3 文字テーブル 4 キーワードテーブル 5 キーワード対文字テーブル名テーブル 6 文字テーブル対レコード番号テーブル 101 検索対象テーブル 1 table list table 2 Numerical table 3-character table 4 keyword table 5 Keyword-to-character table name table 6-character table vs. record number table 101 search target table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山口 真 東京都港区芝五丁目7番1号 日本電気 株式会社内 (56)参考文献 特開 平4−304559(JP,A) 特開 平8−36514(JP,A) 特開 平10−55373(JP,A) 特開 平10−143538(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 17/30 414 G06F 17/30 180 JICSTファイル(JOIS)─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Makoto Yamaguchi 5-7-1 Shiba, Minato-ku, Tokyo Within NEC Corporation (56) Reference JP-A-4-304559 (JP, A) JP-A-8 -36514 (JP, A) JP 10-55373 (JP, A) JP 10-143538 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 17/30 414 G06F 17/30 180 JISST file (JOIS)

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 各々が複数の検索対象テーブルの各々の
キーワード検索に使用されるキーワードフィールドをキ
ーワードフィールドとして有する複数の第1の抽出テー
ブルを記録媒体に生成する第1の生成ステップと、 前記複数の第1の抽出テーブルの各々の名称を名称フィ
ールドとして、該第1の抽出テーブルの前記キーワード
フィールドをキーワードフィールドとして有するキーワ
ード対第1の抽出テーブル名テーブルを前記記録媒体に
生成する第2の生成ステップと、 前記複数の第1の抽出テーブルの各々の名称を第1の名
称フィールドとして、レコード番号をレコード番号フィ
ールドとして有するテーブル一覧テーブルを前記記録媒
体に生成する第3の生成ステップと、 前記テーブル一覧テーブルの前記第1の名称フィールド
を名称フィールドとして、前記テーブル一覧テーブルの
前記レコード番号フィールドをレコード番号フィールド
として有する第1の抽出テーブル名対レコード番号テー
ブルを前記記録媒体に生成する第4の生成ステップと、 入力装置を介して使用者からキーワードを入力する入力
ステップと、 入力されたキーワードを有する第1の抽出テーブルの名
称を前記キーワード対第1の抽出テーブル名テーブルを
参照して検索する第1の検索ステップと、 検索された第1の抽出テーブルの名称を前記第1の名称
フィールドに有する前記テーブル一覧テーブルのレコー
ド番号を前記第1の抽出テーブル名対レコード番号テー
ブルを参照して検索する第2の検索ステップと、 前記テーブル一覧テーブルの検索されたレコード番号の
レコードより成る検索結果テーブルを生成する第5の生
成ステップと、 前記検索結果テーブルを出力装置に表示する第1の表示
ステップと、 前記検索結果テーブルの前記入力装置を介して前記使用
者により選択されたレコードの第1の名称フィールドに
ある名称の第1の抽出テーブルの内容を前記出力装置に
表示する第2の表示ステップと、 を有することを特徴とする複数テーブルにわたるキーワ
ード検索方法。
1. A first generation step of generating, on a recording medium, a plurality of first extraction tables each having a keyword field used as a keyword field for keyword search of each of a plurality of search target tables, said plurality of Second generation of generating a keyword-to-first extraction table name table having the name of each of the first extraction tables as a name field and the keyword field of the first extraction table as a keyword field in the recording medium. And a third generation step of generating a table list table having a record number field as a record number field and a name of each of the plurality of first extraction tables as a first name field, and the table. Name the first name field of the list table As a field, a fourth generation step of generating a first extraction table name-record number table having the record number field of the table list table as a record number field in the recording medium, and from a user via an input device. An input step of inputting a keyword, a first search step of searching the name of the first extraction table having the input keyword with reference to the keyword vs. first extraction table name table, and a first searched Second search step of searching the record number of the table list table having the name of the extraction table in the first name field with reference to the first extraction table name-record number table, and the table list table Search result table consisting of the record with the searched record number of A fifth generation step of generating a search result table, a first display step of displaying the search result table on an output device, a first display step of the record selected by the user via the input device of the search result table. A second display step of displaying the content of the first extraction table of the name in the name field of the above on the output device.
【請求項2】 請求項1に記載の複数テーブルにわたる
キーワード検索方法において、 前記複数の第1の抽出テーブルの前記キーワードフィー
ルドの内容を非重複でキーワードフィールドに有するキ
ーワードテーブルを前記記録媒体に生成する第5の生成
ステップと、 前記入力ステップで入力されたキーワードが前記キーワ
ードテーブルの前記キーワードフィールドにあるか否か
を判定する判定ステップと、を更に有し、 前記判定ステップでの判定結果が偽である場合には前記
第1の検索ステップからのステップを行わないことを特
徴とする複数テーブルにわたるキーワード検索方法。
2. The keyword search method for a plurality of tables according to claim 1, wherein a keyword table having contents of the keyword fields of the plurality of first extraction tables in a non-overlapping keyword field is generated in the recording medium. The method further includes a fifth generation step and a determination step of determining whether or not the keyword input in the input step is in the keyword field of the keyword table, and the determination result in the determination step is false. A keyword search method across a plurality of tables, wherein the steps from the first search step are not performed in some cases.
【請求項3】 請求項1又は2に記載の複数テーブルに
わたるキーワード検索方法において、 各々が前記複数の検索対象テーブルの各々のキーワード
検索に使用されないフィールドを有する複数の第2の抽
出テーブルを前記記録媒体に生成する第6の生成ステッ
プを更に有し、 前記テーブル一覧テーブル及び前記検索結果テーブルは
更に前記複数の第2の抽出テーブルの名称を第2の名称
フィールドとして有し、 前記第2の表示ステップでは、前記第1の名称フィール
ドにある名称の第1の抽出テーブルの内容に加え前記第
2の名称フィールドにある名称の第2の抽出テーブルの
内容を表示することを特徴とする複数テーブルにわたる
キーワード検索方法。
3. The keyword search method for a plurality of tables according to claim 1 or 2, wherein a plurality of second extraction tables each having a field that is not used for keyword search of each of the plurality of search target tables are recorded. A sixth generation step of generating the medium, wherein the table list table and the search result table further have the names of the plurality of second extraction tables as a second name field, and the second display In the step, in addition to the contents of the first extraction table of the name in the first name field, the contents of the second extraction table of the name in the second name field are displayed. Keyword search method.
【請求項4】 請求項1乃至3のいずれか1項に記載の
複数テーブルにわたるキーワード検索方法において、 前記入力ステップでは複数のキーワードを入力し、 前記第1の検索ステップでは、前記複数のキーワードの
各々に対応して検索されたレコードのうち互いに重複す
るレコードの第1の抽出テーブルの名称を検索結果とす
ることを特徴とする複数テーブルにわたるキーワード検
索方法。
4. The keyword search method for a plurality of tables according to claim 1, wherein a plurality of keywords are input in the input step, and a plurality of keywords are input in the first search step. A keyword search method across a plurality of tables, wherein the names of the first extraction tables of the records that are duplicated among the records searched corresponding to each other are used as the search results.
【請求項5】 請求項1乃至3のいずれか1項に記載の
複数テーブルにわたるキーワード検索方法において、 前記入力ステップでは複数のキーワードを入力し、 前記第1の検索ステップでは、前記複数のキーワードの
各々に対応して検索されたレコードの総和のレコードの
第1の抽出テーブルの名称を検索結果とすることを特徴
とする複数テーブルにわたるキーワード検索方法。
5. The keyword search method for a plurality of tables according to claim 1, wherein a plurality of keywords are input in the input step, and the plurality of keywords are input in the first search step. A keyword search method across a plurality of tables, wherein the name of the first extraction table of the total sum of the records searched corresponding to each is used as the search result.
【請求項6】 請求項1乃至5のいずれか1項に記載の
複数テーブルにわたるキーワード検索方法において、 前記複数の抽出テーブルのいずれかの前記キーワードフ
ィールドに前記抽出テーブルに対応する検索対象テーブ
ルのキーワードフィールドの内容以外の内容を有するレ
コードを追加する追加ステップを更に有することを特徴
とする複数テーブルにわたるキーワード検索方法。
6. The keyword search method for a plurality of tables according to claim 1, wherein a keyword of a search target table corresponding to the extraction table is included in the keyword field of any one of the plurality of extraction tables. A keyword search method across a plurality of tables, further comprising an additional step of adding a record having a content other than the content of the field.
【請求項7】 請求項1乃至6のいずれか1項に記載の
複数テーブルにわたるキーワード検索方法をコンピュー
タに実行させるためのプログラムを記録したことを特徴
とするコンピュータ読み取り可能な記録媒体。
7. A computer-readable recording medium on which is recorded a program for causing a computer to execute the keyword search method for a plurality of tables according to claim 1. Description:
JP20149499A 1999-07-15 1999-07-15 Keyword search method over multiple tables Expired - Fee Related JP3471666B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20149499A JP3471666B2 (en) 1999-07-15 1999-07-15 Keyword search method over multiple tables

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20149499A JP3471666B2 (en) 1999-07-15 1999-07-15 Keyword search method over multiple tables

Publications (2)

Publication Number Publication Date
JP2001028001A JP2001028001A (en) 2001-01-30
JP3471666B2 true JP3471666B2 (en) 2003-12-02

Family

ID=16441997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20149499A Expired - Fee Related JP3471666B2 (en) 1999-07-15 1999-07-15 Keyword search method over multiple tables

Country Status (1)

Country Link
JP (1) JP3471666B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100371931C (en) * 2003-08-13 2008-02-27 华为技术有限公司 Method for realizing quick-accessing database
JP2007034878A (en) * 2005-07-29 2007-02-08 Turbo Data Laboratory:Kk Information processing method, information processor, and information processing program

Also Published As

Publication number Publication date
JP2001028001A (en) 2001-01-30

Similar Documents

Publication Publication Date Title
US10169310B2 (en) Rich text handling for a web application
JP4977589B2 (en) Specific expression extraction device, specific expression extraction method, and program
JP2009003541A (en) Index preparation system, method and program for database
WO2000075809A1 (en) Information sorting method, information sorter, recorded medium on which information sorting program is recorded
US6640219B2 (en) Analyzing data files
JP4179858B2 (en) Document search apparatus, document search method, program, and recording medium
JP2007304796A (en) Database analysis system, database analysis method and program
JP3471666B2 (en) Keyword search method over multiple tables
JP2005128872A (en) Document retrieving system and document retrieving program
JP2503333B2 (en) Full-text index search method
JP7264115B2 (en) Information retrieval system
JPH11306187A (en) Method and device for presenting retrieval result of document with category
JP2005346486A (en) Document retrieval device
JP2549745B2 (en) Document search device
JP2980067B2 (en) Document categorizing apparatus and machine-readable recording medium recording program
JP2005011301A (en) Document processor and document processing program
JPH06348756A (en) Index preparing device and index utilizing device
JPH08137892A (en) Method and device for document retrieval
EP0679999A1 (en) A method and apparatus for storage and retrieval of data
JPH06195386A (en) Data retriever
KR101057997B1 (en) Search engines and search methods using initial text
JP2006039811A (en) Document management program, document management method and document management device
JPH06168270A (en) Character string retrieval system using index and preparing device for index
JP2002099573A (en) Device and method for similar document retrieval, and recording medium
JP4248828B2 (en) Document processing apparatus, document processing method, and recording medium

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080912

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080912

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090912

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090912

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100912

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110912

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120912

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130912

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees