JP3606484B2 - Database device - Google Patents

Database device Download PDF

Info

Publication number
JP3606484B2
JP3606484B2 JP32472195A JP32472195A JP3606484B2 JP 3606484 B2 JP3606484 B2 JP 3606484B2 JP 32472195 A JP32472195 A JP 32472195A JP 32472195 A JP32472195 A JP 32472195A JP 3606484 B2 JP3606484 B2 JP 3606484B2
Authority
JP
Japan
Prior art keywords
search
screen
action
displayed
setting
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
JP32472195A
Other languages
Japanese (ja)
Other versions
JPH08241337A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP32472195A priority Critical patent/JP3606484B2/en
Publication of JPH08241337A publication Critical patent/JPH08241337A/en
Application granted granted Critical
Publication of JP3606484B2 publication Critical patent/JP3606484B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、リレーショナルデータベース型データベースの検索と検索結果の出力と検索結果をもとに別処理を起動するデータベース装置に関するものである。
【0002】
【従来の技術】
従来例1.
従来リレーショナルデータベースを検索できるツールに、例えばBORLAND INTERNATIONAL,INCのParadox for Windowsがある。図66はParadox for Windowsにおける検索条件の指定画面の一例を示す図である。尚、図66は入門マニュアルのP73に記載されている図を引用している。
また、図67はParadox for Windowsにおける図66の検索条件に従い検索した結果を示す図である。尚、図67は入力マニュアルのP73に記載されている図を引用している。
図66では顧客.DBの都道府県が「沖縄県」であるレコードを検索する条件を指定しているが、この検索画面は、スピードバーの[項目値の検索]ボタンをクリックすると表示される画面である。図66に示されているように、検索条件を指定し画面左下にある[了解]ボタンをクリックすると、顧客.DBの中の都道府県が「沖縄県」である最初のレコードが検索され、図67に表示される。
上記で説明を行ったようにParadox for Windowsでは、項目値でレコードを検索する場合、項目値を指定するための画面が別に用意されており、ユーザは「値の検索」の画面を表示するように操作を行ってから項目値と、検索対象となる項目名を指定する。
また、Paradox for Windowsにおいてリレーショナルデータベース内の情報について問い合わせを行う場合は、問い合わせ内容の定義を行い、定義した問い合わせを実行する。
図68はParadox for Windowsにおいて、問い合わせの対象とするファイルを選択する画面の一例を示す図である。
図69はParadox for Windowsにおいて、問い合わせを定義する画面の一例を示す図である。
図70はParadox for Windowsにおいて、図69で定義した問い合わせを実行した結果を示す図である。
尚、図68は入門マニュアルのP162、図69は入門マニュアルのP166、図70は入門マニュアルのP167に記載されている図を引用している。
ユーザが問い合わせを行う場合、ディスクトップでスピードバーの[問い合わせを開く]ボタンを右クリックし、[新規作成(N)]を選択する。選択を行うと図68にあるような「ファイルの選択」ダイアログボックスが表示される。例えばユーザが「受注データベース」に対して問い合わせを行う場合は、図68のファイルの選択画面では、「受注.DB」をクリックし[了解]ボタンをクリックする。ファイルの選択を行うと、図69の問い合わせ定義画面が表示される。例えば、未収金額が0円以上である顧客について問い合わせを行い、また、表示する項目を「注文番号,顧客番号,受注日,発送日,輸送方法,請求金額,支払金額,未収金額」にする場合は、図69にあるように上記8個の項目についてチェックマークをし、更に未収金額には0円より大きいという条件を指定する。図69の様に指定した問い合わせを実行すると、図70にあるようなAnswerテーブルが表示される。
上記で説明を行ったように、Paradox for Windowsでは、リレーショナルデータベース内の情報について特定値を抽出する問い合わせを行う場合、問い合わせ定義を行う画面で特定値の指定も同時に行っている。
【0003】
従来例2.
また、リレーショナルデータベースを検索できるツールに、例えばMicrosoft CorporationのMicrosoft Accessがある。図71はMicrosoft Accessにおける商品テーブルと商品区分テーブルを区分コードを用いて結合したクエリーを示す図である。(クエリーとは、質問したり、テーブルのデータに対する抽出条件を定義するAccessのオブジェクトのことである。)尚、図71は、Access入門マニュアルのP92に記載されている図を引用している。
また、図72は、Microsoft Accessにおけるクエリーの抽出条件を指定する画面の一例を示す図である。尚、図72は、Access入門マニュアルのP92に記載されている図を引用している。
図71に示されているクエリーより区分名が“菓子”又は“清涼飲料”であるレコードを検索したい場合、図示していないがツールバー上にある「デザインビュー」ボタンをクリックすると図72に示されている抽出条件の指定画面が表示される。抽出する条件は区分名が“菓子”または“清涼飲料”であるので「区分名」フィールドに対する「抽出条件」セルに移動し、セルの中に“菓子”と入力しエンターキーを押す。更に“菓子”と入力したセルの下に移動し“清涼飲料”と入力を行い、エンターキーを押す。抽出条件を指定した画面が図72に示されている。
以上のようにMicrosoft Accessではクエリーに表示されている全ての項目をフィールドとして持つ抽出条件指定枠が表示されるので、抽出対象とするフィールドに対する抽出条件を指定し、これを実行することによって検索結果を得ることができる。
【0004】
従来例3.
また、リレーショナル型データベースの検索及び検索した結果を編集し、出力する方法に、例えば「特開平4−310183」の「リレーショナル型データベースの検索・出力方法」がある。上記方法によれば、検索時には内部管理番号のみを読み込んでユーザファイルに格納する。そして、実データの読み込みと編集処理及び帳票出力処理は前記ユーザファイルを媒介として、検索とは独立したプログラムで実行するように構成されている。
図73にリレーショナル型データベースの検索・出力方法の一実施の形態を示す。図73において、リレーショナル型データベースの検索・出力方法は、メインプログラム200を中心とするメイン処理、サブプログラム500を中心とするサブ処理に二分され、メイン処理とサブ処理は独立して実行される。図73において、100は端末の画面、300はリレーショナル型データベース、400はレコード番号ファイル、600は帳票をそれぞれ示す。
メインプログラム200は端末の画面100より検索、表示、帳票出力等の様々な動作指示をコマンドとして受け取る。検索指示を受けた場合は、検索されるレコードとレコード番号をレコード番号ファイル400に出力し、サブプログラム500を起動し、処理を終了する。この部分がメイン処理である。サブプログラムが起動されると、端末の画面100が使用可能となる。
【0005】
メインプログラム200より起動されたサブプログラム500は、レコード番号ファイル400に格納されたレコード番号を使ってリレーショナル型データベース300より実データを読み込み、編集し帳票600を出力する。この部分がサブ処理である。
【0006】
【発明が解決しようとする課題】
従来のデータベース装置は、以上のように構成されているので、図69および図72のようにデータベースを検索する条件を指定する画面に、検索対象外の項目まで表示されてしまう。このため、不必要な情報まで表示されてしまい、画面が煩雑であり、必要な情報を入力、検索するのに手間がかかるという問題があった。又、検索条件を指定するための画面が図66のように別に用意されているツールもあるが、この画面では1つの項目のみ検索対象に指定できるので、複数の項目を検索対象に選択する場合は、検索対象とする項目の数と同じ数だけ図66の画面で検索条件を指定しなければならない。このため、利用者にとって操作が煩雑である問題があった。
さらに図73に示されているように、データベースの検索から出力までの処理をメイン処理とサブ処理に分けているが、サブ処理は検索結果を編集しているだけであった。このため、検索結果に基づいて別のプログラムを起動する場合には、データベースを備えるシステム環境下に必要な機能を備えるプログラムをコーディングしなければならないという問題があった。(図74に、従来の検索結果に基づく次の処理を起動する流れ図を示す。図74によれば、結果判定に基づいて起動される処理A、処理B、処理Cのプログラムを、利用者はコーディングしなければならない。)上記のようなデータベースを備えるシステム環境下では、システムの利用者毎に検索結果によって起動する処理が異なると、利用者毎に対応するプログラムをカスタマイズする手間がかかるという問題があった。また、処理レパートリーの拡張が困難であるという問題があった。
【0007】
この発明は以上のような問題を解決するためになされたものであり、以下の事を可能にするものである。
データベースがもつ項目の内、検索対象とする項目を利用者が任意に設定し、設定に基づいて検索条件設定用の画面を作成する。
また、検索結果を表示する結果表示画面を利用者が任意に設計できる。
さらに、検索結果に基づいて、次に起動する処理を利用者がプログラムをコーディングすることなく対話形式で容易に設定することができる。
【0008】
【課題を解決するための手段】
この発明の第1の発明に係るデータベース装置は以下の要素を有するものである。
(a)データベースがデータを記憶し、
(b)画面設計部が上記データベースのデータを検索する条件を入力する検索条件入力画面を任意に設計し、
(c)検索部が上記画面設計部において設計された所定の形式の検索条件入力画面を用いて検索する条件を入力し、データを検索する。
【0009】
また、第2の発明に係るデータベース装置は、上記画面設計部が、さらに、検索部が検索した検索結果を表示する検索結果表示画面を任意に設計することを特徴とする。
【0010】
また、第3の発明に係るデータベース装置は、上記画面設計部がデータを構成するフィールドの中から任意のフィールドを選択することを特徴とする。
【0011】
また、第4の発明に係るデータベース装置は、上記画面設計部が、選択したフィールドの表示順序を指定することを特徴とする。
【0012】
また、第5の発明に係るデータベース装置は、上記画面設計部が、検索条件入力画面用に選択したフィールドに用いられる可能性のある検索条件をあらかじめ設定することを特徴とする。
【0013】
また、第6の発明に係るデータベース装置は、上記画面設計部が、検索結果表示画面用に選択したフィールドの表示形式を指定することを特徴とする。
【0014】
また、第7の発明に係るデータベース装置は、以下の要素を有するものである。
(a)データベースがデータを記憶し、
(b)検索部が上記データベースのデータを検索し、
(c)処理定義部が上記検索部の検索結果に基づいて、実行可能な処理を予め定義して記憶し、
(d)処理実行部が上記処理定義部により定義された処理を実行する。
【0015】
また、第8の発明に係るデータベース装置は、上記処理定義部が、複数の処理を定義するとともに、上記処理実行部が上記複数の処理の中から少なくともひとつの処理を選択して実行することを特徴とする。
【0016】
また、第9の発明に係るデータベース装置は、上記処理定義部が、対話型インタフェースを用いて処理を定義する対話型定義支援部を備えたことを特徴とする。
【0017】
また、第10の発明に係るデータベース装置は、上記処理定義部が、定義情報をアクション管理表として記憶し、上記処理実行部が、アクション管理表に記憶された定義情報を解析して、処理に必要なコマンドを生成するコマンド生成部を備えたことを特徴とする。
【0018】
また、第11の発明に係るデータベース装置は、上記コマンドが、SQLコマンドであることを特徴とする。
【0019】
また、第12の発明に係るデータベース装置は、上記コマンドがシステムコールであることを特徴とする。
【0020】
また、第13の発明に係るデータベース装置は、上記画面設計部で検索条件入力画面の推奨条件を設定するために参照する候補データの一覧であるガイドラインに用いられるデータを定義して記憶するガイドライン定義部を有することを特徴とする。
【0021】
また、第14の発明に係るデータベース装置は、ガイドライン定義部が、候補データとして検索対象テーブルの実データ及び任意のテーブルのデータの少なくともいづれかを定義することを特徴とする。
【0022】
また、第15の発明に係るデータベース装置は、ガイドライン定義部が、候補データに対して注釈を定義することを特徴とする。
【0023】
また、第16の発明に係るデータベース装置は、ガイドライン定義部が、データの表示文字の字体を定義することを特徴とする。
【0024】
また、第17の発明に係るデータベース装置は、ガイドライン定義部が、データの強調表示方法を定義することを特徴とする。
【0025】
また、第18の発明に係るデータベース装置は、ガイドライン定義部が、定義された候補データの中からさらに候補データを絞り込むための条件を指定することを特徴とする。
【0026】
【発明の実施の形態】
実施の形態1.
この実施の形態では画面設計部における検索条件入力画面設計と検索結果表示画面設計について以下に説明を行う。
【0027】
始めに、図面の説明を行う。
図1は、この発明におけるデータベース装置を実現するシステム構成図である。
図1において、1はデータベース装置であり、2は検索条件入力画面又は検索結果表示画面などの画面を表示するCRTであり、3はデータベースを検索する条件入力を行うための検索条件入力画面設計3a、及び検索条件に基づいてデータベースを検索した結果を表示するための表示形式を設計する検索結果表示画面設計3bを備える画面設計部である。4は検索条件に基づいてデータベースを検索する検索部であり、5はマウスであり、6はキーボードであり、7は複数のテーブルを格納したデータベースである。
尚、この実施の形態で用いるデータベースは、データの構造をツリーを用いて表し、ツリーの各要素をノードを用いて表す。また、ノードはトップノード、中間ノード、末端ノードの階層構造になっており、トップノードは最上位ノード、末端ノードはそれ以下に他のノードを持たないノードであり、トップノードと末端ノード以外のノードが中間ノードである。そして、末端ノードにはデータベースのテーブル、または、ビューが1対1で対応づけられている。検索時はトップノードから中間ノードへと種別を絞り込んで行き、末端ノードを指定することで対応するデータベースのテーブルにアクセスすることが出来る。さらに、ツリーには共有ツリーとユーザツリーがあり、システムを利用するユーザが共通に使用できるツリーを共有ツリーと呼ぶ。共有ツリーはシステム管理者が作成する。一方、ユーザが個人的に作成し、使用するものをユーザツリーと呼ぶ。
【0028】
図2は、データベースに格納されている利用者がアクセス可能なツリー情報を示す図である。
図3は、図2に示されているツリー情報の中から利用者が選択したツリー情報に格納されているノードを示す図である。
図3において、「部品情報」はトップノードを示し、「部品情報」には「コネクタ・リレー・スイッチ」から「周辺装置」までの中間ノードがあり、さらに、中間ノードである「IC」には「バイポーラIC(LS・S)から「MOSメモリーIC(DRAM)」の末端ノードがあることを示している。
図4は、「画面」メニューを示す図である。
「画面」メニューは図3のメニューバーにある「画面」をクリックすると表示されるメニューである。
【0029】
図5は、画面設定ウィンドウを示す図である。
図5の画面設定ウィンドウには検索条件入力画面設定10と検索結果表示画面設定11とアクションリスト12が表示され、スクロールバー13を用いて、各画面は表示位置を上下左右に移動することができる。
検索条件入力画面設定10には、切替10aと、順序10bと、フィールド名10cと推奨条件定義10dの設定項目がある。
切替10aは当該フィールドを検索条件入力ウィンドウに表示するかどうかを設定する。選択されている場合(四角の升が黒く表示されている場合を選択されている場合とする)、当該フィールドが、検索実行時に表示される検索条件入力画面に表示される。
順序10bは、当該フィールドが検索条件入力ウィンドウに表示される時の順序を設定する。設定方法は四角の枠内をクリックし順序を数字で入力すると、数字の小さい順に上から表示される。
フィールド名10cは、設定対象とするテーブルのフィールドに対してユーザが分かり易いように付けたタイトル(以下、フィールド名と称する)を表示する。但し、利用者が参照権をもっているフィールドだけが表示される。設定対象とするテーブルとは、検索条件入力画面を設定しようとしているテーブルであり、図5によるとテーブル名「KP11P」が設定対象とするテーブルである。フィールド名10cに表示されている名称が、「KP11P」に格納されているフィールド名である。
推奨条件定義10dは検索条件入力時にドロップダウンリストに表示する入力条件の候補(推奨条件)を設定する。候補は複数指定することができ、「,」又は「_」で区切って入力を行う。
また、推奨条件の入力では、フィールドに設定されているガイドラインを利用できる。フィールド名をクリックすると、候補データの一覧メニューまたは設定できるデータの範囲を示すウィンドウが表示される(図6に一覧メニュー及びウィンドウを示す)。候補データの一覧メニューからデータを選択すると、選択したデータは推奨条件定義欄に追加される。
【0030】
次に、検索結果表示画面設定11について説明を行う。
検索結果表示画面設定11には、切替11a、順序11b、フィールド名11c、ソート順11d、昇降11e、加工指定11f、表示サイズ11gの設定項目がある。
切替11a及び順序11bは、上記で説明を行った切替10aと順序10bと同じ方法で設定を行う。
フィールド名11cは、検索対象とするテーブルのフィールド名を表示する。フィールド名をクリックすると、フィールドのタイプとサイズが、別ウィンドウに表示される(図7にウィンドウの表示例を示す)。
ソート順11dは、検索結果表示ウィンドウでレコードをソートして表示したい場合、どのフィールドに対するソートを優先するかを指定する。優先順位の高い順にソート順11dの枠をクリックする。ソートを解除する場合は再クリックすると解除できる。
昇降11eはソートの種類を設定する。昇降欄をクリックすると「昇順」「降順」が切り換わり表示される。
加工指定11fは検索結果を表示する際、データを加工して出力する場合に指定を行う。加工指定枠には検索結果を加工する場合の書式を設定する。加工指定の方法は図8を参照する。
表示サイズ11gはフィールド名の表示バイト数を設定する。表示バイト数はフィールド名の長さ以上の値を設定する。フィールド名より短い値を設定した場合は、フィールド名の長さで表示サイズが設定されるものとする。表示サイズより検索で得られたレコードの実際の値が大きい場合は、表示サイズ分だけ表示される。尚、フィールド名に設定されているサイズを確認する場合は、上記フィールド名110で説明を行ったように、フィールド名をクリックすると別ウィンドウ(図7)にサイズが表示される。
アクションリスト12については、詳細を後の実施の形態で説明するためここでは説明を省略する。
【0031】
図6は、推奨条件入力における各フィールドに設定されているガイドラインの一例を示す図である。
図6(A)は、数値型/日付型のガイドラインの一例を示す図である。このガイドラインは、例えば、図5の検索条件入力画面設定10のフィールド名10cの中からデータの型が数値型/日付型のフィールド名をクリックすると表示される、設定できるデータの範囲を示すガイドラインであり、表示されるデータはフィールド毎に予め設定しておくことが必要である。利用者は推奨条件設定時、ガイドラインを参照することができる。
また、図6(B)は、候補データ一覧のガイドラインの一例を示す図である。例えば、図5のフィールド名10cにある「部品名」をクリックして表示されるガイドラインであり、テーブル「KP11P」に格納されている実データの一部を紹介している。「部品名」の推奨条件としてこのガイドラインの中からデータを選択する場合は、選択したいデータにカーソルを合わせクリックすると選択できる。
【0032】
図7は、フィールドのタイプとサイズを表示したウィンドウの一例を示す図である。
例えば、図5の「P/N部品番号」をクリックすると設定されているフィールドのタイプとサイズを図7に示すように参照することができる。
図8は、加工指定の書式を説明する図である。
図8によると、加工指定タイプには文字列追加と、計算加工と、金額加工と、日付加工の4種類がある。文字列追加は、「$$」又は「&&」部分に検索結果が代入される。例えば、「合計$$個」にという加工指定に検索結果が代入されると「合計100個」と加工される。また、計算加工の一例として「&&×100」の加工式に対し「0.01」が入力されると「0.01×100」となり、検索結果は「1.0」と表示される。また、加工指定タイプを金額である場合、フォーマットに「MONEY」と指定しておくと3桁毎にカンマが挿入されて表示される。また、日付の場合「DATE1」とフォーマットを指定すると、「年」「月」「日」の間に/が挿入され、「DATE2」とフォーマットを指定すると、「年」「月」「日」がデータの間に挿入されて表示される。
図9は、「設定」メニューを示す図である。
「設定」メニューは、図5の画面設定のメニューバーにある「設定」をクリックすると表示されるメニューである。
図10は、検索条件入力ウィンドウの設定と検索結果表示ウィンドウの設定を行う手順を示す流れ図である。
【0033】
次に、図10の流れ図に従い、図1から図9を用いて検索条件入力ウィンドウの設定及び検索結果表示ウィンドウの設定について以下に説明を行う。
始めに、検索対象とする末端ノードを選択するために、図2にあるツリーボックスを表示する(S1)。
尚、検索条件入力ウィンドウの設定を行うことができるのは末端ノードのみとし、末端ノードの中でも利用者がその情報に参照権を持たない場合には、その末端ノードに対する画面設定は行えないものとする。このため、図2のツリーボックスに表示されているツリーは利用者が参照権を持つツリーである。次に、表示されているツリーボックスの中から検索対象とするツリーの選択を行う(S2)。この実施の形態では、図2に表示されているツリーボックスの中の「部品情報」を検索対象としてクリックをし、選択する。ツリーを選択すると、図3のツリー表示画面に選択したツリーのノードが表示される。さらに、図3のツリー表示ウィンドウより画面設定を行うテーブルを選択する(S4)。この実施の形態では、図3のツリー表示画面より「MOSデジタルIC(C−MOSロジック)」をクリックし選択する。図3の「MOSデジタルIC」を選択し、さらにメニューバーにある「画面」をクリックし、図4の「画面」メニューより、「画面設定」を選択すると、図5の画面設定ウィンドウが表示される(S6)。そして、検索条件入力ウィンドウの設定と検索結果表示ウィンドウの設定をそれぞれ行う(S7)。
【0034】
まず、図5の検索条件入力画面設定10の設定を以下のように行う。
始めに、切替10aをクリックし、検索実行時に検索条件入力画面に表示を行うフィールド名を選択する。図5によると切替10aの枠は全て黒い枠になっているので、「P/N部品番号」と「品種コード」と「部品名」と「仕様」と「部品標準区分1」が選択されている。そして更に、図5には図示していないが、スクロールバー13を移動させることによって「部品標準区分1」の下にある「メーカー形名」と「DB登録日」と「部品形状名称」を選択する。
次に、検索条件入力ウィンドウに表示する順序10bを指定する。図5によると「P/N商品番号」には順序「1」を設定し、「品種コード」には順序「2」、「部品名」には順序「3」、「仕様」には順序「5」、「部品標準区分1」には順序「4」、さらに図5には図示していないが、「メーカー形名」には順序「6」、「DB登録日」には順序「7」、「部品形状名称」には順序「8」を指定する。
最後に推奨条件定義10dの定義を行う。図5によると「部品標準区分1」に「A,B,C」の推奨条件が定義されている。これは「部品標準区分1」の値が「A」又は「B」又は「C」であるレコードを検索するための条件である。
以上が実施の形態1における検索条件入力画面設定の設定内容である。
【0035】
次に、図5の検索結果表示画面設定11の設定を以下のように行う。
始めに、切替11aをクリックし、検索結果表示ウィンドウに表示するフィールド名を設定する。図5によると「P/N部品番号」と「部品名」と「仕様」と「最新発注日1」、図5には図示していないが、スクロールバー13を用いることによって画面をスクロールし、「部品標準区分1」の下にある「メーカ形名」を検索結果表示ウィンドウに表示するよう設定している。
次に、順序11bの設定を行い、検索結果表示ウィンドウに表示するフィールドの表示順序を指定する。図5によると「P/N部品番号」は順序「1」、「部品名」には順序「2」、「仕様」には順序「3」、さらに図5には図示していないが、「メーカ形名」には順序「4」、「最新発注日1」には順序「5」を設定する。
次に、ソート順11dを設定し、検索結果表示ウィンドウでどのフィールドに対するソートを優先するか指定を行う。図5によると「P/N部品番号」をソート順位「1」とし、「部品名」をソート順位「2」とし、更に「最新発注日1」をソート順位「3」と設定する。
次に、昇降11eを設定し、先に設定を行ったソート順のソートタイプを、昇順にするか降順にするか設定を行う。図5によると「P/N部品番号」は「昇順」とし、「部品名」も「昇順」とし、さらに「最新発注日1」も「昇順」と設定する。
次に、加工指定11fの設定を行う。「最新発注日1」の加工指定に「DATE1」を指定する。この指定は、年月日をスラッシュ(/)で区切るための加工指定である。
次に、表示サイズ11gを設定する。図5によると「P/N部品番号」には「15」を設定し、「部品名」には「20」を指定し、「仕様」には「20」を指定する。さらに、図5には図示していないが、「メーカー形名」には「18」を指定し、「最新発注日1」には何も指定を行わない。「最新発注日1」に表示サイズを指定しないのは、「最新発注日1」というタイトルの長さよりも表示するデータの長さのほうが小さいので、設定の必要がないためである。
表示サイズ11gの指定は、タイトルとなるフィールド名の表示バイト数よりもデータの長さの方が長くなる場合に指定を行う。
以上が実施の形態1における検索結果表示画面設定の設定内容である。
【0036】
上記で説明を行ったように、検索条件入力ウィンドウの設定と検索結果表示ウィンドウの設定を行った後、図5のメニューバーにある「設定」のボタンをクリックし、表示される図9の設定メニューから「保存終了」を選択し設定内容を保存する(S8)。保存は、テーブル名「KP11P」に対する検索条件入力設定と検索結果表示画面設定であることが認識できるように、保存名称がシステムにより自動的に採番される。さらに、利用者を区別するため、「ユーザID」も保存名称の一部に用いられる。
これで検索条件入力画面設定及び検索結果表示画面設定の説明を終了する。
【0037】
以上のように、検索条件入力画面設定と検索結果表示画面設定はテーブル毎に検索実行に先立ち行え、テーブル毎に登録されるので、テーブルの検索を実行とは切り離して設計することができる。一度設計すれば、検索を実行する度に、同じ検索条件、同じ検索結果編集がされる。また、設定を変更する場合でも、利用者は既に設定されている内容をカスタマイズすれば良いので、新たに設定を行うより設定が容易である。
【0038】
実施の形態2.
この実施の形態では、上記実施の形態1において設定を行った検索条件入力画面と検索結果表示画面の設定内容に基づいて検索を実行する例について以下に説明を行う。
【0039】
始めに、図面の説明を行う。
図11は、テーブルの検索を行う手順を示す流れ図である。
図12は、「検索」メニューを示す図である。
図13は、検索条件入力画面を示す図である。
図13において、14はAND/ORであり、一つのフィールドに対して検索条件を設定した後、他のフィールドに設定する条件との関係をAND条件とするか、OR条件とするかを指定するためのボタンである。例えば、図13によると「メーカ形名」に「*74HC*」という条件が設定されているが、上記条件を設定した後、AND/OR14に「AND」が表示されている状態でクリックを行うと、「メーカ形名」に対する検索条件はAND条件となる。15は設定した条件に適合する以外のデータを検索する場合に用いるNOTボタンであり(設定されていると黒い枠になる)、例えば、「DB登録日」に指定されている検索条件「>=1900/01/01」という条件を設定した後、NOTボタン15をクリックすると「DB登録日」が「>=1900/01/01」以外のデータを検索するという設定になる。16はフィールド名であり、検索条件入力画面設定において表示対象とするように設定したフィールド名が表示される。フィールド名16をクリックすると、ガイドラインが指定されている場合は入力データの候補又は入力データの範囲(参考値)がメニューに表示される。17は検索条件であり、フィールド名16に対する検索条件を入力する。複数の条件を入力する場合はカンマで区切る。カンマで区切った複数の条件はOR条件となり、いずれかの条件に当てはまるレコードが検索される。検索条件の入力では、上記実施の形態1において説明を行った検索条件入力画面の設定において定義した推奨条件10dを利用することができる。推奨条件10dを利用するには、検索条件欄をクリックすると、推奨条件の一覧メニューが表示される(図18を参照する)ので、表示された推奨条件の一覧メニューからデータを選択する。選択したデータは検索条件17に追加される。推奨条件はそのまま検索条件として使用することも可能であるが、これをカスタマイズして別の条件を作成し設定することも可能である。18は設定条件の保存であり、このボタンをクリックすると、ウィンドウで設定されている検索条件を保存することができる。検索条件名称の入力ウィンドウが表示されるので(図19参照)、利用者はキーボード6より名称を入力する。19は検索条件の呼び出しであり、検索条件リスト21より呼び出たい検索条件を選択し、このボタンをクリックすると、設定されている検索条件が読みこまれウィンドウに表示される。20は検索条件の削除であり、このボタンをクリックすると検索条件リスト21より選択した検索条件を削除できる。21は検索条件リストであり検索対象テーブルに対して保存されている検索条件名の一覧が表示される。但し、実行中のユーザが保存したものだけが表示される。検索条件リストは推奨条件とは別に利用者が検索条件を設定するときに利用できるものであり、推奨条件はフィールドに対しての設定であったが、検索条件リストはテーブルに対して設定できる検索条件である。このため、フィールドを問わず各種条件を設定し、参照することができる。
図14は、検索結果表示画面を示す図であり、図13において設定を行った検索条件に基づいて、ツリー名「部品情報」の末端ノード「MOSデジタルIC(C−MOSロジック)」を検索し、上記実施の形態1において設定を行った検索結果表示画面設定に基づいて検索結果を表示している。
図14によると、検索条件に該当するレコードは174件存在し、全部で4画面となる。
【0040】
図15は、検索結果の出力メニューを示す図である。このメニューは、図14のメニューバーの中から「出力」を選択すると表示される。
図16は、検索結果をファイルへ出力するための設定を行う画面を示す図である。
この画面は、図15の出力メニューの中から「ファイル出力」を選択すると表示される。
検索結果をファイルへ出力するためには、図16(A)の画面において、「出力ファイル名」、「出力形式」、「出力フィールド指定」、「出力レコード指定」を指定する。
出力形式にはテキスト形式と表計算形式がある。表計算形式で出力した場合の例が図16(B)に示されている。また、出力フィールド指定では、検索対象テーブルの全フィールドを出力するか、ウィンドウに表示されているフィールドだけを出力するかを選択する。さらに、出力レコード指定では、検索条件に該当する全レコードを出力するか、検索結果表示ウィンドウより出力するレコードを選択し、当該レコードだけを出力するかを選択する。
図17は、検索結果をプリンタへ出力するための設定を行う画面を示す図である。
この画面は図15の出力メニューの中から「プリンタ出力」を選択すると表示される。
検索結果をプリンタへ出力するためには、図17の画面において、「出力プリンタ名」、「出力フィールド指定」、「出力レコード指定」を指定する。
尚、「出力フィールド指定」と「出力レコード指定」の設定は、上記で説明した図16のファイルへ出力結果を出力する場合と同様である。
【0041】
図18は、推奨条件の一例を表示した画面を示す図である。
図18において、「1829×*」,「*1219×2438」,「*900×1800 MM」は、検索条件入力画面設定において推奨条件に登録されている。検索条件を選択するには、表示されている検索条件の中の選択したい条件にカーソルを合わせ、クリックすると選択できる。検索条件リストとは異なり、フィールドに対して固有であり、フィールド名をクリックすると表示される。
【0042】
次に、図11の流れ図に従い、検索を実行する手順について説明を行う。
図11の流れ図において、S1〜S3の処理は、上記実施の形態1において説明を行った図10のS1〜S3までの処理と同様であり、この実施の形態では説明を省略する。
図3のツリー表示画面より検索したいテーブルが設定されている末端ノードを選択する(S9)。この実施の形態では、末端ノードである「MOSデジタルIC(C−MOSロジック)」を検索するため、上記末端ノードをマウスでクリックして選択する。
そして、さらに図3のメニューバーの中から「検索」を選択し、表示される図12の「検索」メニューから「検索実行」を選択する。「検索実行」を選択すると図3に示されているツリー表示ウィンドウが消え、図13の検索条件入力ウィンドウが表示される(S10)。
図13を例に検索条件の設定方法を説明する。図13によると、検索条件が設定されているのは「メーカ形名」と「DB登録日」である。まず、「メーカ形名」をクリックしワイルドカード(*)を用いて、メーカ形名のデータ中に「74HC」が含まれているレコードを検索対象とする条件を設定する。
次に、「DB登録日」の検索条件を設定するが、その前に、AND/OR14をクリックし、「メーカ形名」に対する条件の接続を設定する。ここでは、「メーカ形名」と「DB登録日」に設定するそれぞれの検索条件をいずれも満足するレコードを検索対象とするためAND/OR14に「AND」が表示されていることを確認する。いずれかを満足するレコードを検索対象とするのであれば、AND/OR14に「OR」が表示されていることを確認する(ANDが表示されていたら、クリックをすると「OR」に変わる)。
そして、「DB登録日」に検索条件を設定する。図13によると「DB登録日」は「1990年1月1日以降」という条件を設定している(S11)。
上記のように条件の設定を行ったら、メニューバーにある「検索」を選択し、表示された「検索」メニューの中から(図12)さらに「検索実行」をクリックする。「検索実行」をクリックすると、図14のように、検索条件に該当するレコードが順に表示される。
尚、図14に表示されている検索結果は、上記実施の形態1において設定を行った図5の検索結果表示画面設定11の設定内容に従い編集されている。例えば、「最新発注日1」は、加工指定11fに「DATE1」を設定しているため、年月日を「/」で区切る編集がされている。
【0043】
以上のように、上記実施の形態1及び実施の形態2によると、検索実行する時に設定を行う検索条件を入力するための画面を、検索条件入力画面設計3aによって予め設定しておくので、検索条件を指定する予定のないフィールドを表示しないようにでき、利用者は検索条件の設定が行い易くなる。また、推奨条件の設定も行えるため、検索実行時に新たに検索条件を入力する事なく、予め設定してある推奨条件を用いて、検索条件の設定が行え、入力ミスによる指定条件の誤りを減らすことができる。
【0044】
実施の形態3.
この実施の形態では、上記実施の形態1及び実施の形態2において検索を行った結果に基づいて、アクション管理表に記憶している情報を元に次の処理を起動するデータベース装置について、以下に説明を行う。
【0045】
始めに、図面の説明を行う。
図20は、この実施の形態におけるデータベース装置のシステム構成を示す図である。
図20において、50は検索部4において検索した結果に基づいて、実行可能な処理を定義して記憶しておくための処理定義部である。処理定義部50は、対話型定義支援部50aを備え、対話型定義支援部50aによって対話形式で処理を定義することができる。51はアクション管理表であり、処理定義部50に定義された定義情報を管理している。52は処理実行部であり、アクション管理表51に記憶された定義情報を解析し、次に起動する処理に必要なコマンドを生成する。
尚、コマンドの生成はコマンド生成部52aが行う。図20における他の符号については、上記実施の形態1において説明を行った図1と同様であるため説明を省略する。
【0046】
図21は、管理ツールを示す図である。
図22は、アクション管理表に処理を定義する手順を示す流れ図である。
図23は、検索種別選択画面を示す図である。
図24は、アクション設定において、テーブルスペース名(データベース名)の設定を行う画面を示す図である。
図25は、アクション設定において、テーブル名の設定を行う画面を示す図である。
図26は、「一覧」メニューを示す図である。図24のアクション管理画面のメニューバーにある「一覧」をクリックすると、表示されるメニューである。
図27は、アクションタイトルを設定する画面である。
図28は、「編集」メニューを示す図である。図24のアクション管理画面のメニューバーにある「編集」をクリックすると、表示されるメニューである。
図29は、スクリプト選択画面を示す図である。
【0047】
次に、図22の流れ図に従い、図20〜図29を用いて、アクション管理表に定義情報を設定する手順について説明を行う。
図21にある管理ツールより「アクション管理」を選択し、「実行」ボタンをクリックする(S20,S21)。アクション管理を選択すると、図23の検索種別選択画面が表示される(S22)。図23にある検索種別選択画面に表示されている「共通項目検索」と「パラメータ検索」よりこれから定義を行おうとしているアクションの検索方法を選択しクリックする(S23)。「共通項目検索」は中間ノードを指定して、ノード以下の複数のテーブルから部品情報を検索する場合に選択する。また、「パラメータ検索」は、末端ノードを指定してノードに対応するテーブルから部品情報を検索する。
この実施の形態では、上記実施の形態2において、検索を行った末端ノードである「MOSデジタルIC」を検索した結果に基づいて、次に起動するアクションの設定を行うため、図23の検索種別選択画面より「パラメータ検索」を選択する。「パラメータ検索」を選択すると、図24にあるアクション管理画面が表示される(S24)。図24では、アクションを起動する対象テーブルが含まれるテーブルスペース名(データベース名)を、アクション管理画面に表示されているテーブルスペース名の一覧の中から選択する。この実施の形態では、「PNDB」を選択する。テーブルスペース名を選択すると、図25のように、テーブルスペース名の左側に選択した「PNDB」とテーブルスペース名が表示される。さらに、アクションを起動する対象テーブルを登録するため、図25のメニューバーの中の「一覧」をクリックし、図26にある「一覧」メニューを表示させ、「一覧」メニューの中から「テーブル一覧」を選択し(S25)、テーブル名を選択する。この実施の形態では、図25に示されているテーブル名の一覧の中から「KA21M」をテーブル名として選択する。テーブル名を選択すると、図27のように、テーブル名として「KA21M」が表示される。さらに、これから設定を行おうとしているアクションのタイトル名を設定する。既に登録されているアクションを元に、別のアクションを作成する場合は、図27のメニューバーにある「一覧」を選択し、表示された「一覧」メニューの中から「アクション一覧」を選択すると表示されるアクション一覧の中から、該当するアクションを選択する。すると、定義済みのアクション情報を変更することができる(S26)。
【0048】
新規にアクションを登録する場合は、図27のメニューバーにある「編集」を選択すると表示される図28の編集メニューの中から「新規登録」を選択し、新たにアクションを登録する(S27)。新規にアクションを登録する場合は、まず始めにスクリプトを設定する。スクリプトの設定は、「編集」メニューの「新規登録」を選択すると表示される図29のスクリプト選択画面で設定を行う。スクリプトとは、アクションタイプを示すものであり、この発明におけるデータベース装置では、3つのスクリプトがある。3つのスクリプトとは、「全フィールド表示」、「他データベース検索」、「コマンド起動」である。「全フィールド表示」とは、検索したテーブルがもっている全てのフィールドの値を表示する機能である。
尚、全フィールドを表示する対象となるレコードは、検索結果表示画面に表示されているレコードの中から、利用者が任意に選択した1つのレコードに対して実行される。
「他データベース検索」は、検索結果が表示されている画面の中から、利用者が任意にレコードを選択し、レコードのデータを検索条件として他のテーブルを検索する。アクションの設定は、検索結果のフィールドと検索対象となる他のテーブルのフィールドの関係を定義する(以後、この関係を相関関係と称する)。
「コマンド起動」は、検索結果のレコードのデータを引数として実行するコマンドを定義する。例えば、実施の形態2における「MOSデジタルIC」を検索した結果が図14の検索結果表示画面に表示されているが、表示されている「P/N部品番号」を元に部品カタログを表示させることができる。
図29のスプリクトを選択画面より、対象とするスプリクトを1つ選択し、アクションのタイトルを入力した後、「実行」ボタンをクリックする(S28)。「実行」ボタンをクリックすると、アクションのタイプによってそれぞれの設定ウィンドウが表示される。利用者は表示された設定ウィンドウに対し、必要な定義情報を設定する(S29,S30,S31)。
【0049】
次に、S28において設定したスクリプトのタイプに従い、詳細な設定方法を以下に説明する。
始めに、「全フィールド表示」の設定について説明を行う。
図30は、全フィールド表示の設定を行う手順を示す流れ図である。
図31は、アクションの実行権を設定する画面である。
【0050】
図30の流れ図によると、上記で説明を行ったS28において、「全フィールド表示」のスクリプトタイプを選択すると、図31の実行権設定の画面が表示される。この画面において実行権を設定し、メニューバーにある「アクション」を選択すると表示されるアクションメニュー(アクションメニューは図示していない)より「実行」をクリックし、全フィールド表示のアクションを設定する(S40)。
尚、実行権とはデータベースを保護するために利用者毎に設けられている権限であり、この実施の形態では、実行権Aから実行権Eが与えられているものとする。実行権の設定は、設定したい実行権の枠をクリックすると設定できる。図31において、実行権A,B,Cがアクションを実行することができることを示している(黒い枠が実行権を設定していることを示している)。
以上が全フィールド表示のアクションの設定方法である。
【0051】
次に、「他データベース検索」のアクションを設定する手順について説明を行う。
図32は、他データベース検索のアクションを設定する手順を示す流れ図である。
図33は、他データベース検索のアクション定義を行うための画面を示す図である。
図34は、検索を行おうとするデータベースのテーブルスペース名とテーブル名を定義するための画面を示す図である。
図35は、相関関係の設定を行う画面を示す図である。
図36は、実行権の設定を行う画面を示す図である。
【0052】
次に、図32の流れ図に従い、他データベース検索のアクションを設定する手順について説明を行う。
「他データベース検索」の設定では、まず始めに検索を行うテーブルを設定する(S50)。テーブルの設定は図33にある「対象テーブル」をクリックすると表示される図34の選択ウィンドウより、該当するテーブルスペース名とテーブル名をクリックし設定する。この実施の形態では、図34の選択ウィンドウテーブルスペース名「PNDB」とテーブル名「KATAMEIM」をクリックする。クリックしたテーブルスペース名とテーブル名は、図33の「対象テーブル」として「PNDB.KATAMEIM」と表示される。
次に、フィールドの相関関係を設定する(S51)。図33にある「相関関係設定」をクリックすると表示される図35の相関関係設定ウィンドウより、検索結果のフィールドと、検索結果を利用して検索する他のデータベースのテーブルのフィールドとの対応を定義する。設定する方法は、図35の取り出し側フィールド一覧に表示されているフィールド名と、対応させる検索結果のフィールド名をマウスで選択して「設定」をクリックする。相関関係は複数指定することが出来、対応させるフィールドの個数分繰り返し設定を行う(S52)。例えばこの実施の形態では、図35の取り出し側フィールド一覧にある「PK_PN」と代入側フィールド一覧にある「P_BUHIN」を選択し、「設定」をクリックし相関関係を設定する。「設定」をクリックすると、図36のように、設定した相関関係「PK_PN→P_BUHIN」が表示される。
次に、他データベース検索アクションウィンドウでアクションへのアクセス権を設定する。アクセス権の設定は図36にある実行権の設定A〜Eのうち、実行権を与えるものをクリックする。このアクセス権が設定されると、図36にある実行権の設定の四角い枠は、白表示から黒表示に変更される。アクセス権設定後、図36のメニューバーにある「アクション」をクリックし、表示されるアクションメニューの中から「実行」を選択し、これまで設定を行ってきた他データベース検索のアクションをテーブルに設定する。
以上がデータベース検索のアクション設定を行う手順である。
【0053】
次に、「コマンド起動」のアクション設定を行う手順について説明を行う。
図37は、コマンド起動を設定する処理手順を示す流れ図である。
図38は、アクション定義において、スクリプト設定を行う画面を示す図である。
図39は、引数設定を行う画面を示す図である。
【0054】
次に、図37の流れ図に従い、コマンド起動のアクションを設定する手順について説明を行う。
始めに、図38のアクション作成画面にあるスクリプト欄に起動するコマンドスクリプトを入力する(S60)。コマンドスクリプトには、当該アクションが起動されることによって、表示されるイメージデータが格納されているファイルを表示するためのコマンドを入力する。この実施の形態では、「MOSディジタルIC」の一つである部品カタログが格納されているファイルを表示するコマンド「mtiff_sh」を指定する。次に、引数を設定する(S61)。引数の設定は、図38にある「引数設定」をクリックして表示される図39の引数設定ウィンドウより、表示されているフィールド名の一覧から、イメージデータが格納されているファイル名であるフィールドを選択する。引数とするフィールドは複数設定できるので、順にフィールド名を選び、「設定」をクリックする(S62)。この実施の形態では、「K_PATH」を選択する。選択後、図39の「設定」をクリックすると図38のアクション作成画面に設定した引数が表示される。次に、図38のアクション作成画面より、アクションへのアクセス権を設定する。アクセス権の設定は上記で説明を行った他データベース検索のアクセス権の設定と同様の方法である。この実施の形態では、実行権A,B,Cに対してアクセス権を設定する。アクセス権設定後図38のメニューバーにある「アクション」をクリックして表示されるアクションメニューの中から「実行」を選択し、テーブルにアクションを設定する(S63)。
以上がコマンド起動のアクション設定方法である。
【0055】
尚、上記で説明を行ったアクション定義は、テーブル毎に定義しなければならない。
また、上記のように設定を行ったアクション定義情報はアクション管理表51に記憶され、処理定義部50がこのアクション管理表を管理する。そして、アクションが起動されると処理実行部52がアクション管理表を参照し、起動されたアクションの定義情報を解析し、処理生成部52aによって必要なコマンドを生成し、アクションを実行する。
以下に、アクション管理方式について説明を行う。
アクションを管理するために、データベース内のテーブルに対して、テーブル名とアクション用IDを記憶するテーブル管理表(図40(B))と、データベース検索結果から派生する処理を管理するアクション管理表(図40(A))を、この発明におけるデータベース装置は備えている。このデータベース装置では、テーブルを作成した際に、アクションIDを採番し、テーブル管理表にテーブル名とアクションIDを登録する。
また、検索結果から派生するアクションは、処理定義部50によって、アクション管理表にアクション用ID又はアクションへのデータ引き渡し列などの属性を登録する。この時、同一のテーブルに対するアクションは、同じIDを採番されているものとする。
【0056】
図40にアクション管理表とテーブル管理表のレコードのイメージを示す。
上記で説明を行なったアクション定義情報は図40(A)のアクション管理表に登録される。アクションタイトルは「acttitle」に設定される。そして、スクリプトは「script」に設定される。全フィールド表示の場合は「FIELD」と設定され、他データベース検索の場合は「DBACCESS」、コマンド起動の場合は、図38のスクリプトに入力したコマンドが「script」に設定される。この実施の形態では、「mtiff_sh」が設定される。そして、他データベース検索の場合に設定していたフィールドの相関関係は、「srcfids」と「dstfids」に引数が設定される。この実施の形態で設定を行ったフィールドの相関関係は図41のように、「srcfids」には取り出し側フィールド名である「PK_PN」が設定され、「dstfids」には代入側フィールド名「P_BUHIN」が設定される。また、コマンド起動の場合は、図43のように「srcfids」に「K_PATH」が設定される。そして他データベース検索の場合は、「machine」に対象サーバ名、「dbname」に対象データベース名、「tblname」に対象テーブル名が格納される。更に、「reatA」〜「reatE」に実行権が格納される。実行権は「1」である場合を実行権ありとする。そして、アクションが起動されると、起動されたアクションが他データベース検索の場合は、アクション管理表に定義されている定義情報と、検索結果をもとに、SQL文を自動生成し、アクションを実行する。
【0057】
例えば、図42にあるような検索結果が表示されていて、一番上に示されている検索結果を選択し、他データベース検索が起動されると、以下のSQL文をコマンド生成部52aは自動生成する。なお、アクション管理表の「scrfids」には「fldA,fldB,fldC」が設定され、かつ、「dstflds」には「fld3,fld2,fld1」が格納されているものとする。
select fld1,fld2,fld3・・・・from db_1.table_1
where fld3=‘data1’and fld2=123 and fld1=‘1994/12/12’
【0058】
また、起動されたアクションがコマンド起動である場合は、vfork又はsystemなどのシステムコールを行うコマンドを、コマンド生成部52aは生成する。
例えば、図44にあるような検索結果が表示されていて、一番上のレコードを選択し、コマンド起動のアクションを起動すると、以下のコマンドを発行する。尚、アクション管理表の「script」には「MTIFF」が格納され、「srcflds」には「fldA」が格納されているものとする。
MTIFF tiff_data
【0059】
以上のように、アクション管理表を備えることによって、検索結果から派生する処理の定義をデータベースシステムから切り離すことが可能になる。また、アクション管理表にユーザIDを設ければ、ユーザ毎にテーブルに対するアクション定義を行うことができる。
【0060】
実施の形態4.
この実施の形態では、上記実施の形態2で行った検索結果に基づいて、上記実施の形態3において定義したアクションを実行する例について以下に説明を行う。
アクションの起動には、以下の3つの方法が存在する。
1つ目は、図14に表示されているようなアクションリストの中から実行するアクションを1つ選択し、検索結果として表示されているレコードの中から1つのレコードを選択し、メニューバーにある「アクション実行」をクリックする。
2つ目は、図14に表示されているような検索結果の中から1つのレコードを選択し、アクションリストの中から実行するアクションを1つ選択し、ダブルクリックする。
3つ目は、図14に表示されているようなアクションリストの中から実行するアクションを1つ選択し、検索結果として表示されているレコードの中から1つのレコードを選択し、ダブルクリックする。
以上の3つの方法によって、アクションを起動することができる。
【0061】
始めに、コマンド起動のアクションを実行する例について、図45の流れ図に従い説明を行う。
図14の検索結果表示ウィンドに表示されているアクションリストの中から、コマンド起動である「カタログ表示1」を選択する(S70)。尚、「カタログ表示1」の引数には「P/N部品番号」が指定されているものとする。
次に、検索結果として表示されているレコードの中から、NOが「1」であるレコードをクリックし、メニューバーにある「アクション実行」をクリックすると、図46にあるような「P/N部品番号」が「KP41P200H06」の部品のカタログが表示される(S71)。
【0062】
次に、全フィールド表示のアクション起動について説明を行う。
図14にあるアクションリストの中から「全フィールド表示」を選択し、更に、検索結果として表示されているレコードの中からNOが「4」であるレコードを選択し、メニューバーの「アクション実行」をクリックすると、図47のような画面が表示される。図47の画面では、選択したレコードの全てのフィールドを表示している。
【0063】
次に、図48の流れ図に従い、他データベース検索の実行について説明を行う。
図48によると、始めに、図14のアクションリストの中から他データベース検索のアクションである「他データベース検索1」を選択する(S80)。
尚、「他データベース検索1」は、実施の形態3において、設定を行ったアクションタイトルが「品質情報検索」と同様のアクションであるものとする。
次に、検索結果として表示されているレコードの中から、他データベース検索の条件に入力するレコードをダブルクリックする(S81)。
そして、他データベース検索のアクションでは、これから行うデータベース検索の結果を表示する検索結果表示画面の設定を行うかどうかを問い合わせるウィンドウが、図49の様に表示される。このため、利用者は図49の問い合わせに対して、画面設定が必要な場合は「画面設定が必要」を選択し、「実行」をクリックし、検索条件の設定と検索結果表示画面の設定を行う。
尚、表示される検索条件入力画面には、選択したレコードのフィールド情報が入力されている。表示されている検索条件を変更する場合は、変更後の内容を設定し(S83)、検索条件の設定を行い(S84)、メニューバーにある「検索」をクリックし、検索実行を行う。
【0064】
以上のように、アクション定義を予め行うことによって、検索結果が表示されている画面から次に起動するアクションを実行するプログラムを作成することなく、アクションリストから処理を選択するだけで利用者は検索結果を基に次に起動する処理を容易に実行することができる。
【0065】
実施の形態5.
この実施の形態では、一度定義を行ったアクション定義情報の変更方法について以下に説明を行う。
【0066】
図50は、アクション起動情報の変更手順を示す流れ図である。
図50によると、図27に表示されているようなアクション一覧ウィンドウの中から、起動情報を変更したいアクションを選択する(S90)。アクションを選択した後、メニューバーにある「編集」をクリックして表示される図28の編集メニューより「アクション変更」を選択する。「アクション変更」を選択すると、スクリプトタイプに対応して図33のアクション作成画面や、図38のアクション作成画面や、図31のアクション作成画面がそれぞれ表示されるので、表示されている定義情報を変更したい情報に再設定を行う(S92)。
再設定の方法は、上記実施の形態3において説明を行った各定義情報の設定方法と同様の方法で行うものとし、この実施の形態では説明を省略する。
【0067】
次に、アクションの削除について説明を行う。
図51のアクションの削除手順を示す流れ図によると、図27のアクション一覧より削除対象とするアクションを選択する(S100)。そして、メニューバーにある「編集」をクリックして表示される図28の編集メニューの中から「削除」を選択する。「削除」を選択すると、図51(B)のような削除確認ウィンドウが表示されるので(S101)、削除する場合は「実行」をクリックしてアクションを削除する(S102)。
【0068】
また、アクションのタイトルを変更する場合は、図52のアクションのタイトル変更の処理手順を示す流れ図によると、図27のアクション一覧ウィンドウよりタイトル変更するアクションを選択する(S110)。そして、メニューバーの中から「編集」を選択し表示される図28の「編集」メニューの中から、「タイトル変更」を選択する。「タイトル変更」を選択すると、図53のタイトル変更画面が表示されるので、変更後のタイトルを設定し直し、「実行」をクリックしてアクションのタイトルを変更する(S112)。
【0069】
また、デフォルトアクションの設定を行う場合は、図27のアクション一覧ウィンドウの中から、デフォルトとするアクションを選択する(S120)。そして、「編集」をクリックし表示される図28の編集メニューの中から、「デフォルト設定」を選択する。「デフォルト設定」を選択すると、図55のメニューが表示されるので、設定する場合は「設定」を選択しクリックする。設定を解除する場合は、「設定解除」をクリックする(S121)。そして、確認画面が表示されるので「実行」をクリックし、デフォルトが設定される(S122)。編集メニューの中から「デフォルト設定」を選択すると、図56(A)の確認画面が表示される。また、「設定解除」を選択すると、図56(B)の設定解除確認画面が表示される。デフォルトが設定されると、図27にあるアクション一覧ウィンドウのデフォルト設定の欄に「*」が表示される。
尚、デフォルト設定とは、アクションを実行する場合、アクションリストより何も選択せずに、タイトルメニューバーにある「アクション実行」だけをクリックして実行できるアクションを設定するためのものである。デフォルト設定が行われているアクションは、アクションリストが反転表示される。
【0070】
次に、アクションの特権変更について説明を行う。
図57のアクションの特権変更手順の流れ図によると、図27のアクション管理画面に表示されているアクションタイトル一覧の中から、特権変更を行うアクションを選択する(S130)。次に、タイトルバーの「編集」をクリックして表示される図28の編集メニューの中から、「特権変更」を選択する(S131)。「特権変更」を選択すると、図58の特権変更画面が表示されるので、変更後の特権を設定し、「実行」をクリックしてアクセス権の変更を行う(S132)。
尚、図58において、実行権の設定が黒い四角になっていることが、アクセス権ありを示している。
【0071】
以上のように、一度行ったアクション定義であっても、変更を行うことができるので、利用者は新しくアクションを設定する場合でも、既に設定してあるアクション定義情報を用いて変更することによって、容易に新たなアクション定義を行うことができる。
【0072】
実施の形態6.
この実施の形態においては、ガイドラインの設定について説明する。
図59は、この発明におけるデータベース装置を実現するシステム構成図である。
図59において、53は画面設計部3で表示する候補データを定義して記憶しておくためのガイドライン定義部である。他の符号については、前述した図1の符号と同様である。
図60は、図21に示した管理ツールの「テーブル管理」から起動されるガイドラインを定義する画面である。検索用ガイドライン56でデータの型に数値型/日付型(NUMBER/DATE)を選択すると、画面設定画面のフィールド名をクリックした時に図6(A)のようなガイドラインが表示される。また、検索用ガイドライン56で「GROUP」を選択すると、図6(B)のようなガイドラインが表示される。
【0073】
図6(B)の候補データ一覧のガイドラインは、検索を行おうとするデータベース内のデータの一部を表示しているが、データベースが大規模になると表示するデータを抽出するのに時間を要する。このような場合、ガイドラインに表示するデータだけを登録したデータベースを作成しておき、そのデータベースのデータを表示するよう設計をしておくことができる。
設定方法は、図60の検索用ガイドライン56で「MASTER」を選択し、MASTER設定57をクリックすると表示される図61のMASTER設定画面で、ガイドライン用のテーブルスペース58、テーブル59、設定値フィールド60を指定する。図5のフィールド名10cにある「部品名」をクリックして表示される候補データが、図6(B)に表示されている7種類のみであり、実際のデータ数は10万件あるとする。ガイドライン用のデータベースを作成し、そこに登録されている7種類のデータを参照するよう設定しておけば、データを抽出する時間は大幅に削減できる。
【0074】
また、図61のMASTER設定画面でコメントフィールド61を指定すると、候補データに注釈をつけることができる。コメントフィールド61は、ガイドラインのデータが格納されているテーブルと同じテーブルに作成しておく。図62は、注釈つきの候補データ一覧のガイドラインの一例を示す図である。例えば、図5のフィールド名10cにある「部品標準区分1」をクリックして表示されるガイドラインであり、「部品標準区分1」の推奨条件に対応したガイドライン用データベースのデータを表示している。図62の設定値67は、推奨条件の候補データを表示しており、コメント68は候補データに対応した注釈を表示している。推奨条件として、このガイドラインの中からデータを選択する場合は、選択したいデータまたは注釈にカーソルを合わせクリックすると選択できる。
【0075】
図63は図70のMASTER設定画面の文字属性設定63をクリックすると表示される文字属性設定画面である。文字属性設定画面の字体65では、ガイドラインに表示するデータの字体を指定することができる。文字属性設定画面を表示した際に、MASTER設定画面で指定されているテーブル内のデータが、データ64に表示される。ここから字体を変更したいデータを選択し、字体65の横のボタンを押すと表示されるメニューから設定したい字体を選択する。字体は「明朝」「ゴシック」「ボールド」「イタリック」の4種類がある。図64は図63に示す文字属性設定画面でデータ「R」の字体をゴシックに変更した後、図5のフィールド名10cにある「部品標準区分1」をクリックして表示されるガイドラインである。
【0076】
また、図63の文字属性設定画面の文字修飾66では、ガイドラインに表示するデータに付ける「アンダーライン」「オーバーライン」「抹消線」を指定することができる。データ64から文字修飾をつけたいデータを選択し、「アンダーライン」「オーバーライン」「抹消線」のいずれかのボタンをクリックする。さらに線種または種類を変更する場合は、クリックしたボタンの右横にある線種または種類のメニューから表示したいものを選ぶ。図65は図63に示す文字属性設定画面でデータ「G」の文字修飾に「抹消線」を設定した場合、図5のフィールド名10cにある「部品標準区分1」をクリックして表示されるガイドラインである。
【0077】
図61のMASTER設定画面の検索条件62は、ガイドライン用データベースのデータからさらにデータを絞り込んでガイドラインに表示したい場合、その絞り込み条件を指定する。条件の指定形式は、前述した検索条件入力画面に入力する検索条件と同じである。絞り込み条件を指定することにより、ユーザに推奨条件として設定して欲しくないデータをガイドライン上に表示させない等の工夫をすることができる。
【0078】
【発明の効果】
以上のように第1の発明によれば、画面設計部がデータベースのデータを検索する条件を入力する検索条件入力画面を任意に設計する。このため、従来のデータベース検索ツールでは検索条件を入力する画面が固定であったが、この発明のデータベース装置を用いることによって、利用者にとって不必要な情報を表示しないように設計でき、検索条件の入力が容易に行える効果がある。
【0079】
また、第2の発明によれば、さらに、画面設計部が検索結果を表示する検索結果表示画面を任意に設計する。このため、検索条件の入力と、例えば表示順序や表示するフィールド等の指定を行う検索結果表示画面の設計を別々に行うことができ、利用者は設計がしやすくなり、設定ミスも減少する効果がある。
【0080】
また、第3の発明によれば、上記画面設部が任意のフィールドを選択する。このため、利用者は検索条件入力画面設計時、及び検索結果表示画面設計時に必要なフィールドを容易に指定でき、不必要なフィールドは表示されないので、入力誤りによる設計ミスを減少できる効果がある。
【0081】
また、第4の発明によれば、上記画面設計部が選択したフィールドの表示順序を指定する。このため、利用者は検索条件入力画面設計時、及び検索結果表示画面設計時に容易に表示順序を指定できる効果がある。また、検索条件入力画面に表示するフィールドの順序と検索結果表示画面に指定するフィールドの順序を異なる順序で指定できるので、利用者によって利便性のよいデータベース検索環境を提供できる効果がある。
【0082】
また、第5の発明によれば、上記画面設計部が検索条件を予め設定する。このため、検索条件入力画面用に選択したフィールドに対し使用頻度の高い検索条件を予め設定しておけば、利用者は新たに条件を指定するよりも容易に条件指定を行うことができる効果がある。また、予め設定した条件を元にこれをカスタマイズして新たな条件を指定すれば、条件指定が容易に行え、条件の指定ミスを減少することができる効果がある。
【0083】
また、第6の発明によれば、上記画面設計部が表示形式を指定する。このため、検索結果表示画面用に選択したフィールドに対し、カンマ編集や、¥編集や表示枠の拡張等の表示形式の指定を容易に行うことができ、検索結果が見やすくなり、利用者にとって利便性のよいデータベース検索環境を提供できる効果がある。
【0084】
また、第7の発明によれば、処理定義部が検索結果に基づいて実行可能な処理を予め記憶し、処理実行部が上記処理定義部に定義された処理を実行する。このため、従来検索結果を利用者が確認し、結果に基づいて次に起動する処理を利用者が改めて指定を行っていたが、このデータベース装置を用いることによって検索結果に基づいて次に起動する処理が予め分かっている場合には、次に起動する処理を予め定義しておき検索処理終了後に自動的に次の処理を起動することができ、検索結果を確認し、次に起動する処理を改めて指定するという煩わしさが無くなり、利用者にとって利便性の良いデータベース検索環境を提供できる効果がある。
【0085】
また、第8の発明によれば、上記処理定義部は複数の処理の定義をすることができ、更に上記処理実行部は複数の処理の中から少なくとも1つの処理を選択して実行する。このため検索結果のパターンによって次に起動する処理が複数ある場合にも、この発明によるデータベース装置を用いれば容易に対応できる効果がある。
【0086】
また、第9の発明によれば、上記第7の発明における処理の定義は、上記処理定義部が備える対話型定義支援部を用いて定義する。このため、次に起動する処理の定義が容易に行え、初めて利用する利用者にとっても容易に処理の定義を行うことができる効果がある。
【0087】
また、第10の発明によれば、上記第7から第9の発明において定義を行った次に起動する処理は、アクション管理表として記憶し、上記処理実行部が備えるコマンド訂正部によって、アクション管理表に記憶された定義情報が解析され、必要なコマンドが生成される。このため、利用者が次に起動する処理の定義を行う場合、データベース装置と、このデータベース装置を取り巻くシステム環境とのインタフェースを考えることなく容易に次に起動する処理の定義を行うことができ、特別な知識を必要とせずにこの発明におけるデータベース装置を利用できる効果がある。
【0088】
また、第11の発明によれば、上記第10の発明におけるコマンドがSQLコマンドである。このため、従来から存在するデータベース及びデータベースを取り巻くシステム環境下において、この発明におけるデータベース装置を用いることができ、新たにデータベース装置を導入する場合、低コストで実現できる効果がある。
【0089】
また、第12の発明によれば、上記コマンドがシステムコールである。このため上記第11と同様の効果を奏することができる。
【0090】
第13の発明では、検索条件として使用される候補データを表示することにより、ユーザはデータベース内のデータを知らなくても、容易に条件に指定可能なデータを得ることができ、第5の発明における条件指定を、より容易に行え、また指定ミスもさらに減少することができる効果がある。
【0091】
また、第14の発明では、候補データを任意のテーブルから選択することによって、より操作性のよいガイドラインを提供できる効果がある。
【0092】
また、第15の発明では、候補データに注釈を付与することによって、データベースに登録されている記号化された値の意味を、ユーザはデータベース検索の操作上で知ることができ、値の意味を別途調べる手間を省くことができる効果がある。
【0093】
また、第16の発明では、ガイドラインのデータを字体により分類しておけば、ユーザも視覚的にデータを分類でき、選択しやすくなる効果がある。
【0094】
また、第17の発明では、データに強調表示をすることによってデータを分類することができ、第16の発明と同様の効果が得られる。
【0095】
また、第18の発明では、候補データを絞り込むための条件を与え、選択すべきでないデータは候補データから除外することによって、ユーザはより適切なデータの選択を行いやすくなるという効果がある。
【図面の簡単な説明】
【図1】この発明におけるデータベース装置を実現するシステム構成図である。
【図2】実施の形態1において利用者がアクセス可能なツリー情報を表示した画面を示す図である。
【図3】実施の形態1においてツリー情報に格納されているノードを示す図である。
【図4】「画面」メニューを示す図である。
【図5】実施の形態1において画面設定ウィンドウを示す図である。
【図6】実施の形態1において推奨条件入力におけるフィールドに対するガイドラインを示す図である。
【図7】実施の形態1においてフィールドのガイドラインを示す図である。
【図8】実施の形態1において加工指定の書式を示す図である。
【図9】実施の形態1において「設定」メニューを示す図である。
【図10】実施の形態1において検索条件入力ウィンドウと検索結果表示ウィンドウの設定手順を示す流れ図である。
【図11】実施の形態2において検索を実行する手順を示す図である。
【図12】検索メニューを示す図である。
【図13】実施の形態2において検索条件入力画面を示す図である。
【図14】実施の形態2において検索結果表示画面を示す図である。
【図15】実施の形態2において出力メニューを示す図である。
【図16】実施の形態2において検索結果ファイル出力画面を示す図である。
【図17】実施の形態2において検索結果をプリンタへ出力することを指定する画面を示す図である。
【図18】実施の形態2において検索条件入力画面の推奨条件に設定されている内容を表示した例を示す図である。
【図19】実施の形態2において設定した検索条件を保存するための画面を示す図である。
【図20】この発明におけるデータベース装置の一例を示すシステム構成図である。
【図21】実施の形態3において管理ツールを示す図である。
【図22】実施の形態3においてアクション定義を行う手順を示す流れ図である。
【図23】実施の形態3において検索種別選択画面を示す図である。
【図24】実施の形態3においてアクション設定においてテーブルスペース名の設定を行う画面を示す図である。
【図25】実施の形態3においてアクション設定においてテーブル名の設定を行う画面を示す図である。
【図26】実施の形態3において「一覧」メニューを示す図である。
【図27】実施の形態3においてアクション管理画面でアクションタイトルを指定する画面を示す図である。
【図28】実施の形態3において「編集」メニューを示す図である。
【図29】実施の形態3においてスクリプト選択画面を示す図である。
【図30】実施の形態3において全フィールド表示の設定手順を示す流れ図である。
【図31】実施の形態3においてアクション作成画面において実行権の設定を行う画面を示す図である。
【図32】実施の形態3において他データベース検索のアクション定義を行う手順を示す流れ図である。
【図33】実施の形態3において他データベース検索のアクション定義を行うための画面を示す図である。
【図34】実施の形態3において検索を行おうとするデータベースのテーブルスペース名の一覧とテーブル名の一覧を示す図である。
【図35】実施の形態3において相関関係の設定を行う画面で、取り出し側フィールド一覧と代入側フィールド一覧を表示した画面を示す図である。
【図36】実施の形態3においてアクション作成画面において、実行権の設定を行う画面を示す図である。
【図37】実施の形態3においてコマンド起動のアクション定義を行う手順を示す流れ図である。
【図38】実施の形態3においてアクション作成画面でスクリプトの設定を行う画面を示す図である。
【図39】実施の形態3においてアクション作成画面で引数の設定を行う画面を示す図である。
【図40】実施の形態3においてアクション管理表のイメージを示す図である。
【図41】実施の形態3において他データベース検索用のアクション管理表内のデータを示す図である。
【図42】図41のアクションが定義されている検索結果を示す図である。
【図43】実施の形態3においてコマンド起動のアクションの定義を格納したアクション管理表内のデータを示す図である。
【図44】図43のアクションが定義されている検索結果を示す図である。
【図45】実施の形態4においてコマンド起動のアクションを実行する手順を示す図である。
【図46】実施の形態4においてコマンド起動された結果、画面に表示されるカタログの一例を示す図である。
【図47】実施の形態4において全フィールド表示のアクションを起動した結果を示す図である。
【図48】実施の形態4において他データベース検索のアクションを起動する手順を示す流れ図である。
【図49】実施の形態4において他データベース検索のアクションを実行する場合に表示される画面設定選択を示す図である。
【図50】実施の形態5においてアクション起動情報の変更を行う手順を示す流れ図である。
【図51】実施の形態5においてアクションの削除を行う手順を示す流れ図である。
【図52】実施の形態5においてアクションのタイトル変更を行う手順を示す流れ図である。
【図53】実施の形態5においてタイトル変更を行う画面を示す図である。
【図54】実施の形態5においてデフォルトアクションの設定を行う手順を示す流れ図である。
【図55】設定メニューを示す図である。
【図56】実施の形態5においてデフォルトアクション設定画面を示す図である。
【図57】実施の形態5においてアクションの特権変更を行う手順を示す流れ図である。
【図58】実施の形態5において特権変更を行う画面を示す図である。
【図59】この発明におけるデータベース装置を実現するシステム構成図である。
【図60】実施の形態6においてガイドラインを定義する画面を示す図である。
【図61】実施の形態6においてMASTER設定画面を示す図である。
【図62】実施の形態6における注釈つきの候補データ一覧のガイドラインの一例を示す図である。
【図63】実施の形態6における文字属性設定画面を示す図である。
【図64】実施の形態6において表示されるガイドラインを示す図である。
【図65】実施の形態6において表示されるガイドラインを示す図である。
【図66】従来例1において検索条件を入力する画面を示す図である。
【図67】従来例1において検索結果が画面に表示されている例を示す図である。
【図68】従来例1において問い合わせを行うファイルを選択する画面を示す図である。
【図69】従来例1において問い合わせ定義を行う画面を示す図である。
【図70】従来例1において問い合わせを実行した結果を画面に示した図である。
【図71】従来例2において選択クエリーを示す図である。
【図72】従来例2において抽出条件の設定を行う図である。
【図73】従来例4においてデータベース装置のシステム構成図である。
【図74】従来例において検索を行った結果を判定し、次の処理の起動を行う流れを説明した図である。
【符号の説明】
1 データベース装置、2 CRT、3 画面設計部、3a 検索条件入力画面設計、3b 検索結果表示画面設計、4 検索部、5 マウス、6 キーボード、7 データベース、10 検索条件入力画面設定、10a 切替、10b 順序、10c フィールド名、10d 推奨条件定義、11 検索結果表示画面設定、11a 切替、11b 順序、11c フィールド名、 11d ソート順、11e 昇降、11f 加工指定、11g 表示サイズ、12 アクションリスト、13 スクロールバー、14 AND/OR、15 NOT、16 フィールド名、17 検索条件、18 設定条件の保存、19 検索条件呼び出し、20 検索条件削除、21 検索条件リスト、50 処理定義部、50a 対話型定義支援部、51 アクション管理表、52 処理実行部、52a コマンド生成部、53 ガイドライン定義部、54 設定内容一覧、55 選択フィールド名、56 検索用ガイドライン、58 テーブルスペース、59 テーブル、60 設定値フィールド、61 コメントフィールド、62 検索条件、63文字属性設定。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a database apparatus for searching a relational database type database, outputting a search result, and starting another process based on the search result.
[0002]
[Prior art]
Conventional Example 1
Conventional tools that can search a relational database include, for example, BORLAND INTERNATIONAL, INC. Paradox for Windows. FIG. 66 is a diagram showing an example of a search condition designation screen in Paradox for Windows. In addition, FIG. 66 quotes the figure described in P73 of the introductory manual.
FIG. 67 is a diagram showing a search result in accordance with the search condition of FIG. 66 in Paradox for Windows. In addition, FIG. 67 quotes the figure described in P73 of the input manual.
In FIG. 66, the customer. A condition for searching for a record in which the prefecture of the DB is “Okinawa” is specified. This search screen is a screen that is displayed when the “Search item value” button in the speed bar is clicked. As shown in FIG. 66, when the search condition is specified and the [OK] button at the lower left of the screen is clicked, the customer. The first record in the DB where the prefecture is “Okinawa” is retrieved and displayed in FIG.
As described above, in Paradox for Windows, when searching for a record by item value, a screen for specifying the item value is prepared separately, and the user displays the “value search” screen. Specify the item value and the item name to be searched after performing the operation.
Further, when making an inquiry about information in a relational database in Paradox for Windows, the inquiry content is defined and the defined inquiry is executed.
FIG. 68 is a diagram showing an example of a screen for selecting a file to be inquired in Paradox for Windows.
FIG. 69 is a diagram showing an example of a screen for defining an inquiry in Paradox for Windows.
FIG. 70 is a diagram showing a result of executing the inquiry defined in FIG. 69 in Paradox for Windows.
68 quotes P162 of the introductory manual, FIG. 69 quotes P166 of the introductory manual, and FIG. 70 quotes P167 of the introductory manual.
When the user makes an inquiry, right-click the [Open inquiry] button in the speed bar on the desktop, and select [New (N)]. When the selection is made, a “file selection” dialog box as shown in FIG. 68 is displayed. For example, when the user makes an inquiry to the “order database”, on the file selection screen of FIG. 68, click “Order. DB” and click the [OK] button. When a file is selected, an inquiry definition screen shown in FIG. 69 is displayed. For example, when inquiring about a customer whose receivable amount is 0 yen or more, and the item to be displayed is "order number, customer number, order date, shipping date, transportation method, billing amount, payment amount, receivable amount" 69, check the above eight items as shown in FIG. 69, and specify the condition that the unaccrued amount is larger than 0 yen. When an inquiry specified as shown in FIG. 69 is executed, an Answer table as shown in FIG. 70 is displayed.
As described above, in Paradox for Windows, when a query for extracting a specific value for information in a relational database is performed, the specific value is also specified on the screen for query definition.
[0003]
Conventional Example 2
As a tool that can search a relational database, there is, for example, Microsoft Access of Microsoft Corporation. FIG. 71 is a diagram showing a query in which a product table and a product category table in Microsoft Access are combined using a category code. (A query is an Access object that asks a question or defines an extraction condition for data in a table.) FIG. 71 quotes a diagram described in P92 of the Access introductory manual.
FIG. 72 is a diagram showing an example of a screen for designating query extraction conditions in Microsoft Access. In addition, FIG. 72 quotes the figure described in P92 of the Access introduction manual.
If you want to search for a record whose category name is “confectionery” or “soft drink” from the query shown in FIG. 71, clicking the “Design View” button on the toolbar (not shown) will display the record in FIG. The extraction condition specification screen is displayed. Since the category name is “confectionery” or “soft drink”, the extraction condition is moved to the “extraction condition” cell for the “category name” field, “confectionery” is entered in the cell, and the enter key is pressed. Move to the bottom of the cell where “confectionery” is entered, enter “soft drink”, and press the enter key. FIG. 72 shows a screen in which the extraction condition is specified.
As described above, in Microsoft Access, an extraction condition designation frame having all items displayed in the query as fields is displayed. Therefore, by specifying an extraction condition for a field to be extracted and executing this, a search result is displayed. Can be obtained.
[0004]
Conventional Example 3
Further, as a method of searching a relational database and editing and outputting a search result, there is a “relational database search / output method” disclosed in, for example, “JP-A-4-310183”. According to the above method, only the internal management number is read and stored in the user file at the time of retrieval. The actual data reading and editing process and the form output process are executed by a program independent of the search using the user file as a medium.
FIG. 73 shows an embodiment of a relational database search / output method. In FIG. 73, the relational database search / output method is divided into a main process centered on the main program 200 and a sub process centered on the subprogram 500, and the main process and the subprocess are executed independently. In FIG. 73, 100 is a terminal screen, 300 is a relational database, 400 is a record number file, and 600 is a form.
The main program 200 receives various operation instructions such as search, display, form output, and the like as commands from the screen 100 of the terminal. When a search instruction is received, the record to be searched and the record number are output to the record number file 400, the subprogram 500 is started, and the process is terminated. This part is the main process. When the subprogram is activated, the screen 100 of the terminal can be used.
[0005]
The subprogram 500 started from the main program 200 reads the actual data from the relational database 300 using the record number stored in the record number file 400, edits it, and outputs a form 600. This part is sub-processing.
[0006]
[Problems to be solved by the invention]
Since the conventional database apparatus is configured as described above, items that are not to be searched are displayed on the screen for specifying the conditions for searching the database as shown in FIGS. For this reason, even unnecessary information is displayed, the screen is complicated, and there is a problem that it takes time to input and search necessary information. In addition, there is a separate tool for specifying search conditions as shown in FIG. 66. However, since only one item can be specified as a search target on this screen, a plurality of items are selected as search targets. The search condition must be specified on the screen of FIG. 66 by the same number as the number of items to be searched. For this reason, there has been a problem that the operation is complicated for the user.
Further, as shown in FIG. 73, the processing from database search to output is divided into main processing and sub-processing, but the sub-processing only edits the search result. For this reason, when another program is started based on the search result, there is a problem that a program having a necessary function must be coded in a system environment including a database. (FIG. 74 shows a flowchart for starting the next processing based on the conventional search result. According to FIG. 74, the user can download the programs of processing A, processing B, and processing C that are started based on the result determination. In a system environment with a database such as the one described above, there is a problem that it takes time and effort to customize the corresponding program for each user if the processing to be started differs depending on the search result for each user of the system. was there. There is also a problem that it is difficult to expand the processing repertoire.
[0007]
The present invention has been made to solve the above problems, and enables the following.
The user arbitrarily sets items to be searched among the items of the database, and creates a search condition setting screen based on the settings.
In addition, the user can arbitrarily design a result display screen for displaying the search result.
Furthermore, based on the search result, the process to be started next can be easily set interactively without the user coding a program.
[0008]
[Means for Solving the Problems]
The database apparatus according to the first aspect of the present invention has the following elements.
(A) the database stores the data;
(B) The screen design unit arbitrarily designs a search condition input screen for inputting conditions for searching the data in the database,
(C) The search unit inputs a search condition using a search condition input screen of a predetermined format designed by the screen design unit, and searches for data.
[0009]
The database device according to the second invention is characterized in that the screen design unit further arbitrarily designs a search result display screen for displaying a search result searched by the search unit.
[0010]
In the database device according to the third aspect of the invention, the screen design unit selects an arbitrary field from the fields constituting the data.
[0011]
The database device according to a fourth aspect is characterized in that the screen design unit designates the display order of the selected field.
[0012]
The database device according to a fifth aspect of the present invention is characterized in that the screen design unit sets in advance a search condition that may be used for the field selected for the search condition input screen.
[0013]
The database device according to the sixth invention is characterized in that the screen design unit designates the display format of the field selected for the search result display screen.
[0014]
The database device according to the seventh invention has the following elements.
(A) the database stores the data;
(B) The search unit searches the data in the database,
(C) The process definition unit predefines and stores an executable process based on the search result of the search unit,
(D) The process execution unit executes the process defined by the process definition unit.
[0015]
In the database device according to the eighth aspect of the invention, the process definition unit defines a plurality of processes, and the process execution unit selects and executes at least one process from the plurality of processes. Features.
[0016]
The database apparatus according to a ninth aspect is characterized in that the process definition unit includes an interactive definition support unit that defines a process using an interactive interface.
[0017]
Further, in the database device according to the tenth invention, the process definition unit stores the definition information as an action management table, and the process execution unit analyzes the definition information stored in the action management table and performs processing. A command generation unit that generates a necessary command is provided.
[0018]
The database device according to an eleventh aspect is characterized in that the command is an SQL command.
[0019]
The database apparatus according to a twelfth aspect is characterized in that the command is a system call.
[0020]
A database device according to a thirteenth aspect of the invention is a guideline definition for defining and storing data used for a guideline that is a list of candidate data to be referred to in order to set a recommended condition for a search condition input screen in the screen design unit. It has the part.
[0021]
Further, the database device according to the fourteenth invention is characterized in that the guideline definition unit defines at least one of actual data of a search target table and data of an arbitrary table as candidate data.
[0022]
The database apparatus according to the fifteenth aspect is characterized in that the guideline definition unit defines an annotation for candidate data.
[0023]
Further, the database device according to the sixteenth invention is characterized in that the guideline definition unit defines a font of display characters of data.
[0024]
The database device according to the seventeenth invention is characterized in that the guideline definition unit defines a data highlighting method.
[0025]
Further, the database device according to the eighteenth invention is characterized in that the guideline definition unit specifies a condition for further narrowing down candidate data from the defined candidate data.
[0026]
DETAILED DESCRIPTION OF THE INVENTION
Embodiment 1 FIG.
In this embodiment, search condition input screen design and search result display screen design in the screen design unit will be described below.
[0027]
First, the drawings will be described.
FIG. 1 is a system configuration diagram for realizing a database apparatus according to the present invention.
In FIG. 1, 1 is a database device, 2 is a CRT that displays a screen such as a search condition input screen or a search result display screen, and 3 is a search condition input screen design 3a for performing a condition input for searching a database. And a screen design unit including a search result display screen design 3b for designing a display format for displaying a result of searching the database based on the search condition. Reference numeral 4 denotes a search unit that searches a database based on search conditions, 5 is a mouse, 6 is a keyboard, and 7 is a database that stores a plurality of tables.
In the database used in this embodiment, the data structure is represented by using a tree, and each element of the tree is represented by using a node. The node has a hierarchical structure of a top node, an intermediate node, and an end node. The top node is a top node and the end node has no other nodes below it. The node is an intermediate node. A database table or view is associated with the end node on a one-to-one basis. When searching, it is possible to access the corresponding database table by narrowing down the type from the top node to the intermediate node and specifying the end node. Furthermore, the tree includes a shared tree and a user tree, and a tree that can be commonly used by users using the system is called a shared tree. The shared tree is created by the system administrator. On the other hand, what a user personally creates and uses is called a user tree.
[0028]
FIG. 2 is a diagram showing tree information that can be accessed by the user and stored in the database.
FIG. 3 is a diagram showing nodes stored in the tree information selected by the user from the tree information shown in FIG.
In FIG. 3, “component information” indicates a top node, “component information” includes intermediate nodes from “connector / relay / switch” to “peripheral device”, and “IC” as an intermediate node. It shows that there is a terminal node from “bipolar IC (LS · S) to“ MOS memory IC (DRAM) ”.
FIG. 4 is a diagram showing a “screen” menu.
The “screen” menu is a menu displayed when “screen” in the menu bar of FIG. 3 is clicked.
[0029]
FIG. 5 is a diagram showing a screen setting window.
In the screen setting window of FIG. 5, a search condition input screen setting 10, a search result display screen setting 11 and an action list 12 are displayed, and each screen can be moved up, down, left and right using the scroll bar 13. .
The search condition input screen setting 10 includes setting items for switching 10a, order 10b, field name 10c, and recommended condition definition 10d.
The switch 10a sets whether or not to display the field in the search condition input window. When it is selected (when the square 升 is displayed in black), the field is displayed on the search condition input screen displayed when executing the search.
The order 10b sets the order in which the field is displayed in the search condition input window. To set, click in the square frame and enter the order in numbers.
The field name 10c displays a title (hereinafter referred to as a field name) given to the field of the table to be set so as to be easily understood by the user. However, only the fields for which the user has reference rights are displayed. The table to be set is a table for which the search condition input screen is to be set. According to FIG. 5, the table name “KP11P” is the table to be set. The name displayed in the field name 10c is the field name stored in “KP11P”.
The recommended condition definition 10d sets input condition candidates (recommended conditions) to be displayed in a drop-down list when a search condition is input. A plurality of candidates can be designated, and input is performed by separating them with “,” or “_”.
Moreover, the guideline set to the field can be used in the input of recommended conditions. When a field name is clicked, a list menu of candidate data or a window indicating a range of data that can be set is displayed (the list menu and window are shown in FIG. 6). When data is selected from the candidate data list menu, the selected data is added to the recommended condition definition column.
[0030]
Next, the search result display screen setting 11 will be described.
The search result display screen setting 11 includes setting items of switching 11a, order 11b, field name 11c, sort order 11d, elevation 11e, processing designation 11f, and display size 11g.
The switching 11a and the order 11b are set by the same method as the switching 10a and the order 10b described above.
The field name 11c displays the field name of the table to be searched. When the field name is clicked, the field type and size are displayed in a separate window (FIG. 7 shows a display example of the window).
The sort order 11d designates which field has priority for sorting when it is desired to sort and display records in the search result display window. Click the frame of the sort order 11d in descending order of priority. To cancel sorting, click again to cancel.
The elevating / lowering 11e sets the sort type. Clicking on the up / down column switches between "ascending order" and "descending order".
The process specification 11f is specified when data is processed and output when displaying the search result. A format for processing the search result is set in the processing specification frame. Refer to FIG. 8 for the processing designation method.
The display size 11g sets the number of display bytes of the field name. Set the number of display bytes to a value greater than the length of the field name. When a value shorter than the field name is set, the display size is set by the length of the field name. If the actual value of the record obtained by the search is larger than the display size, only the display size is displayed. When confirming the size set in the field name, as described in the field name 110, when the field name is clicked, the size is displayed in another window (FIG. 7).
Since the details of the action list 12 will be described in a later embodiment, the description is omitted here.
[0031]
FIG. 6 is a diagram illustrating an example of guidelines set in each field in the recommended condition input.
FIG. 6A is a diagram illustrating an example of numerical / date-type guidelines. This guideline is, for example, a guideline indicating the range of data that can be set, which is displayed when the field name 10c of the search condition input screen setting 10 in FIG. Yes, the data to be displayed must be preset for each field. Users can refer to the guidelines when setting recommended conditions.
FIG. 6B is a diagram illustrating an example of a guideline for a candidate data list. For example, it is a guideline displayed by clicking “part name” in the field name 10c of FIG. 5 and introduces part of actual data stored in the table “KP11P”. When selecting data from this guideline as a recommended condition for “Part Name”, you can select by selecting the data you want to select and clicking.
[0032]
FIG. 7 is a diagram showing an example of a window displaying field types and sizes.
For example, when the “P / N part number” in FIG. 5 is clicked, the type and size of the set field can be referred as shown in FIG.
FIG. 8 is a diagram illustrating a format for specifying processing.
According to FIG. 8, there are four types of processing designation types: character string addition, calculation processing, amount processing, and date processing. When adding a character string, the search result is substituted into the “$$” or “&&” part. For example, if the search result is assigned to the processing designation of “total $$ pieces”, “total 100 pieces” are processed. As an example of calculation processing, when “0.01” is input to the processing formula “&& × 100”, “0.01 × 100” is displayed, and the search result is displayed as “1.0”. In addition, when the processing designation type is an amount, if “MONEY” is designated in the format, a comma is inserted every three digits and displayed. In the case of a date, if “DATE1” is specified as a format, “/” is inserted between “year”, “month”, and “day”, and if “DATE2” is specified as a format, “year”, “month”, and “day” are changed. It is inserted and displayed between data.
FIG. 9 is a diagram showing a “setting” menu.
The “setting” menu is a menu displayed when “setting” in the menu bar of the screen setting in FIG. 5 is clicked.
FIG. 10 is a flowchart showing a procedure for setting a search condition input window and a search result display window.
[0033]
Next, according to the flowchart of FIG. 10, the setting of the search condition input window and the setting of the search result display window will be described below with reference to FIGS.
First, in order to select a terminal node to be searched, the tree box shown in FIG. 2 is displayed (S1).
The search condition input window can only be set at the end node, and if the user does not have access to the information among the end nodes, the screen setting for that end node cannot be performed. To do. For this reason, the tree displayed in the tree box in FIG. 2 is a tree to which the user has a reference right. Next, a tree to be searched is selected from the displayed tree boxes (S2). In this embodiment, “part information” in the tree box displayed in FIG. 2 is clicked and selected as a search target. When a tree is selected, nodes of the selected tree are displayed on the tree display screen of FIG. Further, a table for screen setting is selected from the tree display window of FIG. 3 (S4). In this embodiment, “MOS digital IC (C-MOS logic)” is clicked and selected from the tree display screen of FIG. Select “MOS Digital IC” in FIG. 3, click “Screen” in the menu bar, and select “Screen Settings” from the “Screen” menu in FIG. 4. The screen setting window in FIG. 5 is displayed. (S6). Then, a search condition input window and a search result display window are set (S7).
[0034]
First, the search condition input screen setting 10 shown in FIG. 5 is set as follows.
First, the switch 10a is clicked to select a field name to be displayed on the search condition input screen when executing the search. According to FIG. 5, all the frames of the switching 10a are black frames, so that “P / N part number”, “product code”, “part name”, “specification”, and “part standard classification 1” are selected. Yes. Further, although not shown in FIG. 5, by moving the scroll bar 13, the “Manufacturer model name”, “DB registration date”, and “Part shape name” under the “Part standard category 1” are selected. To do.
Next, the order 10b to be displayed in the search condition input window is designated. According to FIG. 5, the order “1” is set for the “P / N product number”, the order “2” for the “product code”, the order “3” for the “part name”, and the order “3” for the “specification”. 5 ”and“ part standard category 1 ”, the order“ 4 ”, and although not shown in FIG. 5,“ maker model name ”is the order“ 6 ”, and“ DB registration date ”is the order“ 7 ”. The order “8” is designated for “part shape name”.
Finally, the recommended condition definition 10d is defined. According to FIG. 5, “A, B, C” recommended conditions are defined in “Parts Standard Category 1”. This is a condition for searching for records in which the value of “part standard category 1” is “A”, “B”, or “C”.
The above is the setting content of the search condition input screen setting in the first embodiment.
[0035]
Next, the search result display screen setting 11 of FIG. 5 is set as follows.
First, the switch 11a is clicked to set a field name to be displayed in the search result display window. According to FIG. 5, “P / N part number”, “part name”, “specification”, and “latest order date 1”, which are not shown in FIG. “Manufacturer model name” under “Part standard category 1” is set to be displayed in the search result display window.
Next, the order 11b is set, and the display order of the fields displayed in the search result display window is designated. According to FIG. 5, the “P / N part number” is the order “1”, the “part name” is the order “2”, the “specification” is the order “3”, and not shown in FIG. The order “4” is set for the “maker model name”, and the order “5” is set for the “latest order date 1”.
Next, the sort order 11d is set, and it is designated for which field the sorting is prioritized in the search result display window. According to FIG. 5, “P / N part number” is set as the sort order “1”, “part name” is set as the sort order “2”, and “latest order date 1” is set as the sort order “3”.
Next, the elevating / lowering 11e is set, and the sort type of the sort order set previously is set to be in ascending order or descending order. According to FIG. 5, “P / N part number” is set to “ascending order”, “part name” is set to “ascending order”, and “latest order date 1” is also set to “ascending order”.
Next, the processing designation 11f is set. “DATE1” is designated as the processing designation of “latest order date 1”. This specification is a processing specification for separating the date with a slash (/).
Next, the display size 11g is set. According to FIG. 5, “15” is set for “P / N part number”, “20” is designated for “part name”, and “20” is designated for “specification”. Further, although not shown in FIG. 5, “18” is designated for “maker model name”, and nothing is designated for “latest order date 1”. The reason why the display size is not specified for “latest order date 1” is that the length of the data to be displayed is smaller than the length of the title “latest order date 1”, so that setting is not necessary.
The display size 11g is specified when the data length is longer than the display byte count of the field name as the title.
The above is the setting content of the search result display screen setting in the first embodiment.
[0036]
As described above, after setting the search condition input window and the search result display window, click the “Setting” button in the menu bar of FIG. 5 to display the settings of FIG. “Save end” is selected from the menu to save the setting contents (S8). The storage name is automatically assigned by the system so that the storage is recognized as the search condition input setting and the search result display screen setting for the table name “KP11P”. Furthermore, in order to distinguish users, “user ID” is also used as part of the stored name.
This completes the description of the search condition input screen setting and search result display screen setting.
[0037]
As described above, the search condition input screen setting and the search result display screen setting can be performed for each table prior to the execution of the search and are registered for each table, so that the table search can be designed separately from the execution. Once designed, the same search conditions and the same search result are edited each time a search is executed. Even when the setting is changed, the user can customize the already set contents, so that the setting is easier than the new setting.
[0038]
Embodiment 2. FIG.
In this embodiment, an example in which a search is executed based on the setting contents of the search condition input screen and the search result display screen set in the first embodiment will be described below.
[0039]
First, the drawings will be described.
FIG. 11 is a flowchart showing a procedure for searching a table.
FIG. 12 is a diagram showing a “search” menu.
FIG. 13 is a diagram showing a search condition input screen.
In FIG. 13, reference numeral 14 denotes AND / OR, which specifies whether a relationship with a condition set in another field is an AND condition or an OR condition after setting a search condition for one field. It is a button for. For example, according to FIG. 13, the condition “* 74HC *” is set in the “manufacturer model name”, but after setting the above condition, click is performed in a state where “AND” is displayed in the AND / OR 14. And the search condition for “maker model name” is an AND condition. Reference numeral 15 denotes a NOT button used when searching for data other than those that match the set condition (when set, a black frame appears). For example, the search condition specified for “DB registration date” “> = After setting the condition “1900/01/01”, clicking the NOT button 15 sets the search for data other than “DB registration date” “> = 1900/01/01”. Reference numeral 16 denotes a field name, which displays a field name set to be displayed in the search condition input screen setting. When the field name 16 is clicked, if a guideline is specified, a candidate for input data or a range (reference value) of the input data is displayed on the menu. Reference numeral 17 denotes a search condition, and the search condition for the field name 16 is input. Separate multiple conditions with commas. A plurality of conditions separated by commas are OR conditions, and records that meet any of the conditions are searched. In inputting the search condition, the recommended condition 10d defined in the setting of the search condition input screen described in the first embodiment can be used. To use the recommended condition 10d, clicking the search condition column displays a list menu of recommended conditions (see FIG. 18), and data is selected from the displayed list of recommended conditions. The selected data is added to the search condition 17. The recommended conditions can be used as search conditions as they are, but it is also possible to create and set other conditions by customizing them. Reference numeral 18 denotes storage of setting conditions. When this button is clicked, the search conditions set in the window can be stored. Since the search condition name input window is displayed (see FIG. 19), the user inputs the name from the keyboard 6. 19 is a search condition call. When a search condition to be called is selected from the search condition list 21 and this button is clicked, the set search condition is read and displayed in a window. Reference numeral 20 denotes deletion of a search condition. When this button is clicked, the search condition selected from the search condition list 21 can be deleted. A search condition list 21 displays a list of search condition names stored in the search target table. However, only those saved by the running user are displayed. The search condition list can be used when the user sets the search condition separately from the recommended condition. The recommended condition was set for the field, but the search condition list can be set for the table. It is a condition. Therefore, various conditions can be set and referred to regardless of the field.
FIG. 14 is a diagram showing a search result display screen. Based on the search condition set in FIG. 13, the terminal node “MOS digital IC (C-MOS logic)” of the tree name “part information” is searched. The search result is displayed based on the search result display screen setting set in the first embodiment.
According to FIG. 14, there are 174 records corresponding to the search condition, and there are a total of 4 screens.
[0040]
FIG. 15 is a diagram showing a search result output menu. This menu is displayed when “Output” is selected from the menu bar of FIG.
FIG. 16 is a diagram illustrating a screen for performing settings for outputting the search result to a file.
This screen is displayed when “file output” is selected from the output menu of FIG.
In order to output the search result to a file, “output file name”, “output format”, “output field designation”, and “output record designation” are designated on the screen of FIG.
There are two types of output formats: text format and spreadsheet format. An example in the case of outputting in a spreadsheet format is shown in FIG. In the output field designation, it is selected whether to output all the fields of the search target table or only the fields displayed in the window. Furthermore, in the output record designation, all records corresponding to the search condition are output, or a record to be output is selected from the search result display window, and whether only the record is output is selected.
FIG. 17 is a diagram illustrating a screen for performing settings for outputting the search result to the printer.
This screen is displayed when "Printer output" is selected from the output menu of FIG.
In order to output the search result to the printer, “output printer name”, “output field designation”, and “output record designation” are designated on the screen of FIG.
Note that the settings for “output field designation” and “output record designation” are the same as when the output result is output to the file of FIG. 16 described above.
[0041]
FIG. 18 is a diagram illustrating a screen displaying an example of recommended conditions.
In FIG. 18, “1829 × *”, “* 1219 × 2438”, and “* 900 × 1800 MM” are registered as recommended conditions in the search condition input screen setting. To select a search condition, place the cursor on the condition you want to select from the displayed search conditions and click to select it. Unlike the search condition list, it is unique to the field and is displayed when you click the field name.
[0042]
Next, a procedure for executing a search will be described with reference to the flowchart of FIG.
In the flowchart of FIG. 11, the processes of S1 to S3 are the same as the processes of S1 to S3 of FIG. 10 described in the first embodiment, and the description thereof is omitted in this embodiment.
From the tree display screen of FIG. 3, the terminal node in which the table to be searched is set is selected (S9). In this embodiment, in order to search for “MOS digital IC (C-MOS logic)” which is a terminal node, the terminal node is selected by clicking with the mouse.
Further, “Search” is selected from the menu bar of FIG. 3, and “Search” is selected from the “Search” menu of FIG. 12 displayed. When “execute search” is selected, the tree display window shown in FIG. 3 disappears, and the search condition input window shown in FIG. 13 is displayed (S10).
A method for setting search conditions will be described with reference to FIG. According to FIG. 13, the search conditions are set for “manufacturer model name” and “DB registration date”. First, “maker model name” is clicked, and a wild card (*) is used to set a condition for searching records including “74HC” in the data of the manufacturer model name.
Next, the search condition for “DB registration date” is set, but before that, the AND / OR 14 is clicked, and the connection of the condition for “maker model name” is set. Here, it is confirmed that “AND” is displayed in the AND / OR 14 in order to search records that satisfy both of the search conditions set in the “maker model name” and “DB registration date”. If a record satisfying either one is to be searched, it is confirmed that “OR” is displayed in AND / OR 14 (if AND is displayed, click to change to “OR”).
Then, a search condition is set for “DB registration date”. According to FIG. 13, the condition “DB registration date” is set to “after January 1, 1990” (S11).
After the conditions are set as described above, “Search” in the menu bar is selected, and “Search” is clicked from the displayed “Search” menu (FIG. 12). When “Search” is clicked, records corresponding to the search condition are displayed in order as shown in FIG.
The search results displayed in FIG. 14 are edited according to the setting contents of the search result display screen setting 11 of FIG. 5 set in the first embodiment. For example, since “DATE1” is set in the process designation 11f for “latest order date 1”, editing is performed so that the date is separated by “/”.
[0043]
As described above, according to the first embodiment and the second embodiment, the screen for inputting the search condition to be set when performing the search is set in advance by the search condition input screen design 3a. Fields that are not scheduled to be specified can be prevented from being displayed, and the user can easily set search conditions. In addition, since recommended conditions can be set, search conditions can be set using recommended conditions that have been set in advance without entering new search conditions during search execution, and errors in specified conditions due to input errors can be reduced. be able to.
[0044]
Embodiment 3 FIG.
In this embodiment, a database device that starts the next process based on the information stored in the action management table based on the results of the search in the first and second embodiments will be described below. Give an explanation.
[0045]
First, the drawings will be described.
FIG. 20 is a diagram showing a system configuration of the database apparatus in this embodiment.
In FIG. 20, reference numeral 50 denotes a process definition unit for defining and storing executable processes based on the search result of the search unit 4. The process definition unit 50 includes an interactive definition support unit 50a, and the interactive definition support unit 50a can define a process in an interactive format. An action management table 51 manages definition information defined in the process definition unit 50. A process execution unit 52 analyzes the definition information stored in the action management table 51, and generates a command necessary for the process to be activated next.
The command generation unit 52a generates the command. The other reference numerals in FIG. 20 are the same as those in FIG. 1 described in the first embodiment, and a description thereof will be omitted.
[0046]
FIG. 21 is a diagram illustrating a management tool.
FIG. 22 is a flowchart showing a procedure for defining a process in the action management table.
FIG. 23 is a diagram showing a search type selection screen.
FIG. 24 is a diagram showing a screen for setting a table space name (database name) in action setting.
FIG. 25 is a diagram showing a screen for setting a table name in action setting.
FIG. 26 is a diagram showing a “list” menu. This menu is displayed when “list” in the menu bar of the action management screen in FIG. 24 is clicked.
FIG. 27 is a screen for setting an action title.
FIG. 28 is a diagram showing an “edit” menu. This menu is displayed when “Edit” in the menu bar of the action management screen in FIG. 24 is clicked.
FIG. 29 is a diagram showing a script selection screen.
[0047]
Next, the procedure for setting the definition information in the action management table will be described with reference to the flowchart of FIG.
“Action management” is selected from the management tool shown in FIG. 21, and the “execute” button is clicked (S20, S21). When the action management is selected, the search type selection screen shown in FIG. 23 is displayed (S22). A search method for an action to be defined is selected and clicked from “common item search” and “parameter search” displayed on the search type selection screen shown in FIG. 23 (S23). “Common item search” is selected when an intermediate node is specified and component information is searched from a plurality of tables below the node. “Parameter search” searches for component information from a table corresponding to a node by designating a terminal node.
In this embodiment, since the action to be activated next is set based on the result of searching for “MOS digital IC” which is the terminal node that has been searched in the second embodiment, the search type of FIG. Select “Parameter Search” from the selection screen. When “parameter search” is selected, the action management screen shown in FIG. 24 is displayed (S24). In FIG. 24, the table space name (database name) including the target table for starting the action is selected from the list of table space names displayed on the action management screen. In this embodiment, “PNDB” is selected. When the table space name is selected, the selected “PNDB” and the table space name are displayed on the left side of the table space name as shown in FIG. Further, in order to register the target table for starting the action, the “list” in the menu bar of FIG. 25 is clicked to display the “list” menu in FIG. 26. From the “list” menu, the “table list” is displayed. "Is selected (S25), and a table name is selected. In this embodiment, “KA21M” is selected as the table name from the list of table names shown in FIG. When the table name is selected, “KA21M” is displayed as the table name as shown in FIG. Furthermore, the title name of the action to be set is set. When creating another action based on an already registered action, select “List” in the menu bar of FIG. 27 and select “Action List” from the displayed “List” menu. Select the appropriate action from the displayed action list. Then, the predefined action information can be changed (S26).
[0048]
In the case of newly registering an action, “New” is selected from the edit menu of FIG. 28 displayed when “Edit” in the menu bar of FIG. 27 is selected, and an action is newly registered (S27). . When registering a new action, first set the script. The script is set on the script selection screen shown in FIG. 29 displayed when “new registration” is selected from the “edit” menu. The script indicates an action type. In the database apparatus according to the present invention, there are three scripts. The three scripts are “all field display”, “other database search”, and “command activation”. “Display all fields” is a function for displaying the values of all fields in the searched table.
It should be noted that the record for which all fields are displayed is executed for one record arbitrarily selected by the user from the records displayed on the search result display screen.
In “other database search”, the user arbitrarily selects a record from the screen displaying the search result, and searches other tables using the data of the record as a search condition. The action setting defines the relationship between the field of the search result and the field of the other table to be searched (this relationship is hereinafter referred to as correlation).
“Command activation” defines a command to be executed with the record data of the search result as an argument. For example, the result of searching for “MOS digital IC” in the second embodiment is displayed on the search result display screen of FIG. 14, but the parts catalog is displayed based on the displayed “P / N part number”. be able to.
From the script selection screen shown in FIG. 29, one target script is selected, an action title is input, and then an “execute” button is clicked (S28). Clicking the “Execute” button displays each setting window depending on the type of action. The user sets necessary definition information in the displayed setting window (S29, S30, S31).
[0049]
Next, a detailed setting method will be described below in accordance with the script type set in S28.
First, the “all field display” setting will be described.
FIG. 30 is a flowchart showing the procedure for setting the all-field display.
FIG. 31 is a screen for setting an action execution right.
[0050]
According to the flowchart of FIG. 30, when the script type of “display all fields” is selected in S28 described above, the execution right setting screen of FIG. 31 is displayed. On this screen, set the right to execute, and select “Action” in the menu bar. Click “Execute” from the action menu that appears (the action menu is not shown), and set the action for all field display ( S40).
The execution right is an authority provided for each user in order to protect the database. In this embodiment, it is assumed that the execution right A is given by the execution right A. Execution rights can be set by clicking the execution right frame to be set. In FIG. 31, execution rights A, B, and C indicate that an action can be executed (a black frame indicates that an execution right is set).
The above is the method for setting the action for displaying all fields.
[0051]
Next, a procedure for setting the “search for other database” action will be described.
FIG. 32 is a flowchart showing a procedure for setting an action for searching another database.
FIG. 33 is a diagram showing a screen for defining an action for searching for another database.
FIG. 34 is a diagram showing a screen for defining a table space name and a table name of a database to be searched.
FIG. 35 is a diagram showing a screen for setting a correlation.
FIG. 36 is a diagram showing a screen for setting execution rights.
[0052]
Next, a procedure for setting an action for searching for another database will be described with reference to the flowchart of FIG.
In the “other database search” setting, first, a table to be searched is set (S50). The table is set by clicking the corresponding table space name and table name from the selection window shown in FIG. 34 displayed when the “target table” in FIG. 33 is clicked. In this embodiment, the selection window table space name “PNDB” and the table name “KATAMEIM” in FIG. 34 are clicked. The clicked table space name and table name are displayed as “PNDB.KATAMEIM” as “target table” in FIG.
Next, field correlation is set (S51). The correlation setting window shown in FIG. 35, which is displayed when “correlation setting” in FIG. 33 is clicked, defines the correspondence between the search result field and the field of the table of another database searched using the search result. To do. The setting method is to select the field name displayed in the extraction field list of FIG. 35 and the field name of the search result to be matched with the mouse and click “Set”. A plurality of correlations can be specified, and the setting is repeated for the number of fields to be associated (S52). For example, in this embodiment, “PK_PN” in the extraction-side field list and “P_BUHIN” in the substitution-side field list in FIG. 35 are selected, and “Setting” is clicked to set the correlation. When “Setting” is clicked, the set correlation “PK_PN → P_BUHIN” is displayed as shown in FIG.
Next, the access right to the action is set in the other database search action window. To set the access right, click the execution right setting A to E shown in FIG. When this access right is set, the square frame for setting the execution right in FIG. 36 is changed from white display to black display. After setting the access rights, click “Action” in the menu bar of FIG. 36, select “Execute” from the displayed action menu, and set the other database search actions that have been set up in the table to the table. To do.
The above is the procedure for setting the database search action.
[0053]
Next, a procedure for performing the action setting of “command activation” will be described.
FIG. 37 is a flowchart showing a processing procedure for setting command activation.
FIG. 38 is a diagram showing a screen for setting a script in the action definition.
FIG. 39 is a diagram showing a screen for setting an argument.
[0054]
Next, a procedure for setting a command activation action will be described with reference to the flowchart of FIG.
First, a command script to be activated is input to the script field on the action creation screen of FIG. 38 (S60). In the command script, a command for displaying a file storing image data to be displayed when the action is activated is input. In this embodiment, a command “miff_sh” for displaying a file storing a part catalog which is one of “MOS digital ICs” is designated. Next, an argument is set (S61). The argument setting is made by clicking the “argument setting” in FIG. 38 and displaying the field that is the name of the file in which the image data is stored from the list of field names displayed in the argument setting window of FIG. Select. Since a plurality of fields can be set as arguments, field names are selected in order, and “set” is clicked (S62). In this embodiment, “K_PATH” is selected. After selection, when the “setting” in FIG. 39 is clicked, the set arguments are displayed on the action creation screen in FIG. Next, the access right to the action is set from the action creation screen of FIG. The access right is set in the same manner as the access right for searching other databases described above. In this embodiment, access rights are set for execution rights A, B, and C. After setting the access right, "execute" is selected from the action menu displayed by clicking "action" in the menu bar of FIG. 38, and the action is set in the table (S63).
The above is the action setting method for command activation.
[0055]
Note that the action definition described above must be defined for each table.
Further, the action definition information set as described above is stored in the action management table 51, and the process definition unit 50 manages this action management table. When the action is activated, the process execution unit 52 refers to the action management table, analyzes the definition information of the activated action, generates a necessary command by the process generation unit 52a, and executes the action.
The action management method will be described below.
In order to manage actions, for a table in the database, a table management table (FIG. 40B) that stores the table name and action ID, and an action management table that manages processes derived from the database search results ( FIG. 40 (A)) is provided with the database apparatus according to the present invention. In this database device, when a table is created, an action ID is numbered, and the table name and action ID are registered in the table management table.
The action derived from the search result is registered by the process definition unit 50 in the action management table with an attribute such as an action ID or a data delivery sequence to the action. At this time, it is assumed that the same ID is assigned to actions for the same table.
[0056]
FIG. 40 shows an image of the action management table and the records of the table management table.
The action definition information described above is registered in the action management table of FIG. The action title is set to “acttitle”. The script is set to “script”. “FIELD” is set in the case of all field display, “DBACCESS” in the case of other database search, and “script” in the command input in the script of FIG. 38 in the case of command activation. In this embodiment, “miff_sh” is set. The field correlation that has been set in the other database search is set with an argument in “srcfids” and “dstfids”. As shown in FIG. 41, the correlation of the fields set in this embodiment is set to “srcKids” as “PK_PN” as the extraction side field name and “dstfids” as the substitution side field name “P_BUHIN”. Is set. In the case of command activation, “K_PATH” is set in “srcfids” as shown in FIG. In the case of another database search, the target server name is stored in “machine”, the target database name is stored in “dbname”, and the target table name is stored in “tblname”. Further, the execution right is stored in “reatA” to “reatE”. When the execution right is “1”, the execution right is assumed. When the action is activated, if the activated action is another database search, the SQL statement is automatically generated based on the definition information defined in the action management table and the search result, and the action is executed. To do.
[0057]
For example, when the search result as shown in FIG. 42 is displayed and the search result shown at the top is selected and another database search is started, the command generation unit 52a automatically executes the following SQL statement. Generate. In the action management table, “sfrfids” is set to “fldA, fldB, fldC”, and “dstflds” is set to store “fld3, fld2, fld1”.
select fld1, fld2, fld3,..., from db_1. table_1
where fld3 = 'data1' and fld2 = 123 and fld1 = '1994/12/12'
[0058]
Further, when the activated action is command activation, the command generation unit 52a generates a command for performing a system call such as vfork or system.
For example, if a search result as shown in FIG. 44 is displayed, the top record is selected and a command activation action is activated, the following command is issued. In addition, “MTIFF” is stored in “script” of the action management table, and “fldA” is stored in “srcflds”.
MTIFF tiff_data
[0059]
As described above, by providing the action management table, it is possible to separate the process definition derived from the search result from the database system. If a user ID is provided in the action management table, an action definition for the table can be performed for each user.
[0060]
Embodiment 4 FIG.
In this embodiment, an example in which the action defined in the third embodiment is executed based on the search result performed in the second embodiment will be described below.
There are the following three methods for starting an action.
The first is to select one action to be executed from the action list as shown in FIG. 14, select one record from the records displayed as the search result, and it is in the menu bar. Click “Execute Action”.
Second, one record is selected from the search results as shown in FIG. 14, one action to be executed is selected from the action list, and double-clicked.
Third, one action to be executed is selected from the action list as shown in FIG. 14, one record is selected from the records displayed as search results, and double-clicked.
An action can be activated by the above three methods.
[0061]
First, an example of executing a command activation action will be described with reference to the flowchart of FIG.
From the action list displayed in the search result display window shown in FIG. 14, “catalog display 1” for command activation is selected (S70). It is assumed that “P / N part number” is specified as an argument of “catalog display 1”.
Next, click the record whose NO is “1” from the records displayed as search results, and click “Execute Action” in the menu bar. A catalog of parts with the number “KP41P200H06” is displayed (S71).
[0062]
Next, the action activation of all field display will be described.
Select “Display all fields” from the action list shown in FIG. 14, select a record whose NO is “4” from the records displayed as the search results, and select “Execute action” from the menu bar. When is clicked, a screen as shown in FIG. 47 is displayed. In the screen of FIG. 47, all fields of the selected record are displayed.
[0063]
Next, execution of another database search will be described with reference to the flowchart of FIG.
According to FIG. 48, first, “other database search 1”, which is an action for searching for another database, is selected from the action list of FIG. 14 (S80).
It is assumed that “other database search 1” is the same action as “quality information search” with the action title set in the third embodiment.
Next, from the records displayed as search results, double-click the record to be input as the search condition for other databases (S81).
In the other database search action, a window for inquiring whether to set a search result display screen for displaying a result of the database search to be performed is displayed as shown in FIG. Therefore, in response to the inquiry shown in FIG. 49, the user selects “requires screen setting” and clicks “execute” to set the search condition and the search result display screen. Do.
In the search condition input screen that is displayed, field information of the selected record is input. When changing the displayed search condition, the changed contents are set (S83), the search condition is set (S84), and "search" on the menu bar is clicked to execute the search.
[0064]
As described above, by performing action definition in advance, the user can search by simply selecting a process from the action list without creating a program that executes the action to be activated next from the screen on which the search results are displayed. Based on the result, the process to be started next can be easily executed.
[0065]
Embodiment 5. FIG.
In this embodiment, a method for changing action definition information once defined will be described below.
[0066]
FIG. 50 is a flowchart showing a procedure for changing action activation information.
According to FIG. 50, an action whose activation information is to be changed is selected from the action list window as shown in FIG. 27 (S90). After selecting an action, click “Edit” in the menu bar and select “Change Action” from the edit menu shown in FIG. When “Change Action” is selected, the action creation screen shown in FIG. 33, the action creation screen shown in FIG. 38, and the action creation screen shown in FIG. 31 are displayed corresponding to the script type. The information to be changed is reset (S92).
The resetting method is performed in the same manner as the definition information setting method described in the third embodiment, and the description thereof is omitted in this embodiment.
[0067]
Next, the action deletion will be described.
51, the action to be deleted is selected from the action list of FIG. 27 (S100). Then, “Delete” is selected from the edit menu of FIG. 28 displayed by clicking “Edit” on the menu bar. When “Delete” is selected, a deletion confirmation window as shown in FIG. 51B is displayed (S101). When deleting, the user clicks “Execute” to delete the action (S102).
[0068]
Further, when changing the title of the action, according to the flowchart showing the procedure for changing the title of the action shown in FIG. 52, the action whose title is changed is selected from the action list window shown in FIG. 27 (S110). Then, “Edit” is selected from the menu bar, and “Change Title” is selected from the “Edit” menu shown in FIG. When “Change Title” is selected, the title change screen shown in FIG. 53 is displayed. The changed title is set again, and “Execute” is clicked to change the action title (S112).
[0069]
When setting a default action, an action to be a default is selected from the action list window of FIG. 27 (S120). Then, “default setting” is selected from the editing menu of FIG. 28 displayed by clicking “editing”. When “default setting” is selected, the menu of FIG. 55 is displayed. To set, select “setting” and click. To cancel the setting, click “cancel setting” (S121). Then, a confirmation screen is displayed, and “execute” is clicked to set a default (S122). When “default setting” is selected from the edit menu, a confirmation screen shown in FIG. 56A is displayed. If “cancel setting” is selected, a setting cancellation confirmation screen shown in FIG. 56B is displayed. When the default is set, “*” is displayed in the default setting column of the action list window shown in FIG.
The default setting is for setting an action that can be executed by clicking only “execute action” in the title menu bar without selecting anything from the action list when executing an action. The action list is highlighted for actions that have default settings.
[0070]
Next, action privilege change will be described.
According to the flowchart of the privilege change procedure for the action in FIG. 57, the action for changing the privilege is selected from the action title list displayed on the action management screen in FIG. 27 (S130). Next, “Change privilege” is selected from the edit menu of FIG. 28 displayed by clicking “Edit” in the title bar (S131). When “Change Privilege” is selected, the privilege change screen shown in FIG. 58 is displayed. The changed privilege is set, and “Execute” is clicked to change the access right (S132).
In FIG. 58, a black square in the execution right setting indicates that there is an access right.
[0071]
As described above, even if an action definition has been performed once, it can be changed, so even if a user sets a new action, by changing the action definition information that has already been set, New action definitions can be easily made.
[0072]
Embodiment 6 FIG.
In this embodiment, setting of guidelines will be described.
FIG. 59 is a system configuration diagram for realizing the database apparatus according to the present invention.
In FIG. 59, reference numeral 53 denotes a guideline defining unit for defining and storing candidate data to be displayed by the screen design unit 3. Other symbols are the same as those in FIG.
FIG. 60 is a screen for defining a guideline activated from “table management” of the management tool shown in FIG. If the numeric type / date type (NUMER / DATE) is selected as the data type in the search guideline 56, the guideline as shown in FIG. 6A is displayed when the field name on the screen setting screen is clicked. When “GROUP” is selected as the search guideline 56, the guideline as shown in FIG. 6B is displayed.
[0073]
Although the guideline for the candidate data list in FIG. 6B displays a part of the data in the database to be searched, it takes time to extract the data to be displayed when the database becomes large. In such a case, it is possible to create a database in which only data to be displayed in the guideline is registered, and to design the data in the database.
The setting method is such that, when “MASTER” is selected in the search guideline 56 of FIG. 60 and the MASTER setting 57 is clicked, a table space 58 for the guideline, a table 59, and a set value field 60 are displayed on the MASTER setting screen of FIG. Is specified. The candidate data displayed by clicking the “part name” in the field name 10c in FIG. 5 is only the seven types displayed in FIG. 6B, and the actual number of data is 100,000. . If you create a database for guidelines and set it to refer to the seven types of data registered there, the time to extract the data can be greatly reduced.
[0074]
If the comment field 61 is designated on the MASTER setting screen of FIG. 61, the candidate data can be annotated. The comment field 61 is created in the same table as that storing the guideline data. FIG. 62 is a diagram illustrating an example of a guideline for a candidate data list with annotations. For example, it is a guideline displayed by clicking “part standard category 1” in the field name 10c of FIG. 5, and the guideline database data corresponding to the recommended condition of “part standard category 1” is displayed. The setting value 67 in FIG. 62 displays candidate data for recommended conditions, and the comment 68 displays an annotation corresponding to the candidate data. As a recommended condition, when selecting data from these guidelines, you can select by selecting the data or annotation you want to select and clicking.
[0075]
63 is a character attribute setting screen displayed when the character attribute setting 63 in the MASTER setting screen of FIG. 70 is clicked. In the font 65 of the character attribute setting screen, the font of data to be displayed in the guideline can be designated. When the character attribute setting screen is displayed, the data in the table designated on the MASTER setting screen is displayed in the data 64. From here, select the data whose font you want to change, and press the button next to the font 65 to select the font you want to set from the menu that appears. There are four types of fonts: “Mincho”, “Gothic”, “Bold”, and “Italic”. FIG. 64 is a guideline displayed by clicking the “part standard category 1” in the field name 10c of FIG. 5 after changing the font of the data “R” to Gothic on the character attribute setting screen shown in FIG.
[0076]
In addition, in the character modification 66 on the character attribute setting screen in FIG. 63, “underline”, “overline”, and “erasing line” to be added to the data displayed in the guideline can be designated. Select data to be character-modified from the data 64, and click one of the buttons "Underline", "Overline", and "Straight Line". If you want to change the line type or type, select what you want to display from the line type or type menu to the right of the clicked button. FIG. 65 is displayed by clicking “Part Standard Category 1” in the field name 10c of FIG. 5 when “Straight line” is set in the character modification of the data “G” on the character attribute setting screen shown in FIG. It is a guideline.
[0077]
The search condition 62 on the MASTER setting screen in FIG. 61 specifies the narrowing condition when it is desired to further narrow the data from the data in the guideline database and display it in the guideline. The condition specification format is the same as the search condition input on the search condition input screen described above. By specifying the narrowing-down conditions, it is possible to devise measures such as preventing data that the user does not want to set as recommended conditions from being displayed on the guideline.
[0078]
【The invention's effect】
As described above, according to the first invention, the screen design unit arbitrarily designs the search condition input screen for inputting the conditions for searching the data in the database. For this reason, the screen for inputting search conditions is fixed in the conventional database search tool, but by using the database device of the present invention, it can be designed not to display information unnecessary for the user. There is an effect of easy input.
[0079]
Further, according to the second invention, the screen design unit further arbitrarily designs a search result display screen on which the search result is displayed. For this reason, it is possible to design the search result display screen for inputting the search conditions and designating the display order, the field to be displayed, etc. separately, which makes it easier for the user to design and reduces setting errors. There is.
[0080]
According to the third invention, the screen setting unit selects an arbitrary field. For this reason, the user can easily specify necessary fields when designing the search condition input screen and designing the search result display screen, and unnecessary fields are not displayed. Therefore, there is an effect that design errors due to input errors can be reduced.
[0081]
According to the fourth invention, the display order of the field selected by the screen design unit is designated. Therefore, the user can easily specify the display order when designing the search condition input screen and designing the search result display screen. In addition, since the order of the fields displayed on the search condition input screen and the order of the fields specified on the search result display screen can be specified in different orders, there is an effect that a convenient database search environment can be provided by the user.
[0082]
According to the fifth aspect of the invention, the screen design unit sets search conditions in advance. For this reason, if a frequently used search condition is set in advance for the field selected for the search condition input screen, the user can easily specify a condition rather than specifying a new condition. is there. Moreover, if a new condition is specified by customizing it based on a preset condition, it is possible to easily specify the condition and to reduce mistakes in specifying the condition.
[0083]
According to the sixth aspect, the screen design unit designates a display format. For this reason, it is possible to easily specify a display format such as comma editing, ¥ editing, and expansion of the display frame for the field selected for the search result display screen, making it easy to see the search result and convenience for the user. There is an effect that it is possible to provide a good database search environment.
[0084]
According to the seventh invention, the process definition unit stores in advance the process that can be executed based on the search result, and the process execution unit executes the process defined in the process definition unit. For this reason, the user has confirmed the search result in the past, and the user has designated again the process to be started next based on the result, but the next start is performed based on the search result by using this database device. If the process is known in advance, the process to be started next can be defined in advance and the next process can be automatically started after the search process is completed. There is no need to specify it again, and it is possible to provide a database search environment that is convenient for the user.
[0085]
According to the eighth invention, the process definition unit can define a plurality of processes, and the process execution unit selects and executes at least one process from the plurality of processes. Therefore, even when there are a plurality of processes to be activated next depending on the pattern of the search result, there is an effect that can be easily handled by using the database device according to the present invention.
[0086]
According to the ninth invention, the process definition in the seventh invention is defined by using the interactive definition support unit provided in the process definition unit. For this reason, it is possible to easily define the process to be started next, and it is possible to easily define the process even for the first-time user.
[0087]
According to the tenth invention, the process to be started next after the definition in the seventh to ninth inventions is stored as an action management table, and the action correction unit provided in the process execution unit performs the action management. The definition information stored in the table is analyzed, and necessary commands are generated. Therefore, when defining the process to be started next by the user, it is possible to easily define the process to be started next without considering the interface between the database device and the system environment surrounding the database device. There is an effect that the database apparatus according to the present invention can be used without requiring special knowledge.
[0088]
According to the eleventh aspect, the command in the tenth aspect is an SQL command. Therefore, the database apparatus according to the present invention can be used in the existing database and the system environment surrounding the database, and when a new database apparatus is introduced, there is an effect that can be realized at low cost.
[0089]
According to a twelfth aspect, the command is a system call. For this reason, the same effect as the eleventh can be obtained.
[0090]
In the thirteenth invention, by displaying candidate data used as a search condition, the user can easily obtain data that can be specified as a condition without knowing the data in the database. It is possible to easily specify the conditions in, and to further reduce specification mistakes.
[0091]
In the fourteenth invention, there is an effect that a guideline with better operability can be provided by selecting candidate data from an arbitrary table.
[0092]
In the fifteenth aspect, by adding annotations to the candidate data, the user can know the meaning of the symbolized value registered in the database in the database search operation. There is an effect that it is possible to save the trouble of separately checking.
[0093]
In the sixteenth aspect of the invention, if the guideline data is classified according to the font, the user can also visually classify the data, which is easy to select.
[0094]
In the seventeenth invention, data can be classified by highlighting the data, and the same effect as in the sixteenth invention can be obtained.
[0095]
In the eighteenth aspect of the invention, a condition for narrowing down candidate data is provided, and data that should not be selected is excluded from the candidate data, so that the user can easily select more appropriate data.
[Brief description of the drawings]
FIG. 1 is a system configuration diagram for realizing a database apparatus according to the present invention.
FIG. 2 is a diagram showing a screen displaying tree information accessible by a user in the first embodiment.
FIG. 3 is a diagram illustrating nodes stored in tree information in the first embodiment.
FIG. 4 is a diagram showing a “screen” menu.
FIG. 5 is a diagram showing a screen setting window in the first embodiment.
6 is a diagram showing a guideline for a field in a recommended condition input in the first embodiment.
7 is a diagram showing field guidelines in Embodiment 1. FIG.
FIG. 8 is a diagram showing a processing designation format in the first embodiment.
FIG. 9 is a diagram showing a “setting” menu in the first embodiment.
FIG. 10 is a flowchart showing a procedure for setting a search condition input window and a search result display window in the first embodiment.
FIG. 11 is a diagram showing a procedure for executing a search in the second embodiment.
FIG. 12 is a diagram showing a search menu.
FIG. 13 is a diagram showing a search condition input screen in the second embodiment.
14 is a diagram showing a search result display screen in the second embodiment. FIG.
FIG. 15 is a diagram showing an output menu in the second embodiment.
FIG. 16 is a diagram showing a search result file output screen in the second embodiment.
FIG. 17 is a diagram illustrating a screen for designating output of a search result to a printer in the second embodiment.
FIG. 18 is a diagram showing an example in which contents set as recommended conditions on a search condition input screen in the second embodiment are displayed.
FIG. 19 is a diagram showing a screen for storing search conditions set in the second embodiment.
FIG. 20 is a system configuration diagram showing an example of a database apparatus according to the present invention.
FIG. 21 is a diagram showing a management tool in the third embodiment.
FIG. 22 is a flowchart showing a procedure for defining an action in the third embodiment.
FIG. 23 is a diagram showing a search type selection screen in the third embodiment.
FIG. 24 is a diagram showing a screen for setting a table space name in action setting in the third embodiment.
FIG. 25 is a diagram showing a screen for setting a table name in action setting in the third embodiment.
FIG. 26 is a diagram showing a “list” menu in the third embodiment.
FIG. 27 is a diagram showing a screen for specifying an action title on the action management screen in the third embodiment.
FIG. 28 is a diagram illustrating an “edit” menu according to the third embodiment.
FIG. 29 is a diagram showing a script selection screen in the third embodiment.
FIG. 30 is a flowchart showing a setting procedure for displaying all fields in the third embodiment.
FIG. 31 is a diagram showing a screen for setting execution rights on the action creation screen in the third embodiment.
FIG. 32 is a flowchart showing a procedure for performing an action definition of another database search in the third embodiment.
FIG. 33 is a diagram showing a screen for defining an action for searching for another database in the third embodiment.
FIG. 34 is a table showing a list of table space names and a list of table names of a database to be searched in the third embodiment.
FIG. 35 is a diagram showing a screen on which a correlation field is set and a take-out field list and a substitution field list are displayed in the third embodiment.
FIG. 36 is a diagram showing a screen for setting an execution right on the action creation screen in the third embodiment.
FIG. 37 is a flowchart showing a procedure for defining a command activation action in the third embodiment.
38 is a diagram showing a screen for setting a script on the action creation screen in the third embodiment. FIG.
FIG. 39 is a diagram showing a screen for setting an argument on the action creation screen in the third embodiment.
FIG. 40 is a diagram showing an image of an action management table in the third embodiment.
FIG. 41 is a diagram showing data in an action management table for other database search in the third embodiment.
FIG. 42 is a diagram illustrating a search result in which the action of FIG. 41 is defined.
FIG. 43 is a diagram showing data in the action management table storing the definition of the command activation action in the third embodiment.
44 is a diagram showing a search result in which the action of FIG. 43 is defined. FIG.
FIG. 45 is a diagram illustrating a procedure of executing a command activation action in the fourth embodiment.
FIG. 46 is a diagram showing an example of a catalog displayed on the screen as a result of command activation in the fourth embodiment.
FIG. 47 is a diagram illustrating a result of activation of an action for displaying all fields in the fourth embodiment.
FIG. 48 is a flowchart showing a procedure for starting another database search action in the fourth embodiment.
49 is a diagram showing screen setting selection displayed when an action of searching for another database is executed in Embodiment 4. FIG.
FIG. 50 is a flowchart showing a procedure for changing action activation information in the fifth embodiment.
FIG. 51 is a flowchart showing a procedure for deleting an action in the fifth embodiment.
FIG. 52 is a flowchart showing a procedure for changing the title of an action in the fifth embodiment.
53 is a diagram showing a screen for performing a title change in Embodiment 5. FIG.
FIG. 54 is a flowchart showing a procedure for setting a default action in the fifth embodiment.
FIG. 55 is a diagram showing a setting menu.
FIG. 56 is a diagram showing a default action setting screen in the fifth embodiment.
FIG. 57 is a flowchart showing a procedure for changing privilege of an action in the fifth embodiment.
FIG. 58 is a diagram illustrating a screen for performing privilege change in the fifth embodiment.
FIG. 59 is a system configuration diagram for realizing the database device according to the present invention.
60 is a diagram showing a screen for defining guidelines in the sixth embodiment. FIG.
61 is a diagram showing a MASTER setting screen in the sixth embodiment. FIG.
62 is a diagram showing an example of an annotated candidate data list guideline in Embodiment 6. FIG.
FIG. 63 is a diagram showing a character attribute setting screen in the sixth embodiment.
FIG. 64 is a diagram showing guidelines displayed in the sixth embodiment.
FIG. 65 is a diagram showing guidelines displayed in the sixth embodiment.
66 is a diagram showing a screen for inputting search conditions in Conventional Example 1. FIG.
67 is a diagram showing an example in which search results are displayed on the screen in Conventional Example 1. FIG.
FIG. 68 is a diagram showing a screen for selecting a file to be inquired in Conventional Example 1;
FIG. 69 is a diagram showing a screen for defining an inquiry in Conventional Example 1;
FIG. 70 is a view showing a result of executing an inquiry in Conventional Example 1 on a screen.
71 is a diagram showing a selection query in Conventional Example 2. FIG.
FIG. 72 is a diagram for setting extraction conditions in Conventional Example 2;
FIG. 73 is a system configuration diagram of a database apparatus in Conventional Example 4;
FIG. 74 is a diagram illustrating a flow of determining a result of a search in a conventional example and starting the next process.
[Explanation of symbols]
1 database device, 2 CRT, 3 screen design unit, 3a search condition input screen design, 3b search result display screen design, 4 search unit, 5 mouse, 6 keyboard, 7 database, 10 search condition input screen setting, 10a switching, 10b Order, 10c Field name, 10d Recommended condition definition, 11 Search result display screen setting, 11a switching, 11b Order, 11c Field name, 11d Sort order, 11e Elevation, 11f Processing designation, 11g Display size, 12 Action list, 13 Scroll bar , 14 AND / OR, 15 NOT, 16 field name, 17 search condition, 18 save setting condition, 19 search condition call, 20 search condition deletion, 21 search condition list, 50 process definition part, 50a interactive definition support part, 51 action management table, 52 process execution unit, 52a frame De generation unit, 53 guidelines defining unit, 54 settings list, 55 select field names, 56 search for guidelines, 58 table space, 59 tables, 60 set value field, 61 comments field, 62 search criteria, 63 character attribute settings.

Claims (4)

(a)データを記憶するデータベース
(b)上記データベースのデータを検索する検索部
(c)上記検索部の検索結果に基づいて、実行可能な処理を利用者に予め定義させ、利用者が定義した処理を記憶する処理定義部
(d)上記処理定義部により記憶された処理を実行する処理実行部
を備えたデータベース装置であって、
上記処理定義部は、コマンドスクリプトと該コマンドスクリプトの引数として設定するフィールドのフィールド名との組み合わせからなる定義情報をアクション管理表として記憶し、上記処理実行部は、アクション管理表に記憶された定義情報を解析して、定義情報に記憶されたコマンドスクリプトと検索結果のレコードのフィールドのうち定義情報に引数として設定されたフィールドの値とを用いて処理に必要なコマンドを生成するコマンド生成部を備えたことを特徴とするデータベース装置。
(A) a database for storing data,
(B) a search unit for searching the data of the database,
(C) Based on the search result of the search unit, a process definition unit that allows a user to predefine an executable process and stores the process defined by the user;
(D) a process execution unit that executes the process stored by the process definition unit ;
A database device comprising:
The process definition unit stores definition information including a combination of a command script and a field name of a field set as an argument of the command script as an action management table, and the process execution unit includes a definition stored in the action management table. A command generation unit that analyzes information and generates a command required for processing using the command script stored in the definition information and the field value set as an argument in the definition information among the fields of the search result record A database apparatus characterized by comprising.
上記処理定義部は、複数の処理を記憶するとともに、上記処理実行部は、上記複数の処理の中から少なくともひとつの処理を利用者に選択させて実行することを特徴とする請求項1記載のデータベース装置。The said process definition part memorize | stores a some process, and the said process execution part makes a user select at least 1 process from the said some process, and performs it, The process of Claim 1 characterized by the above-mentioned. Database device. 上記処理定義部は、対話型インタフェースを用いて利用者に処理を定義させる対話型定義支援部を備えたことを特徴とする請求項1記載のデータベース装置。The database apparatus according to claim 1, wherein the process definition unit includes an interactive definition support unit that allows a user to define a process using an interactive interface. 上記コマンドは、システムコールであることを特徴とする請求項記載のデータベース装置。It said command database apparatus according to claim 1, characterized in that it is a system call.
JP32472195A 1994-12-16 1995-12-13 Database device Expired - Fee Related JP3606484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32472195A JP3606484B2 (en) 1994-12-16 1995-12-13 Database device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-313242 1994-12-16
JP31324294 1994-12-16
JP32472195A JP3606484B2 (en) 1994-12-16 1995-12-13 Database device

Publications (2)

Publication Number Publication Date
JPH08241337A JPH08241337A (en) 1996-09-17
JP3606484B2 true JP3606484B2 (en) 2005-01-05

Family

ID=26567494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32472195A Expired - Fee Related JP3606484B2 (en) 1994-12-16 1995-12-13 Database device

Country Status (1)

Country Link
JP (1) JP3606484B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000099530A (en) * 1998-09-22 2000-04-07 Nri & Ncc Co Ltd Information retrieval/output device and method, and recording medium
US6859288B1 (en) * 1999-04-28 2005-02-22 General Electric Company Method and apparatus for requesting and displaying worklist data from remotely located device
JP2001229189A (en) * 2000-02-15 2001-08-24 Canon Inc System and method for providing component information and recording medium
JP2002117041A (en) * 2000-10-10 2002-04-19 Nec Corp Database inquiring system
JP2002132794A (en) * 2000-10-23 2002-05-10 Ntt Comware Corp Method and system for retrieving database and computer readable recording medium with retrieval program recorded thereon
JP3878518B2 (en) * 2002-07-08 2007-02-07 松下電器産業株式会社 Data retrieval device
JP2005092506A (en) * 2003-09-17 2005-04-07 Dainippon Printing Co Ltd Database system, server, program, and recording media
KR100558952B1 (en) * 2005-05-12 2006-03-10 김길웅 Method for automation of software manufacturing process based on graphic user interface design, and computer readable medium having thereon computer executable instruction for performing the same
JP4751701B2 (en) * 2005-11-11 2011-08-17 富士通株式会社 Parts search device and parts search program
JP2010282298A (en) * 2009-06-02 2010-12-16 Mitsubishi Electric Corp System, method and program for retrieving database

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2842487B2 (en) * 1991-12-13 1999-01-06 三菱電機株式会社 Data editing method
JP3167412B2 (en) * 1992-04-28 2001-05-21 富士通株式会社 Database search processor
JPH0668157A (en) * 1992-05-04 1994-03-11 Internatl Business Mach Corp <Ibm> Apparatus and method for displaying information in database
JP3223645B2 (en) * 1992-06-15 2001-10-29 富士ゼロックス株式会社 Database access method and apparatus
JPH0635915A (en) * 1992-07-21 1994-02-10 Hitachi Ltd Document managing system

Also Published As

Publication number Publication date
JPH08241337A (en) 1996-09-17

Similar Documents

Publication Publication Date Title
US6594669B2 (en) Method for querying a database in which a query statement is issued to a database management system for which data types can be defined
US7788257B2 (en) Easy-to-use data report specification
US5301313A (en) Manipulating data in a relational data base having operational manipulations defined in an input table and displayed results in an output table with a line displayed designating direction of data flow
US7519585B2 (en) Selection context filtering
US7231396B2 (en) Data abstraction layer for a database
US9465787B2 (en) Electronic mathematical model builder
JP2732552B2 (en) How to generate and display search queries and search results
JP4356847B2 (en) Field definition information generation method, line and field definition information generation device
US20050091206A1 (en) Method and system for handling data available in multidimensional databases using a spreadsheet
JPH08241336A (en) Apparatus and method for retrieval
US20060253466A1 (en) Data Mapping Editor Graphical User Interface
EP0697667A1 (en) Method and apparatus for displaying structures and relationships of a relational database
KR100311454B1 (en) Conversion method and apparatus of bill of parts of a printed circuit board
US20020062477A1 (en) Program specification generating system
JP3606484B2 (en) Database device
CN102067117A (en) Method for displaying and operating table
US11295062B1 (en) User configurable electronic medical records browser
US20090228678A1 (en) Mapping definition creation system and mapping definition creation program
EP1256900A1 (en) Database entry system and method employing optical character recognition
JPH1097417A (en) Program assembling device and storage medium
JP2002366401A (en) Integral data mart structure, and operation supporting system
JP6369766B1 (en) Schedule form output method and form output program
JP3071703B2 (en) Table creation apparatus and method
JP2008262265A (en) Design method using cell concept, drawing creation device, program and recording medium
JP4446715B2 (en) Document search device, document search method, and document search program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040629

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040826

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040928

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041001

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20071015

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081015

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091015

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091015

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101015

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111015

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121015

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131015

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees