JPH10260992A - Database processor and storage medium - Google Patents

Database processor and storage medium

Info

Publication number
JPH10260992A
JPH10260992A JP10003602A JP360298A JPH10260992A JP H10260992 A JPH10260992 A JP H10260992A JP 10003602 A JP10003602 A JP 10003602A JP 360298 A JP360298 A JP 360298A JP H10260992 A JPH10260992 A JP H10260992A
Authority
JP
Japan
Prior art keywords
search
sentence
item
database
retrieval
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
JP10003602A
Other languages
Japanese (ja)
Inventor
Takeshi Yamaguchi
健史 山口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP10003602A priority Critical patent/JPH10260992A/en
Publication of JPH10260992A publication Critical patent/JPH10260992A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To easily cope with a database even when the structure of the database is changed by providing a model retrieval sentence storing part which stores a retrieval sentence of a database that includes variable and a means which replaces the variable of a retrieval sentence which belongs to a model retrieval sentence storing part and corresponds to a retrieval item with a value that is inputted by a person who retrieves and generates a retrieval sentence. SOLUTION: An input form storing part 40 stores an HTML(hypertext markup language) document. When clients 6 and 7 make a retrieval request, an HTML document in an input form into which a stored retrieval condition is inputted is sent to the clients 6 and 7. A concrete structure with a model retrieval sentence storing part 30 stores a model SQL sentence that corresponds to a retrieval item, the model SQL sentence has variable, and a retrieval sentence is generated by replacing the variable with the value with which a retrieval sentence generating means 13 is inputted by the clients 6 and 7. Thus, execution efficiency is improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データベースを検
索するアプリケーションシステムおよびアプリケーショ
ンシステムの開発の支援に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an application system for retrieving a database and support for developing the application system.

【0002】[0002]

【従来の技術】従来のデータベースを検索するアプリケ
ーションシステムでは、入力フォーマットに従って入力
された検索指示に基づいて、データベースを検索するた
めの検索文を生成するプログラムが、データベースの構
造に密接に関連していた。例えば、データベースを検索
するための検索文としては、SQL(STRUCTUR
ED QUERY LANGUAGE)というものがあ
るが、以下のような検索文がある。
2. Description of the Related Art In a conventional application system for searching a database, a program for generating a search sentence for searching a database based on a search instruction input according to an input format is closely related to the structure of the database. Was. For example, as a search sentence for searching a database, SQL (STRUCTURE)
ED QUERY LANGUAGE), there is a search sentence as follows.

【0003】SELECT データ項目名C FROM
テーブル名X WHERE データ項目名A=項目値a OR データ
項目名B=項目値b 上記の例では、Xというテーブル内のレコードのうち、
Aという項目に値がaであるか、Bという項目に値がb
であるレコードの、Cという項目名を抽出することを示
している。
[0003] SELECT data item name C FROM
Table name X WHERE Data item name A = Item value a OR Data item name B = Item value b In the above example, among records in the table X,
Item A has value a, or item B has value b
Indicates that the item name C of the record is extracted.

【0004】この例で、テーブルXのデータ項目Bへが
別のテーブルY(項目名Cを含む)に移行された場合に
は、 SELECT データ項目名C FROM テーブル
名X WHERE データ項目名A=項目値a UNION SELECT DISTINCT データ項目名C FROM テーブル名Y WHERE データ項目名
B=項目値b. という検索文を生成しなければならず、検索文を生成す
るプログラムを修正する必要がある。
In this example, when data item B of table X is transferred to another table Y (including item name C), SELECT data item name C FROM table name X WHERE data item name A = item Value a UNION SELECT DISTINCT data item name C FROM table name Y WHERE data item name B = item value b. Therefore, it is necessary to modify the program that generates the search sentence.

【0005】また、プログラムの修正を減らすために、
テーブル名とテーブル名に格納されるデータ項目名の関
係を記憶しておき、その内容に基づいて、毎回検索文を
生成することも考えられるが、その場合には、プログラ
ムが複雑になると共に、その実行効率も悪くなってしま
う。
Also, in order to reduce program modifications,
It is conceivable to store the relationship between the table name and the data item name stored in the table name, and to generate a search statement every time based on the contents, but in that case, the program becomes complicated and Its execution efficiency is also reduced.

【0006】[0006]

【発明が解決しようとしている課題】上記で説明したよ
うに、従来技術では、データベースの構成が変更される
と、検索コマンドを生成するプログラムも修正しなけれ
ばならなかった。また、プログラムの修正を少なくする
ために、テーブルとデータ項目との関係を記憶してお
き、検索文を生成する度に、その関係を調べるのでは、
実行効率が低くなってしまう。
As described above, in the prior art, when the configuration of the database was changed, the program for generating the search command had to be modified. In addition, in order to reduce the modification of the program, the relationship between the table and the data items is stored, and the relationship is checked every time a search statement is generated.
Execution efficiency decreases.

【0007】本発明では、データベースの構成が変更さ
れても、容易に対応でき、実行効率の低下を抑えるデー
タベースを検索するアプリケーションシステムに構築す
ることを課題とする。
An object of the present invention is to construct an application system for searching a database which can easily cope with a change in the configuration of the database and suppresses a decrease in execution efficiency.

【0008】[0008]

【課題を解決するための手段】上記の課題は、データベ
ースの検索条件の検索項目に対応して、変数を含むデー
タベースの検索文を記憶するひな型検索文記憶部と、ひ
な型検索文記憶部の、検索項目に対応する検索文の変数
を、検索者が入力した値で置き換えて、検索文を生成す
る検索文生成手段とを設けることで解決される。
SUMMARY OF THE INVENTION The above object is achieved by a template search statement storage unit that stores a database search sentence including a variable corresponding to a search condition of a database search condition, The problem is solved by providing a search sentence generating means for generating a search sentence by replacing a variable of the search sentence corresponding to the search item with a value input by the searcher.

【0009】[0009]

【発明の実施の形態】図1は本発明の一実施例における
システム構成図を示す図である。1は検索サーバ(処理
装置)、6、7は1の検索サーバに接続されるクライア
ント(端末装置)である。20はデータベース、30は
データベースを検索するための検索文のひな型を記憶す
るひな型検索部記憶部であり、40はデータベースの検
索条件を入力するための入力フォームを記憶する入力フ
ォーム記憶部である。
FIG. 1 is a diagram showing a system configuration according to an embodiment of the present invention. 1 is a search server (processing device), and 6 and 7 are clients (terminal devices) connected to the 1 search server. Reference numeral 20 denotes a database, reference numeral 30 denotes a template search unit storage unit for storing a template of a search sentence for searching the database, and reference numeral 40 denotes an input form storage unit for storing an input form for inputting search conditions of the database.

【0010】11はひな型検索文記憶部にひな型の検索
文を登録するための処理手段であるひな型検索文登録手
段であり、12は検索を要求するクライアントと通信を
行う通信手段であり、13はクライアントより入力され
た条件に従って、データベースを検索するための検索文
を生成する処理手段である検索文生成手段である。14
は検索文に従ってデータベース20を検索するデータベ
ース検索手段である。 61、71は、他の処理装置よ
り通信回線を介して情報を受信して表示したり、所定の
情報を他の処理装置に送信する機能を有する処理手段で
あり、ここで説明する実施例においては、インターネッ
トのWWW(World WideWeb)のブラウザ
ー機能を有するプログラムである。
Reference numeral 11 denotes a template search sentence registration unit which is a processing unit for registering a template search sentence in the template search sentence storage unit, 12 denotes communication means for communicating with a client requesting a search, and 13 denotes a communication unit. This is a search sentence generating means which is a processing means for generating a search sentence for searching a database in accordance with a condition input from a client. 14
Is a database search means for searching the database 20 according to a search sentence. Reference numerals 61 and 71 denote processing means having a function of receiving and displaying information from another processing device via a communication line, and transmitting predetermined information to another processing device. Is a program having an Internet WWW (World Wide Web) browser function.

【0011】図2は本発明の一実施例における全体の処
理フローである。全体の動きを図2を用いて説明する。
まず、検索サーバ1において、検索サーバ1の管理者
は、予め、検索条件を入力するための入力フォームを作
成し、入力フォーム記憶部40に登録する。この作成し
た入力フォームで入力される条件(検索項目)に対応す
るひな型の検索文を、ひな型検索文登録手段11を用い
て、ひな型検索文記憶部60に登録する(100)。ひ
な型検索文の登録は、一般のエディタを用いてもよい。
FIG. 2 is an overall processing flow in an embodiment of the present invention. The overall movement will be described with reference to FIG.
First, in the search server 1, the administrator of the search server 1 creates an input form for inputting search conditions in advance and registers it in the input form storage unit 40. The template search sentence corresponding to the condition (search item) input in the created input form is registered in the template search sentence storage unit 60 using the template search sentence registration unit 11 (100). The registration of the template search sentence may be performed using a general editor.

【0012】入力フォーム記憶部40には、図3に示し
たようなHTML文書(HyperText Mark
up Language)が格納されており、クライア
ント6、7より検索の要求があると、ここに格納されて
いる検索条件を入力させるための入力フォームのHTM
L文書がクライアント6、7に送信される。また、この
ひな型検索文記憶部30との具体的な構成は、図4のひ
な型SQLテーブルのデータ構造にあるとおり、検索項
目に対応するひな型のSQL文を記憶しているものであ
り、ひな型SQL文には、変数があり(”:KWS”
と”:KWE”が変数である)、後で詳述するが、検索
文生成手段13が、クライアント6、7より入力された
値で、この変数を置き換えて、検索文を生成する。
The input form storage unit 40 stores an HTML document (HyperText Mark) as shown in FIG.
Up Language) is stored, and when a search request is received from the clients 6 and 7, an HTM of an input form for inputting search conditions stored therein is input.
The L document is transmitted to the clients 6 and 7. The specific structure of the template search sentence storage unit 30 stores a template SQL sentence corresponding to a search item as shown in the data structure of the template SQL table in FIG. The statement has a variable (": KWS")
And “: KWE” are variables), which will be described in detail later. The search sentence generating unit 13 replaces the variables with values input from the clients 6 and 7 to generate a search sentence.

【0013】図4の例では、検索項目の「1」は、「書
名/タイトル」という検索項目であり、「書名/タイト
ル」に関する検索は、右の欄に格納されているひな型S
QL文を用いて行われる。検索項目の「2」は、「著者
名」という検索項目であり、「著者名」に関する検索
は、対応する右の欄に格納されているひな型SQL文を
用いて行われる。
In the example of FIG. 4, the search item “1” is a search item “title / title”, and the search for “title / title” is performed using the model S stored in the right column.
This is performed using a QL statement. The search item “2” is a search item “author name”, and the search for “author name” is performed using the template SQL sentence stored in the corresponding right column.

【0014】ひな型SQL文の登録の説明を行う前に、
図5を用いて、本実施例における検索項目と、データベ
ース上のデータ項目との関連を説明する。クライアント
6、7の操作者に指定させる検索項目として、例えば、
「書名/タイトル」や「著者名」を選択させるが、操作
者が選択した検索項目には、実際のデータベース上の複
数のデータ項目が関連しており、また、その複数のデー
タ項目が別々のテーブルに格納されていることもある。
Before explaining the registration of the template SQL statement,
With reference to FIG. 5, the relationship between the search items in the present embodiment and the data items on the database will be described. As search items to be specified by the operators of the clients 6 and 7, for example,
The user is allowed to select “Book title / Title” or “Author name”. However, the search item selected by the operator is associated with a plurality of data items in the actual database, and the plurality of data items are separated. It may be stored in a table.

