JPH04559A - Data retrieving system - Google Patents
Data retrieving systemInfo
- Publication number
- JPH04559A JPH04559A JP2101058A JP10105890A JPH04559A JP H04559 A JPH04559 A JP H04559A JP 2101058 A JP2101058 A JP 2101058A JP 10105890 A JP10105890 A JP 10105890A JP H04559 A JPH04559 A JP H04559A
- Authority
- JP
- Japan
- Prior art keywords
- data
- index
- code
- registered
- digits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明は、データファイルに記憶された登録データを外
部から入力された索引データで検索するデータ検索方式
に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a data search method for searching registered data stored in a data file using index data input from the outside.
(従来の技術)
例えば、図書館に収納されて(・る各図書に14一般に
、大分類、小分類等の分類番号が付されてデータファイ
ルに登録されている。そして、利用者は大分類、小分類
を指定して目標とする図書を検索する。また、図書館以
外にも、百貨店等においては膨大な数の顧客名簿が保管
さゎ、それぞれ各種各様に分類されてデータファイルに
登録されている。そして、目標とする分類に属する顧客
を検索して関係するダイレクトメールを発送する。(Prior art) For example, each book stored in a library is registered in a data file with classification numbers such as major classification and minor classification. Search for the target book by specifying a subcategory.In addition to libraries, department stores and other places keep a huge number of customer lists, each of which is classified into various categories and registered in data files. Then, search for customers belonging to the target category and send out related direct mail.
このようなデータファイルに記憶される各登録データは
、第6図に示すように、索引データ部とデータ部とで構
成されている。索引データ部には、例えば大分類を示す
92桁の大索引コードと例えば小分類を示すI12の小
索引コードとで構成される索引データが記憶されている
。また、データ部には、各小索引コードにて指定される
分類に属する各図書の図書基、著者2発行社や該当分類
に属する各顧客の顧客名、該当顧客に対する各種情報等
からなる実データが記憶されている。Each registered data stored in such a data file is composed of an index data section and a data section, as shown in FIG. The index data section stores index data composed of, for example, a 92-digit large index code indicating a major category and a small index code of, for example, I12 indicating a small category. In addition, the data section contains actual data consisting of the book base of each book belonging to the classification specified by each sub-index code, the author/publisher, the customer name of each customer belonging to the relevant classification, and various information regarding the relevant customer. is memorized.
したがって、この登録データを検索する場合には、多数
の登録データが記憶されたデータファイルを大索引コー
ドと小索引コードとからなる(j2++N2)桁の索引
データで検索すれば、目標とする実データを含む登録デ
ータが読出される。Therefore, when searching for this registered data, if you search a data file that stores a large number of registered data using (j2+++N2) digit index data consisting of a large index code and a small index code, you can find the target actual data. Registration data including .
しかしながら、このようなデータ検索方式においてもま
だ改良すべき次のような課題があった。However, even in such a data search method, there are still problems to be improved as described below.
すなわち、コンピュータ等で構成された検索システムに
おいては、検索に使用する検索データの桁数には、例え
ば16ビツト構成、32ビツト構成等のようにコンピュ
ータの処理能力によって、一定の制限が存在する場合が
ある。しかし、データファイルに記憶される登録データ
数が増大すると、能率的に必要とする実データのみを読
出すために、小索引コードの桁数を増大してさらに詳し
く分類することか切望されている。In other words, in a search system made up of computers, etc., there are certain limits to the number of digits of search data used for searches depending on the processing power of the computer, such as 16-bit configuration, 32-bit configuration, etc. There is. However, as the number of registered data stored in a data file increases, there is a strong desire to increase the number of digits in the small index code and classify it in more detail in order to read only the actual data that is needed efficiently. .
しかしながら、前述したように、大索引コードと小索引
コードとの合計桁数(jJ+−12)には一定の制限が
存在するので、より詳しく分類して検索できない。よっ
て、−旦従来方式で検索して得られた多数の登録データ
を利用者が手作業でさらに詳細に分類して、最終的に必
要な登録データを仕分ける必要があった。However, as described above, there is a certain limit on the total number of digits (jJ+-12) of the major index code and the minor index code, so it is not possible to perform a more detailed classification and search. Therefore, it is necessary for the user to manually classify in more detail a large number of registered data obtained by searching using the conventional method, and finally sort out the necessary registered data.
(発明が解決しようとする課題)
このように、従来のデータ検索方式においては、大索引
コードと小索引コードとからなる索引データの桁数に一
定の制限が存在するので、データファイルに記録された
各登録データをより詳細に分類して検索できない問題が
あった。(Problem to be Solved by the Invention) As described above, in the conventional data search method, there is a certain limit on the number of digits of the index data consisting of the large index code and the small index code, so the data cannot be recorded in the data file. There was a problem that it was not possible to classify and search each registered data in more detail.
本発明はこのような事情に鑑みてなされたものであり、
小索引コードをこの小索引コードより少ない桁数を有す
る代替コードに置換えて、その不足分に相当する桁数は
代替コードに該当する各登録データが検索された後に該
当する各登録データが小索引コードに対応するか否かを
順番に調べることによって、たとえ索引データの桁数が
制限桁数を越える場合であっても、入力された索引デー
タに一義的に対応する登録データを正確に検索できるデ
ータ検索方式を提供することを目的とする。The present invention was made in view of these circumstances, and
Replace the minor index code with an alternative code that has fewer digits than this minor index code, and after each registered data corresponding to the alternative code is searched for the missing number of digits, each corresponding registered data will be changed to the minor index. By sequentially checking whether the code corresponds to the code, even if the number of digits in the index data exceeds the limit, it is possible to accurately search for registered data that uniquely corresponds to the input index data. The purpose is to provide a data search method.
[発明の構成コ
(課題を解決するための手段)
上記課題を解消するために本発明は、大索引コードと小
索引コードとからなる索引データおよび実データとで形
成された複数の登録データが記憶されたデータファイル
を、外部から入力された索引データで検索して、この索
引データに一義的に対応する登録データを読出すデータ
検索方式において、
データファイル内の各登録データ毎に付され、同一大索
引コード内において各小索引コードの出現順序を示すこ
の小索引コードより少ない桁数で形成された複数の代替
コードと、索引データ入力に応動して、この索引データ
に含まれる大索引コードでデータファイルを検索する大
索引コード検索手段と、この大索引コード検索手段にて
検索された各登録データを順次増加する代替コードでも
って順次検索する代替コード検索手段と、この代替コー
ド検索手段にて順次検索される各登録データの小索引コ
ードと索引データの小索引コードとを比較する比較手段
と、この比較手段にて両手索引コードが一致する登録デ
ータを索引データに一義的に対応する登録データと判断
する判断手段とを備えたものである。[Configuration of the Invention (Means for Solving the Problems) In order to solve the above problems, the present invention provides a system in which a plurality of registered data formed of index data consisting of a large index code and a small index code and actual data is In a data search method that searches a stored data file using index data input from the outside and reads registered data that uniquely corresponds to this index data, A plurality of alternative codes formed with fewer digits than this minor index code indicating the order of appearance of each minor index code within the same major index code, and a major index code included in this index data in response to index data input. a large index code search means for searching data files using the large index code search means; an alternative code search means for sequentially searching each registered data searched by the large index code search means using sequentially increasing alternative codes; a comparison means for comparing the small index code of each registered data sequentially searched with the small index code of the index data; and a comparison means for comparing the small index code of each registered data with the small index code of the index data, and a registration data that uniquely corresponds to the index data by this comparison means. It is equipped with data and a judgment means for making a judgment.
(作 用)
このように構成されたデータ検索方式であれば、データ
ファイル内の各登録データには、索引データを構成する
大索引コードと小索引コードの他に同一大索引コード内
で出現順序を示す代替コ−ドが記憶されている。(Function) With the data search method configured in this way, each registered data in the data file has the order of appearance within the same large index code, in addition to the large index code and small index code that make up the index data. An alternative code indicating the
そして、外部から大索引コードと小索引コードとからな
る索引データが入力すると、先ず、大索引コードのみで
データファイルが検索される。そして、該当大索引コー
ドに対応する各登録データが検索されると、次に、代替
コードを順次増加しながら、この代替コードでもって、
先に検索された各登録データを順次検索していく。そし
て、検索された登録データの小索引コードと入力された
索引データの小索引コードが一致すれば、該当登録デー
タが入力された索引データに一義的に対応することにな
る。Then, when index data consisting of a large index code and a small index code is input from the outside, the data file is first searched using only the large index code. Then, when each registered data corresponding to the corresponding large index code is searched, the number of alternative codes is sequentially increased, and with this alternative code,
Each of the previously searched registered data items is sequentially searched. If the sub-index code of the searched registration data and the sub-index code of the input index data match, the corresponding registration data uniquely corresponds to the input index data.
したがって、実際に検索する桁数は大索引コードと代替
コードとを加算した桁数のみでよいので、小索引コード
の桁数を増加することによって、実質的に索引データの
桁数を制限以上に増大できる。Therefore, the actual number of digits to be searched is only the sum of the major index code and the alternative code, so by increasing the number of digits in the minor index code, you can effectively increase the number of digits in the index data beyond the limit. Can be increased.
(実施例) 以下本発明の一実施例を図面を用いて説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.
第1図は実施例のデータ検索方式におけるデータファイ
ルの構成を示す図である。このデータファイル1内には
各行に登録データ2が記憶されている。各登録データ2
は索引データ部3とデータ部4とで構成されている。さ
らに、索引データ部3は、91桁を有する大索引コード
Dと93桁を有する代替コードPとで構成され、データ
部4は92桁を有する小索引コードdと桁数が制限され
ていない実データとで構成されている。FIG. 1 is a diagram showing the structure of a data file in the data search method of the embodiment. In this data file 1, registered data 2 is stored in each row. Each registered data 2
is composed of an index data section 3 and a data section 4. Further, the index data section 3 is composed of a large index code D having 91 digits and an alternative code P having 93 digits, and the data section 4 consists of a small index code d having 92 digits and an actual index code D having no limit on the number of digits. It consists of data.
前記代替コードPの桁数g3は小索引コードdの桁数1
2より小さく設定されている。そして、この代替コード
dは同一大索引コードD内における小索引コードdと実
データとかななるデータ部4の出現順序を示す番号で構
成されている。The number of digits g3 of the alternative code P is the number of digits 1 of the small index code d.
It is set smaller than 2. This alternative code d is composed of a number indicating the appearance order of the data section 4 that is different from the small index code d and the actual data within the same large index code D.
そして、外部から入力される索引データ5は第2図に示
すように91桁を有する大索引コードDと112桁を有
する小索引コードdとの合計し桁で構成されている。し
たがって、L桁を有する1個の索引データ5に対して1
個の実データを含む登録データ2が一義的に定義されて
いる。As shown in FIG. 2, the index data 5 inputted from the outside consists of a large index code D having 91 digits and a small index code d having 112 digits. Therefore, for one index data 5 having L digits, 1
Registered data 2 including actual data is uniquely defined.
そして、外部から第2図に示すし桁の索引データ5が入
力すると、第3図の流れ図に従って、データファイル1
に対する検索処理を実行する。Then, when the index data 5 of the column shown in FIG. 2 is inputted from the outside, the data file 1 is inputted according to the flow chart of FIG.
Execute search processing for .
流れれ図が開始されると、P(プログラムステップ)1
にて、入力されたし桁の索引データ5を、第2図に示す
ように、大索引コードDと小索引コードdとに分割する
。P2にて分割された大索引コードDでもってデータフ
ァイル1を検索する。When the flowchart starts, P (program step) 1
At this point, the inputted index data 5 is divided into a large index code D and a small index code d, as shown in FIG. Data file 1 is searched using the large index code D divided at P2.
P3にて該当する大索引コードDが検索されると、次に
検索すべき代替コードPを1に初期化する。When the corresponding major index code D is retrieved at P3, the alternative code P to be retrieved next is initialized to 1.
すなわち、同一大索引コードD内の各登録データ2の読
出行(出現番号)を先頭行に設定する。そして、P5に
て、同一大索引コードD内の代替コードPの示す出現番
号に属する行の登録データ2を読出す。すなわち、大索
引コードDと代替コードPとを加算した実索引コード(
D+P)でもってデータファイル1を検索する。That is, the read line (appearance number) of each registered data 2 within the same large index code D is set to the first line. Then, at P5, the registered data 2 of the row belonging to the appearance number indicated by the alternative code P within the same large index code D is read out. In other words, the actual index code (which is the sum of the major index code D and the alternative code P)
D+P) to search for data file 1.
そして、P6にて、検索された登録データ2のデータ部
4に属する小索引コードdと、先に外部から入力した索
引データ5の小索引コードdとを比較する。P7にて両
手索引コードdが一致しないと、今回読出した代替コー
ドPの指定する出現番号に対応する登録データ2は入力
した索引データ5の指定する登録データでないと判断す
る。そして、P8にて、代替コードPを1だけ増加する
。Then, in P6, the small index code d belonging to the data section 4 of the searched registered data 2 is compared with the small index code d of the index data 5 previously input from the outside. If the two-handed index codes d do not match in P7, it is determined that the registered data 2 corresponding to the appearance number specified by the alternative code P read this time is not the registered data specified by the input index data 5. Then, at P8, the alternative code P is increased by 1.
P9にて増加後の出現番号を示す代替コードPが限界値
PMを越えていないことを確認すると、P5へ戻り、増
加した代替コードPの指定する出現番号に対応する登録
データ2を読出す。When it is confirmed at P9 that the alternative code P indicating the increased appearance number does not exceed the limit value PM, the process returns to P5 and the registered data 2 corresponding to the appearance number specified by the increased alternative code P is read out.
P7にて両手索引コードdが一致すると、Ploにて外
部から入力した索引データ5に一義的に対応する登録デ
ータ2がデータファイル1内に記憶されていると判断す
る。そして、該当登録データ2を読出す。If the two-handed index codes d match at P7, it is determined at Plo that the registered data 2 that uniquely corresponds to the index data 5 input from the outside is stored in the data file 1. Then, the corresponding registration data 2 is read out.
なお、P3にて大索引コードDがデータファイル1内に
検索されなかったり、P9にて増加後の代替コードPが
限界値PMを越えた場合には、Pllにて外部から入力
された索引データ5に該当する登録データ2がデータフ
ァイル1に記憶されていないと判定する。そして、例え
ば「該当データ無し」のメツセージを出力する。In addition, if the large index code D is not found in the data file 1 at P3, or if the alternative code P after increasing exceeds the limit value PM at P9, the index data input from the outside at Pll is It is determined that the registered data 2 corresponding to 5 is not stored in the data file 1. Then, for example, a message saying "no corresponding data" is output.
また、外部から入力された登録データ2をデータファイ
ル1に登録する場合には、第4図に示す流れ図に従って
登録処理を実行する。Further, when registering the registration data 2 input from the outside into the data file 1, the registration process is executed according to the flowchart shown in FIG.
流れ図が開始されると、Qlにて、第5図に示すように
、索引データ部3とデータ部4とからなる登録データ2
のうちの索引データ部3の索引データを取出し、さらに
、Q2にて、索引データを91桁の大索引コードDとΩ
2桁の小索引コードdとに分ける。Q3にて、そのうち
の大索引コードDでもって、データファイル1を検索す
る。When the flowchart starts, at Ql, as shown in FIG.
The index data of the index data section 3 is taken out, and in Q2, the index data is converted into a 91-digit large index code D and Ω
It is divided into a two-digit small index code d. In Q3, data file 1 is searched using the major index code D.
Q4にて、データファイル1内に該当大索引コードDに
該当する登録データ2が検出された場合には、すでに同
一大索引コードDに該当する登録データ2かデータファ
イル1内に登録されていると判断する。In Q4, if registered data 2 corresponding to the corresponding large index code D is detected in data file 1, registered data 2 corresponding to the same large index code D has already been registered in data file 1. I judge that.
そして、Q5にて、代替コードPを1に設定して同一大
索引コードD内の各登録データ2の続出行(出現番号)
を先頭行に設定する。Q6にて、同一人索引コードD内
の代替コードPの示す出現番号に属する行の登録データ
2を読出す。すなわち、大索引コードDと代替コードP
とを加算した実索引コード(D + P)でもってデー
タファイル1を検索する。Then, in Q5, the alternative code P is set to 1, and the successive rows (occurrence number) of each registered data 2 in the same large index code D
Set to the first line. In Q6, the registered data 2 of the row belonging to the appearance number indicated by the alternative code P in the same person index code D is read. That is, the major index code D and the alternative code P
Data file 1 is searched using the actual index code (D + P) obtained by adding the above.
Qlにて、データファイル1内に該当する出現番号の代
替コードPが登録されていれば、Q8へ進み、この出現
番号に該当する登録データ2の小索引コードdと今回登
録しようとする登録データ2の小索引コードdとを比較
する。Q9にて両手索引コードdが一致すると、該当す
る索引データ5を有する登録データ2がすでにこのデー
タファイル1に登録済みであるので、QIOにて同値処
理を行う。具体的には、入力した登録データ2の実デー
タを既に登録済みの登録データ2のデータ部4の実デー
タに追加登録する。または、既に登録済みの実データを
今回入力した登録データ2の実データに書替える。In Ql, if the alternative code P of the corresponding occurrence number is registered in data file 1, proceed to Q8, and enter the sub-index code d of registered data 2 corresponding to this appearance number and the registration data to be registered this time. 2 and the minor index code d. If the two-handed index codes d match in Q9, the registered data 2 having the corresponding index data 5 has already been registered in this data file 1, so equivalence processing is performed in QIO. Specifically, the actual data of the input registered data 2 is additionally registered to the actual data of the data section 4 of the already registered registered data 2. Alternatively, the actual data that has already been registered is rewritten with the actual data of registered data 2 input this time.
Q9にて両手索引コードdが一致しなかった場合は、Q
llにて代替コードPを1だけ増加する。If the two-handed index codes d do not match in Q9, Q
The alternative code P is increased by 1 at ll.
Q 3.2にて増加後の出現番号を示す代替コードPが
限界値PMを越えていないことを確認すると、Q6へ戻
り、増加した代替コードPの指定する出現番号に対応す
る登録データ2を検索する。なお、Ql2にて増加後の
代替コードPの指定する出現番号が限界値PMを越える
とエラーと判断して、エラー表示する。After confirming in Q3.2 that the alternative code P indicating the increased appearance number does not exceed the limit value PM, return to Q6 and register the registered data 2 corresponding to the appearance number specified by the increased alternative code P. search for. Note that if the occurrence number specified by the increased alternative code P exceeds the limit value PM in Ql2, it is determined to be an error and an error is displayed.
Qlにて、増加後の代替コードPの指定する出現番号に
対応する登録データ2が検索されなかった場合は、Ql
3にてデータファイル1に入力した登録データ2を登録
する。具体的には、登録デ〜り2の索引データ部3に入
力した大索引データDと出現番号を示す代替コードPと
を組込み、さらに、データ部4に入力した小索引コード
dと実データとを組込む。このように、新たに代替コー
ドPが加算された登録データ2をデータファイル]の空
き領域に書込む。If registered data 2 corresponding to the occurrence number specified by the increased alternative code P is not found in Ql, Ql
Register the registration data 2 input into the data file 1 in step 3. Specifically, the large index data D input into the index data section 3 of the registration date 2 and the alternative code P indicating the appearance number are incorporated, and furthermore, the small index code d input into the data section 4 and the actual data are incorporated. Incorporate. In this way, the registered data 2 to which the alternative code P is newly added is written into the free area of the data file.
そして、このままでは、入力された登録データ2は他の
大索引コードDに属する登録データ2の後の行に格納さ
れるので、Ql4にて、今回入力された登録データ2が
同一大索引コードDに属する登録データ2の最後に位置
するように、データファイル1内の各登録データ2の格
納位置を整理する。As it is, the input registered data 2 will be stored in the row after the registered data 2 belonging to another large index code D, so in Ql4, the registered data 2 input this time will be stored in the row after the registered data 2 belonging to the same large index code D. The storage position of each registered data 2 in the data file 1 is arranged so that it is located at the end of the registered data 2 belonging to the data file 1.
また、Q4にて、データファイル1内に該当する大索引
フードDが検索されなかった場合は、Ql5にて、出現
番号を示す代替コードPを1の初期値に設定する。そし
て、QlBへ進み、該当登録データ2をデータファイル
1へ登録する。If the corresponding large index food D is not found in the data file 1 in Q4, the alternative code P indicating the appearance number is set to an initial value of 1 in Q15. Then, the process advances to QlB and the corresponding registration data 2 is registered in the data file 1.
このように構成されたデータ検索方式によれば、データ
ファイル1から必要とする登録データ2を検索する場合
には、先ず、入力された索引データ5の大索引データD
で検索して、該当する各登録データ2が検索された時点
で、代替コードPの値を増加しながら各登録データ2を
さらに検索して、小索引コードdが一致する登録データ
2を最終的に入力された索引データに一義的に対応する
登録データ2であると判定する。According to the data search method configured in this way, when searching for the required registered data 2 from the data file 1, first, the large index data D of the input index data 5 is searched.
When each corresponding registered data 2 is retrieved, each registered data 2 is further searched while increasing the value of the alternative code P, and finally the registered data 2 with the matching sub-index code d is searched. It is determined that the registered data 2 uniquely corresponds to the index data input in .
このように、各登録データ2の索引データ5の一部を構
成する小索引コードdは、データファイル1内において
は、索引データ部3ではなくてデータ部4に登録される
。そして、このデータファイル1を検索する場合の実際
の実索引コードは、第2図に示すように、大索引コード
Dと代替コードPを加算したものである。そして、代替
コードPは同一大索引コードDに属する各登録データ2
の出現番号を示すのみであるので、この代替コードPの
必要とする桁数g3は小索引コードdの必要とする桁数
92より小さく設定できる。In this way, the small index code d forming part of the index data 5 of each registered data 2 is registered in the data section 4 instead of the index data section 3 in the data file 1. The actual actual index code when searching this data file 1 is the sum of the major index code D and the alternative code P, as shown in FIG. Then, the alternative code P is each registered data 2 belonging to the same large index code D.
The number g3 of digits required by this alternative code P can be set smaller than the number 92 digits required by the small index code d.
よって、たとえ大索引コードDと小索引コードdとを加
算した索引データ5の桁数りがコンピュータの処理能力
等にて定まる限界桁数を越えたとしても、小索引コード
dをデータファイル1内のデータ部4に格納して、一種
のデータと見なして、実際の検索に使用する実索引コー
ドの桁数を減少させることが可能となる。また、実際の
索引データの桁数を減少させたとしても、入力した元の
索引データに一義的に対応する登録データ2が確実に検
索できる。Therefore, even if the number of digits of the index data 5, which is the sum of the major index code D and the minor index code d, exceeds the limit number of digits determined by the processing capacity of the computer, the minor index code d is not stored in the data file 1. By storing the index code in the data section 4 of the index code and treating it as a type of data, it is possible to reduce the number of digits of the actual index code used in the actual search. Moreover, even if the number of digits of the actual index data is reduced, the registered data 2 that uniquely corresponds to the input original index data can be reliably searched.
したがって、各登録データ2をさらに細かく分類してデ
ータファイル1内に登録でき、利用者にとっては必要と
する登録データ2の分類をさらに細かく指定して検索で
きる。Therefore, each registered data 2 can be further classified and registered in the data file 1, and the user can search by specifying the required classification of the registered data 2 more precisely.
また、検索に用いる代替コードPおよびデータファイル
1に登録される代替コードPは自動的にその値が設定さ
れるので、利用者が同等関与する必要がない。したかっ
て、利用者は従来の検索操作と同一操作で必要とする登
録データを検索できる。Further, since the values of the alternative code P used for the search and the alternative code P registered in the data file 1 are automatically set, there is no need for the user to be equally involved. Therefore, the user can search for the required registered data using the same operation as the conventional search operation.
[発明の効果コ
以上説明したように本発明のデータ検索方式によれば、
小索引コードをこの小索引コードより少ない桁数を有す
る代替コードに置換えて、その不足分に相当する桁数は
代替コードに該当する各登録データが検索された後に順
番に該当登録データが小索引コードに対応するか否かを
順次間べている。したがって、たとえ索引データの桁数
が制限桁数を越える場合であっても、入力された索引デ
ータに一義的に対応する登録データを正確に検索できる
。その結゛果、利用者にとっては必要とする登録データ
の分類をさらに細かく指定して検索できる。[Effects of the Invention As explained above, according to the data search method of the present invention,
The minor index code is replaced with an alternative code having fewer digits than this minor index code, and after each registered data corresponding to the alternative code is searched, the corresponding registered data is searched for the number of digits corresponding to the missing number of digits, and then the corresponding registered data is changed to the minor index in order. We are checking whether the code is compatible or not. Therefore, even if the number of digits of the index data exceeds the limited number of digits, it is possible to accurately search for registered data that uniquely corresponds to the input index data. As a result, users can search by specifying more precisely the classification of the registered data they need.
第1図乃至第5図は本発明の一実施例に係わるデータ検
索方式を示すものであり、第1図はデータファイルの構
成を示す図、第2図および第5図は索引データと各索引
コードとの関係を示す図、第3図はデータファイルから
登録データを検索する場合の動作を示す流れ図、第4図
は登録データをデータファイルへ登録する場合の動作を
示す流れ図であり、第6図は一般的な登録データの構成
を示す図である。
1・・・データファイル、2・・・登録データ、3・・
・索引データ部、4・・・データ部、5・・・索引デー
タ5、D・・・大索引コード、d・・・小索引コード、
P・・・代替コード。
第 1 区
第 2 図
出願人代理人 弁理士 鈴江武彦1 to 5 show a data search method according to an embodiment of the present invention. FIG. 1 shows the structure of a data file, and FIGS. 2 and 5 show index data and each index. FIG. 3 is a flowchart showing the operation when searching for registered data from a data file, FIG. 4 is a flowchart showing the operation when registering registered data in the data file, and FIG. The figure shows the structure of general registration data. 1...Data file, 2...Registered data, 3...
- Index data section, 4... Data section, 5... Index data 5, D... Large index code, d... Small index code,
P...Alternative code. 1st Ward, 2nd Figure Applicant's Representative Patent Attorney Takehiko Suzue
Claims (1)
び実データとで形成された複数の登録データが記憶され
たデータファイルを、外部から入力された索引データで
検索して、この索引データに一義的に対応する登録デー
タを読出すデータ検索方式において、 前記データファイル内の各登録データ毎に付され、同一
大索引コード内において前記各小索引コードの出現順序
を示すこの小索引コードより少ない桁数で形成された複
数の代替コードと、前記索引データ入力に応動して、こ
の索引データに含まれる大索引コードで前記データファ
イルを検索する大索引コード検索手段と、この大索引コ
ード検索手段にて検索された各登録データを順次増加す
る代替コードでもって順次検索する代替コード検索手段
と、この代替コード検索手段にて順次検索される各登録
データの小索引コードと前記索引データの小索引コード
とを比較する比較手段と、この比較手段にて両小索引コ
ードが一致する登録データを前記索引データに一義的に
対応する登録データと判断する判断手段とを備えたこと
特徴とするデータ検索方式。[Claims] A data file in which a plurality of registered data formed of index data consisting of a large index code and a small index code and actual data is stored is searched using index data input from the outside, In a data search method for reading registered data that uniquely corresponds to this index data, this small index is attached to each registered data in the data file and indicates the order in which each of the minor index codes appears within the same major index code. a plurality of alternative codes formed with fewer digits than the index code; a large index code search means for searching the data file using the large index code included in the index data in response to the input of the index data; Alternative code search means for sequentially searching each registered data searched by the index code search means with sequentially increasing alternative codes, and a sub-index code of each registered data sequentially searched by the alternative code search means and the index. It is characterized by comprising a comparison means for comparing the data with a minor index code, and a determination means for determining, by the comparison means, registered data whose both minor index codes match as registered data that uniquely corresponds to the index data. Data retrieval method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2101058A JPH04559A (en) | 1990-04-17 | 1990-04-17 | Data retrieving system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2101058A JPH04559A (en) | 1990-04-17 | 1990-04-17 | Data retrieving system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04559A true JPH04559A (en) | 1992-01-06 |
Family
ID=14290516
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2101058A Pending JPH04559A (en) | 1990-04-17 | 1990-04-17 | Data retrieving system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04559A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5546173A (en) * | 1993-12-14 | 1996-08-13 | Minolta Co., Ltd. | Fixing device |
| US8828416B2 (en) | 2004-03-09 | 2014-09-09 | Cordis Corporation | Local vascular delivery of topotecan in combination with rapamycin to prevent restenosis following vascular injury |
-
1990
- 1990-04-17 JP JP2101058A patent/JPH04559A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5546173A (en) * | 1993-12-14 | 1996-08-13 | Minolta Co., Ltd. | Fixing device |
| US8828416B2 (en) | 2004-03-09 | 2014-09-09 | Cordis Corporation | Local vascular delivery of topotecan in combination with rapamycin to prevent restenosis following vascular injury |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4201831B2 (en) | Method and apparatus for extracting information from a database | |
| JPH10312396A (en) | Computer-readable recording medium recording database system and database search program | |
| JPH08305724A (en) | Design support information document management device | |
| JP3552339B2 (en) | Database system | |
| JPH04559A (en) | Data retrieving system | |
| EP1116137B1 (en) | Database, and methods of data storage and retrieval | |
| JPH0668171A (en) | Image database, image database creation method, image search method, and devices therefor | |
| JP3552318B2 (en) | Document search method and system | |
| US6738771B2 (en) | Data processing method, computer readable recording medium, and data processing device | |
| JP2775637B2 (en) | Transaction data processing device | |
| JP2706021B2 (en) | High-speed search method for structured databases | |
| JP3933407B2 (en) | Document processing apparatus, document processing method, and storage medium storing document processing program | |
| JP2682448B2 (en) | Index search method | |
| JP3245873B2 (en) | File processing device | |
| JPH07239861A (en) | Document retrieval device | |
| JPH09259132A (en) | Information registration search device and method thereof | |
| JPH06168270A (en) | Character string retrieval system using index and preparing device for index | |
| JP3109330B2 (en) | Form output device | |
| JPH10254887A (en) | Database system | |
| JPH0528197A (en) | Database processor | |
| JPH08147322A (en) | Information retrieval device | |
| JP3052380B2 (en) | Item selection device | |
| JP3441703B2 (en) | Document search device and document search method | |
| JP3047401B2 (en) | Data processing device | |
| JPH09134357A (en) | Character processor |