【0015】例えば、「書名/タイトル」という検索項
目は、データベース上では、インデックステーブル−A
の「書名」というデータ項目と、「書名ヨミ」というデ
ータ項目、インデックステーブル−Bの「副書名」とい
うデータ項目、「副書名ヨミ」というデータ項目が関連
している。上述したように、一つの検索項目に対して、
データベース30上の複数のデータ項目が関連すること
があり、関連するデータ項目すべてに対して検索を行う
ためのSQL文を登録しておく、この際に、クライアン
ト6、7より入力される、検索項目に対するキーワード
(例えば、「書面/タイトル」として、「山」というキ
ーワードを含むものを検索せよという検索要求)の部分
は変数として登録しておく。図4では、変数は、「:K
WS」と「:KWE」として表されている。
For example, a search item "title / title" is stored in the index table-A on the database.
Are associated with the data item "Title", the data item "Title", and the data item "Title" in the index table-B. As mentioned above, for one search item,
A plurality of data items on the database 30 may be related, and an SQL statement for performing a search for all the related data items is registered. At this time, a search input from the clients 6 and 7 is performed. A keyword (for example, a search request for searching for a document containing the keyword “mountain” as “document / title”) for the item is registered as a variable. In FIG. 4, the variable is “: K
WS "and": KWE ".

【0016】図2は、100のステップは検索システム
の運用の準備段階であり、次の200〜700までのス
テップは、検索システムの実際の運用の処理である。
In FIG. 2, the step 100 is a preparation stage for operation of the search system, and the next steps 200 to 700 are processing of the actual operation of the search system.

【0017】まず、検索サーバ1の通信手段12は、ク
ラインアント6、7よりデータベース検索の開始要求を
受けると、検索条件を入力するための入力フォームを対
応するクライント6、7に送信する(200)。なお、
本実施例においては、インターネット上のWWWにおけ
る検索を対象としたものであるため、入力フォームは図
3にあるような、HTML文書である。
First, upon receiving a database search start request from the clients 6 and 7, the communication means 12 of the search server 1 transmits an input form for inputting search conditions to the corresponding clients 6 and 7 (200). ). In addition,
In this embodiment, since the search is performed on the WWW on the Internet, the input form is an HTML document as shown in FIG.

【0018】入力フォームであるHTML文書を受信し
たクライアント6、7では、受信したHTML文書に従
って、ブラウザー(処理手段61、71)が、図6にあ
るような検索条件の入力画面を表示する。図6の画面の
うち、321の検索項目を指定する欄は、ブラウザー6
1、71にが、図3のHTML文書の320に基づいて
表示したものである。320では、「書名/タイト
ル」、「雑誌名」、「著者名」、「巻次」等の選択項目
が登録されており、クライアント6、7の操作者がこの
321の欄の右端を指定すると、ブラウザー61、71
がこの選択項目を表示し、操作者がその内の一つを選択
すると、ブラウザー61、71が321の欄に選択した
ものを表示する。図6の例では、「書面/タイトル」が
選択された場合を示している。また、同時に、ブラウザ
ー61、71は、選択されたものの値(「書面/タイト
ル」に対応する値「1」)を「検索項目−1」の値とし
て記憶しておく。
In the clients 6 and 7 which have received the HTML document as the input form, the browsers (processing means 61 and 71) display an input screen of the search condition as shown in FIG. 6 according to the received HTML document. In the screen of FIG.
Numerals 1 and 71 are displayed based on the HTML document 320 of FIG. At 320, selection items such as “title / title”, “magazine name”, “author name”, and “volume” are registered. When the operator of the client 6 or 7 designates the right end of the 321 column, , Browser 61, 71
Displays this selection item, and when the operator selects one of them, the browsers 61 and 71 display the selected item in a column 321. The example of FIG. 6 shows a case where “Document / Title” is selected. At the same time, the browsers 61 and 71 store the value of the selected item (the value “1” corresponding to “document / title”) as the value of “search item-1”.

【0019】また、図6の331の欄は、操作者が先に
選択項目321より選択した検索項目で、検索する検索
語を入力する領域であり、図3のHTML文書の330
に基づいてブラウザー61、71が表示したものであ
る。操作者がこの領域331に検索語を入力すると、ブ
ラウザー61、71がその内容をこの欄に表示し、そし
て、入力された値(検索語)を「キーワード−1」の値
として記憶しておく。
A field 331 in FIG. 6 is an area for inputting a search term to be searched for in the search item previously selected from the selection item 321 by the operator.
Are displayed by the browsers 61 and 71 based on. When the operator inputs a search word in this area 331, the browsers 61 and 71 display the contents in this field, and store the input value (search word) as the value of "keyword-1". .

【0020】図6の341の欄は、321の欄と同様
に、図3のHTML文書の340に基づいて処理される
ものである。また、図6の351の欄は、331の欄と
同様に、図3のHTML文書の350に基づいて処理さ
れるものである。
The column 341 in FIG. 6 is processed based on the HTML document 340 in FIG. 3, similarly to the column 321. The column 351 in FIG. 6 is processed based on the HTML document 350 in FIG. 3, similarly to the column 331.

【0021】図6の361の「検索する」のボタンは、
ブラウザー61、71が図3のHTML文書の360に
基づいて表示するものであり、操作者が、検索項目の指
定および検索語の入力後に、この「検索する」ボタン3
61を指定すると、ブラウザー61、71が、記憶して
おいた内容を検索サーバ1に送信する(400)。
The “search” button 361 in FIG.
The browsers 61 and 71 display the content based on the HTML document 360 of FIG. 3. After the operator specifies a search item and inputs a search word, the “search” button 3 is displayed.
When the user designates 61, the browsers 61 and 71 transmit the stored contents to the search server 1 (400).

【0022】なお、先の記憶しておいた内容は、図3の
310にある「kensaku」というプログラムのパ
ラメータとして、検索サーバ1が送信される。すなわ
ち、検索サーバ1には、 「/cgi−bin/kensaku ?検索項目−1=『選択された項目』 &キーワード−1=『入力された検索語』 &検索項目−2=『選択された項目』 &キーワード−1=『入力された選択語』 ・・・・・・・・・・・・・・・・・・」 という形式で送信される。
The stored contents are transmitted to the search server 1 as parameters of the program “kensaku” 310 in FIG. That is, in the search server 1, “/ cgi-bin / kensaku? Search item-1 =“ selected item ”& keyword-1 =“ inputted search word ”& search item-2 =“ selected item & Keyword-1 = “input selected word”....

【0023】検索サーバ1の通信手段12は、クライア
ント6、7のブラウザー61、71よりプログラム名お
よびそのパラメータを受信する。そして、受信したプロ
グラムを起動し、同時に受信したパラメータをそのプロ
グラムに入力する。この起動されるプログラムでは、パ
ラメータに基づいて、データベースを検索するための検
索文を生成する。検索文は、パラメータと、先に(ステ
ップ100で)登録したひな型SQLテーブル30との
内容に基づいて、検索文生成手段13により生成される
(500)。
The communication means 12 of the search server 1 receives the program name and its parameters from the browsers 61, 71 of the clients 6, 7. Then, the received program is started, and the parameters received at the same time are input to the program. The started program generates a search sentence for searching the database based on the parameters. The search sentence is generated by the search sentence generating means 13 based on the parameters and the contents of the previously registered template SQL table 30 (at step 100) (500).

【0024】ステップ500の処理の詳細について、図
7を用いて説明する。本実施例においては、先に説明し
たように、検索項目および検索語を複数個、指定できる
ようになっており、まず、第1番目の検索語(すなわち
「キーワード−1」)が空白か否かを判断する(51
0)。もし空白であれば、対応する検索項目(すなわち
「検索項目−1」)の値は判定せずに、次の検索語があ
るかを判定するステップに移行する。
The details of the processing in step 500 will be described with reference to FIG. In this embodiment, as described above, a plurality of search items and search words can be specified. First, whether the first search word (ie, “keyword-1”) is blank or not is determined. (51
0). If it is blank, the process proceeds to the step of determining whether there is a next search word without determining the value of the corresponding search item (that is, “search item-1”).

【0025】検索語が空白でなければ、対応する検索項
目(「検索項目−1」)の内容を取り出す(520)。
上記の例では、「検索項目−1」には、「書籍名/タイ
トル」に対応する値の「1」が格納されている。次に取
り出した検索項目の値に基づいて、ひな型SQLテーブ
ル30を検索し、対応するひな型SQL文を取り出す
(530)。この場合には、値が「1」であることよ
り、第1行目のひな型SQL文が取り出される。
If the search term is not blank, the contents of the corresponding search item ("search item-1") are extracted (520).
In the above example, “search item-1” stores a value “1” corresponding to “book title / title”. Next, the template SQL table 30 is searched based on the value of the retrieved search item, and the corresponding template SQL statement is retrieved (530). In this case, since the value is “1”, the template SQL statement on the first line is extracted.

【0026】取り出したひな型SQL文の変数の部分
(「:KWS」と「:KWE」)を対応する検索語
(「キーワード−1」の値)で置き換える(540)。
この実施例は、前方一致の検索をするものであるため、
検索語の後に「16進の00」を付加して該当するデー
タ項目長にしたもの、「16進のFF」を付加したもの
を、それぞれに格納している。完全一致を検索するもの
であれば、 「(内容 BETWEEN :KWS AND :KW
E)」 という部分を「内容 = :KWD」としてこのテーブ
ルに登録しておき、検索文生成時に、「:KWD」の部
分を検索語でそのまま置き換える。
The variables (“: KWS” and “: KWE”) of the extracted template SQL statement are replaced with the corresponding search term (the value of “keyword-1”) (540).
In this embodiment, since a search for a prefix match is performed,
A search term with “hexadecimal 00” added to the corresponding data item length and a search term with “hexadecimal FF” added are stored respectively. If you want to search for an exact match, use "(contents BETWEEN: KWS AND: KW
E) ”is registered in this table as“ content =: KWD ”, and when a search sentence is generated, the“: KWD ”portion is directly replaced with a search word.

【0027】次に、先に生成されたSQL文がないかを
判定し、なければ、今回、変数を検索語(キーワード)
で置き換えたもの(新しいSQL文)を作業領域に記憶
しておく。また、先に生成されたSQL文がある場合に
は、今回、変数を検索語で置き換えたものは追加の条件
となるため、今回の変数を検索語で置き換えたものを、
先に生成されたSQL文に追加する(550)。
Next, it is determined whether or not there is a previously generated SQL statement.
(New SQL sentence) is stored in the work area. Also, if there is a previously generated SQL sentence, the replacement of the variable with the search term this time is an additional condition.
It is added to the previously generated SQL statement (550).

【0028】それを示したものが図8である。552
は、ひな型SQLテーブルの検索項目の値が「1」
(「書名/タイトル」)に該当するものであり、554
は、ひな型SQLテーブルの検索項目の値が「2」
(「著者名」)に該当するものである。511の「SE
LECT * FROM 書誌マスタ WHERE 書
誌番号IN(」は、検索項目の値「1」および「2」に
対応する条件に合致する書誌番号のデータをすべて(*
はすべての項目を示す)を書誌マスタというデータベー
スから抽出するという意味である。また、553の「I
NTERSECT」は、検索項目の値「1」の条件と、
検索項目の値「2」の条件のANDの条件を示す文であ
る。
FIG. 8 shows this. 552
Indicates that the value of the search item in the template SQL table is "1"
("Title / Title"), and 554
Means that the value of the search item in the template SQL table is "2"
("Author name"). 511 "SE
LECT * FROM bibliographic master WHERE bibliographic number IN () indicates that all data of bibliographic numbers matching the conditions corresponding to the search item values "1" and "2" are (*
Indicates all items) from a database called a bibliographic master. Also, 553 “I
NTERSECT ”is a condition for the value“ 1 ”of the search item,
This is a sentence indicating an AND condition of the condition of the value “2” of the search item.

【0029】次に、まだ処理されていない検索語(キー
ワード)がないかを判定し、まだある場合には、先の5
10ステップに移行する。すべての検索語を処理した場
合には、現在作業領域に記憶されているSQL文がデー
タベースの検索で用いる検索文となる(560)。生成
されたSQL文を用いて、データベース検索手段14が
データベース20を検索する(600)。
Next, it is determined whether or not there are any search words (keywords) that have not yet been processed.
Move on to step 10. If all the search terms have been processed, the SQL sentence currently stored in the work area becomes the search sentence used for searching the database (560). The database search means 14 searches the database 20 using the generated SQL statement (600).

【0030】検索した結果を、この検索要求を出したク
ライアント6、7に送信する(700)。
The search result is transmitted to the clients 6 and 7 which have issued the search request (700).

【0031】[0031]

【発明の効果】上記で説明したように、本願発明によれ
ば、データベースの構成が変更されても、変更されたデ
ータベースの構成に基づいて、ひな型SQLテーブルに
登録されているひな型SQLテーブルを変更するだけで
よく、プログラムの修正は不要である。
As described above, according to the present invention, even if the configuration of the database is changed, the template SQL table registered in the template SQL table is changed based on the changed configuration of the database. You do not need to modify the program.

【0032】さらに、データベースの構成は変更されな
くても、検索項目として新たなものを追加したい場合で
あっても、その新たな検索項目に対応する入力フォーム
を作成し、検索項目とデータ項目との関係を示すひな型
SQL文をひな型SQL文に登録するだけでよく、プロ
グラムの修正は不要である。また、変数の置き換えだけ
で検索文を生成することができるため、実行効率の向上
がする。
Further, even if the configuration of the database is not changed, and even if a new search item is to be added, an input form corresponding to the new search item is created, and the search item and the data item are added. It is only necessary to register a template SQL sentence indicating the relationship in the template SQL sentence, and it is not necessary to modify the program. Further, since a search sentence can be generated only by replacing variables, the execution efficiency is improved.

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

【図1】本発明の一実施例におけるシステム構成図FIG. 1 is a system configuration diagram according to an embodiment of the present invention.

【図2】本発明の一実施例における全体の処理フローFIG. 2 is an overall processing flow in an embodiment of the present invention.

【図3】検索条件の入力フォームのHTML文書の例FIG. 3 shows an example of an HTML document of a search condition input form.

【図4】ひな型SQLテーブルのデータ構造FIG. 4 is a data structure of a template SQL table.

【図5】検索項目とデータ項目との関係を示す図FIG. 5 is a diagram showing a relationship between a search item and a data item.

【図6】検索条件の入力画面の例FIG. 6 shows an example of a search condition input screen.

【図7】検索文生成の処理フローFIG. 7 is a processing flow for generating a search sentence;

【図8】生成したSQL文の例FIG. 8 shows an example of a generated SQL statement.

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

1 検索サーバ 6、7 クライアント 11 ひな型検索文登録手段 12 通信手段 13 検索文生成手段 14 データベース検索手段 20 データベース 30 ひな型検索文記憶部 40 入力フォーム記憶部 61、71 処理手段 DESCRIPTION OF SYMBOLS 1 Search server 6, 7 Client 11 Model search sentence registration means 12 Communication means 13 Search sentence generation means 14 Database search means 20 Database 30 Model search sentence storage section 40 Input form storage section 61, 71 Processing means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】データベースの検索条件の検索項目に対応
して、変数を含むデータベースの検索文を記憶するひな
型検索文記憶部と、 ひな型検索文記憶部の、検索項目に対応する検索文の変
数を、検索者が入力した値で置き換えて、検索文を生成
する検索文生成手段とを備えたこと特徴とするデータベ
ース処理装置。
1. A template search sentence storage unit for storing a search sentence of a database including a variable corresponding to a search item of a search condition of a database, and a variable of the search sentence corresponding to the search item in the template search sentence storage unit. And a search sentence generating means for generating a search sentence by replacing a search term with a value input by a searcher.
【請求項2】前記検索文生成手段は、複数個の検索項目
に対応する複数個の値が入力された場合には、各検索項
目に対応する複数の検索文を結合して、一つの検索文を
生成することを特徴とする請求項1記載のデータベース
処理装置。
2. When a plurality of values corresponding to a plurality of search items are input, the search sentence generation means combines a plurality of search sentences corresponding to each search item to form one search The database processing device according to claim 1, wherein the database processing device generates a sentence.
【請求項3】1つの検索項目が、データベースの複数種
類のデータ項目に関係することを特徴とする請求項1記
載のデータベース処理装置。
3. The database processing apparatus according to claim 1, wherein one search item relates to a plurality of types of data items of the database.
【請求項4】コンピュータを動作させて、 データベースの検索条件の検索項目に対応して、変数を
含むデータベースの検索文を記憶するひな型検索文記憶
部の、検索項目に対応する検索文の変数を、検索者が入
力した値で置き換えて、検索文を生成する検索文生成手
段を機能させるプログラムを格納した記憶媒体。
A computer is operated to store, in a template search sentence storage unit that stores a search sentence of a database including a variable, corresponding to a search item of a search condition of a database, a variable of the search sentence corresponding to the search item. And a storage medium storing a program for causing a search sentence generating means to generate a search sentence by replacing the search sentence with a value input by a searcher.
JP10003602A 1997-01-16 1998-01-12 Database processor and storage medium Pending JPH10260992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10003602A JPH10260992A (en) 1997-01-16 1998-01-12 Database processor and storage medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP9-5760 1997-01-16
JP576097 1997-01-16
JP10003602A JPH10260992A (en) 1997-01-16 1998-01-12 Database processor and storage medium

Publications (1)

Publication Number Publication Date
JPH10260992A true JPH10260992A (en) 1998-09-29

Family

ID=26337230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10003602A Pending JPH10260992A (en) 1997-01-16 1998-01-12 Database processor and storage medium

Country Status (1)

Country Link
JP (1) JPH10260992A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000268052A (en) * 1999-03-18 2000-09-29 Fujitsu Ltd Data processing system and recording medium
US7151952B2 (en) 1999-12-08 2006-12-19 Ntt Docomo, Inc. Portable telephone and terminal equipment
JP2007058734A (en) * 2005-08-26 2007-03-08 Hitachi Ltd Wide area data cooperation system
JP2013143114A (en) * 2012-01-13 2013-07-22 Fujitsu Frontech Ltd Program, information processor and access support method
JP2017120645A (en) * 2015-12-28 2017-07-06 株式会社 ビーアイマトリックスBi Matrix Co.,Ltd Batch update system for database based on spreadsheet interface using query template

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000268052A (en) * 1999-03-18 2000-09-29 Fujitsu Ltd Data processing system and recording medium
US7151952B2 (en) 1999-12-08 2006-12-19 Ntt Docomo, Inc. Portable telephone and terminal equipment
JP2007058734A (en) * 2005-08-26 2007-03-08 Hitachi Ltd Wide area data cooperation system
JP2013143114A (en) * 2012-01-13 2013-07-22 Fujitsu Frontech Ltd Program, information processor and access support method
JP2017120645A (en) * 2015-12-28 2017-07-06 株式会社 ビーアイマトリックスBi Matrix Co.,Ltd Batch update system for database based on spreadsheet interface using query template

Similar Documents

Publication Publication Date Title
JP3666004B2 (en) Multilingual document search system
US6094649A (en) Keyword searches of structured databases
US5999939A (en) System and method for displaying and entering interactively modified stream data into a structured form
US7340450B2 (en) Data search system and data search method using a global unique identifier
JP3836928B2 (en) Database processing method
US20070043706A1 (en) Search history visual representation
JP2003288143A (en) Method for automatically generating user interface
JP3590726B2 (en) Database search system, search server device, client terminal, and server program recording medium
JP2000020537A (en) Text retrieving device and computer-readable recording medium having recorded text retrieving program thereon
JP2001188802A (en) Device and method for retrieving information
JPH10260992A (en) Database processor and storage medium
JPH09212517A (en) Method and device for information substitutional retrieval
JP2004054918A (en) Information processing system, information display device, computer program, and recording medium
JPH10134087A (en) Document requesting device and method for prefetching related document
JPH10334109A (en) Retrieving user support device
JP2005011301A (en) Document processor and document processing program
JP2001022788A (en) Information retrieving device and recording medium recording information retrieval program
JP3601869B2 (en) Machine translation system
JP2003186788A (en) Method and system for providing translation web site and program
JP3294966B2 (en) Machine translation equipment
JP2773667B2 (en) Related information search device
JP4034503B2 (en) Document search system and document search method
JP2006318138A (en) Web system, server computer for web system, and computer program
JP3761364B2 (en) Machine translation system
JP2004139526A (en) Electronic dictionary system and program for electronic dictionary system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031028