JPH06348569A - Data base system - Google Patents

Data base system

Info

Publication number
JPH06348569A
JPH06348569A JP5142275A JP14227593A JPH06348569A JP H06348569 A JPH06348569 A JP H06348569A JP 5142275 A JP5142275 A JP 5142275A JP 14227593 A JP14227593 A JP 14227593A JP H06348569 A JPH06348569 A JP H06348569A
Authority
JP
Japan
Prior art keywords
code
data
correspondence
character string
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5142275A
Other languages
Japanese (ja)
Inventor
Hiroshi Kawaguchi
宏 川口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP5142275A priority Critical patent/JPH06348569A/en
Publication of JPH06348569A publication Critical patent/JPH06348569A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To make display and input operation easy to understand and reduce required capacity by storing records as code data and performing conversion between the code data and character data by the correspondence between the both. CONSTITUTION:A data base main body 10 codes records in fields of smaller than specific size in a set of records 100 consisting of fields 1000 including character data and code data as elements and stores the results as code data, and also stores a code correspondence character string 300 which shows the correspondence between the code data and character data. A retrieval part 40 searches the code correspondence character string 300 for a character string of a field 1000 in a record 100 and performs mutual conversion from a code to a character string or vice versa and a display and print part 30 displays and prints the character string in the code correspondence character string 300 corresponding to the code of the field 1000 in the record 100 searched for by the retrieval part 40.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字データ(文字列情
報)をレコードの要素として持つデータベースシステム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system having character data (character string information) as a record element.

【0002】[0002]

【従来の技術】従来のデータベースシステムは、文字デ
ータを含むレコードについて、データの各レコード毎に
文字データを持つようになっている。すなわち、同じ文
字列が入る可能性が高い場合でも同一文字列が各レコー
ドに格納される。例えば、顧客名簿の会社名のフィール
ドにおいて、特定の会社名が文字データとして複数のレ
コードにわたって現われる場合、取扱機種のフィールド
には当該特定の会社の機種名が文字データとして複数の
レコードにわたって現われる。また最初から会社名、機
種名等をコード(数値)化したフィールドとして定義し
た場合には、データの節約にはなるが、コードデータと
文字データとの対応をデータベースの外で記憶する必要
がある。
2. Description of the Related Art In a conventional database system, a record containing character data has character data for each record of the data. That is, the same character string is stored in each record even if the same character string is likely to be entered. For example, when a specific company name appears as character data in a plurality of records in a company name field of a customer list, a model name of the specific company appears in a plurality of records as a character data in a field of a handling model. Also, if the company name, model name, etc. are defined as code (numerical) fields from the beginning, data will be saved, but the correspondence between code data and character data must be stored outside the database. .

【0003】[0003]

【発明が解決しようとする課題】この従来のデータベー
スシステムでは、あるレコードのフィールドを文字デー
タとして持つか、コードデータとして持つかの、どちら
かを選択しなければならなかった。文字データを選択す
ると表示、入力にはわかり易いが、データベースの大き
さ(必要容量)が大きくなり、特に名前や所属等、同一
文字列の入る可能性が大きい場合には無駄が多い。一
方、コードデータを選択するとデータベースの大きさは
小さくなるが、入力、表示がわかりにくいという欠点が
ある。
In this conventional database system, it was necessary to select whether to have a field of a certain record as character data or as code data. When character data is selected, it is easy to display and input, but the size (required capacity) of the database becomes large, and it is wasteful especially when there is a high possibility that the same character string will be entered, such as name and affiliation. On the other hand, if the code data is selected, the size of the database becomes smaller, but there is a drawback that the input and display are difficult to understand.

【0004】本発明の目的は、表示、入力にはわかり易
く、かつ必要容量が小さいデータベースシステムを提供
することにある。
An object of the present invention is to provide a database system that is easy to understand for display and input and has a small required capacity.

【0005】[0005]

【課題を解決するための手段】本発明の第1のデータベ
ースシステムは、文字データをレコードの要素として持
つデータベースシステムであって、前記レコードをコー
ド化し、コードデータとして記録するデータベース本体
と、前記コードデータと前記文字データとの対応を示す
対応手段と、前記コードデータと前記文字データとの対
応をサーチし、相互に変換する変換手段とを備えるもの
である。前記コードデータは整数値からなるものである
ことが好ましい。また必要に応じて、アルファヌメリッ
クコードからなるものであってもよい。
A first database system of the present invention is a database system having character data as an element of a record, and a database main body for encoding the record and recording it as code data, and the code. It is provided with a correspondence means for indicating the correspondence between the data and the character data, and a conversion means for searching for the correspondence between the code data and the character data and mutually converting them. The code data is preferably an integer value. It may also be composed of an alphanumeric code, if necessary.

【0006】本発明の第2のデータベースシステムは、
文字データをレコードの要素として持つデータベースシ
ステムであって、前記レコードのうち、所定の大きさ以
下のフィールドのレコードをコード化し、コードデータ
として記録するデータベース本体と、前記コードデータ
と前記文字データとの対応を示す対応手段と、前記コー
ドデータと前記文字データとの対応をサーチし、相互に
変換する変換手段とを備えるものである。前記コードデ
ータは整数値からなるものであることが好ましい。また
必要に応じて、アルファヌメリックコードからなるもの
であってもよい。
A second database system of the present invention is
A database system having character data as an element of a record, wherein, of the records, a record of a field of a predetermined size or less is encoded and recorded as code data, a database main body, the code data and the character data. It is provided with a correspondence means for indicating correspondence and a conversion means for searching the correspondence between the code data and the character data and mutually converting them. The code data is preferably an integer value. It may also be composed of an alphanumeric code, if necessary.

【0007】[0007]

【作用】本発明のデータベースシステムは、レコードの
フィールドに文字データの属性とコードデータの属性の
両方を持たせるものである。このため、データベース中
にはコードデータで記憶するとともにコードデータと文
字データとの対応を記憶する対応部分を設け、この対応
によってコードデータおよび文字データ間の変換を行
う。
In the database system of the present invention, the field of the record has both the character data attribute and the code data attribute. Therefore, the database is provided with a corresponding portion for storing the code data and the correspondence between the code data and the character data, and the conversion between the code data and the character data is performed by this correspondence.

【0008】[0008]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の一実施例であるデータベー
スシステムの構成図、図2は本実施例の登録時の動作を
示すフローチャート、図3は本実施例の表示、印刷時の
検索の動作を示すフローチャートである。データベース
本体10は、文字データおよびコードデータを要素とし
て持つ複数のフィールド1000からなるレコード10
0の集合と、コードデータと文字データとの対応を示す
対応手段としてのコード・文字列対応表であるコード対
応文字列300の集合と、コード対応文字列300への
指定を行うフィールド対応ポインタ200とからなる。
データベース本体は、レコード100の集合のうち、所
定の大きさ以下のフィールド1000のレコード100
をコード化し、コードデータとして記録する。入力部2
0は文字データまたはコードデータを入力する。表示・
印刷部30は、後述する検索40がサーチした、レコー
ド100中のフィールド1000のコードに対応するコ
ード対応文字列300中の文字列を表示、印刷する。検
索部40は、レコード100中のフィールド1000の
文字列をコード対応文字列300の中でサーチする(コ
ード→文字列あるいは文字列→コードの検索)ととも
に、コード→文字列あるいは文字列→コードの相互変換
をする変換手段である。
FIG. 1 is a block diagram of a database system which is an embodiment of the present invention, FIG. 2 is a flow chart showing the operation at the time of registration of this embodiment, and FIG. 3 is the display operation of this embodiment and the search operation at the time of printing. It is a flowchart showing. The database body 10 is a record 10 including a plurality of fields 1000 having character data and code data as elements.
A set of 0s, a set of code corresponding character strings 300 which is a code / character string correspondence table as a correspondence means showing correspondence between code data and character data, and a field corresponding pointer 200 for designating to the code corresponding character string 300. Consists of.
The main body of the database is the record 100 of the field 1000 of a predetermined size or smaller among the set of records 100.
Is encoded and recorded as code data. Input section 2
0 inputs character data or code data. display·
The printing unit 30 displays and prints the character string in the code corresponding character string 300 corresponding to the code of the field 1000 in the record 100 searched by the search 40 described later. The search unit 40 searches the character string of the field 1000 in the record 100 in the code-corresponding character string 300 (code → character string or character string → search for code), and also selects code → character string or character string → code. It is a conversion means for performing mutual conversion.

【0010】ここで、レコード100の集合のうち、所
定の大きさ以下のフィールド1000のレコード100
をコード化する理由について説明する。文字データのコ
ード化は、同一内容のフィールドが異なるレコード中
に、複数出現した場合に効果的である。大きいフィール
ドはメモの可能性が高く、同一のフィールドが現われる
可能性は低いと思われる。また文字列から、対応するコ
ードを見つけるのに時間がかかる。そのため、本実施例
では所定の大きさ以下のフィールド1000のレコード
100をコード化する。
Here, of the set of records 100, the record 100 of the field 1000 having a predetermined size or smaller
The reason for encoding is explained. The encoding of character data is effective when a plurality of fields having the same content appear in different records. Larger fields are more likely to be memos and less likely identical fields to appear. It also takes time to find the corresponding code from the string. Therefore, in this embodiment, the record 100 of the field 1000 having a size equal to or smaller than the predetermined size is encoded.

【0011】次に本実施例の動作を説明する。フィール
ド1000には原則としてコードデータ(整数値)が入
る。その整数値に対応した文字データはコード対応文字
列300に登録される。すなわち、フィールド1000
の整数値はコード対応文字列300へのインデックス値
として扱われる。同一の文字データが複数のレコード1
00に現われるときには、各レコード100の該当する
フィールド1000に同一のインデックス値が入り、コ
ード対応文字列300中の同一の文字列が指定される。
このため、データ入力時にはコードをそのまま入力する
ことも文字列で入力することもできる。文字列で入力す
る場合には、入力部20より任意の文字列を入力し、図
2に示すように、検索部40が対応フィールドのインデ
ックス値が存在するか、すなわち文字列が登録済みであ
るかサーチし(ステップS21)、存在すれば、そのイ
ンデックス値を該当するフィールド1000に代入する
(ステップS23)。存在しなければ、検索部40は新
たにコード対応文字列300に登録し(ステップS2
2)、新たな対応コードデータ(コード対応文字列30
0のインデックス値)を該当するフィールド1000に
書き込む(ステップS23)。検索時には、図3に示す
ように、検索キーをコード対応文字列300でサーチし
(ステップS31)、対応する各レコード100のフィ
ールド1000をインデックス値(コードデータ)でサ
ーチする(ステップS32)。表示、印刷時には、対応
するレコード100のフィールド1000中のコードデ
ータ(インデックス値)からコード対応文字列300で
文字列をサーチし、表示、印刷する。このように本実施
例では、表示、入力にはわかり易い文字データを用い、
フィールドのレコードにはコードデータを用いて必要容
量を小さくすることができる。しかも、データベースの
使用者にコードを意識させずにこのデータベースを扱え
るようにすることができる。
Next, the operation of this embodiment will be described. In principle, field 1000 stores code data (integer value). Character data corresponding to the integer value is registered in the code corresponding character string 300. Ie, field 1000
The integer value of is treated as an index value to the code corresponding character string 300. Multiple records 1 with the same character data
When it appears in 00, the same index value is entered in the corresponding field 1000 of each record 100, and the same character string in the code corresponding character string 300 is designated.
Therefore, when inputting data, the code can be input as it is or a character string can be input. When inputting a character string, an arbitrary character string is input from the input unit 20, and as shown in FIG. 2, the search unit 40 has the index value of the corresponding field, that is, the character string is already registered. It is searched (step S21), and if it exists, the index value is assigned to the corresponding field 1000 (step S23). If it does not exist, the search unit 40 newly registers it in the code corresponding character string 300 (step S2).
2), new corresponding code data (code corresponding character string 30
The index value of 0) is written in the corresponding field 1000 (step S23). At the time of search, as shown in FIG. 3, the search key is searched by the code-corresponding character string 300 (step S31), and the corresponding field 1000 of each record 100 is searched by the index value (code data) (step S32). At the time of displaying and printing, a character string is searched for with the code corresponding character string 300 from the code data (index value) in the field 1000 of the corresponding record 100, and is displayed and printed. Thus, in this embodiment, easy-to-understand character data is used for display and input,
The required capacity can be reduced by using code data for the field record. Moreover, it is possible to handle this database without making the user of the database aware of the code.

【0012】[0012]

【発明の効果】以上説明したように本発明は、レコード
中にはコードデータで記憶するとともにコードデータと
文字データとの対応を記憶し、この対応によってコード
データおよび文字データ間の変換を行うことにより、表
示、入力にはわかり易く、かつ大きさが小さいデータベ
ースシステムを実現できる効果がある。
As described above, according to the present invention, the code data is stored in the record and the correspondence between the code data and the character data is stored, and the conversion between the code data and the character data is performed by this correspondence. Thus, it is possible to realize a database system that is easy to understand and easy to display and input and has a small size.

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

【図1】本発明の一実施例であるデータベースシステム
の構成図である。
FIG. 1 is a configuration diagram of a database system that is an embodiment of the present invention.

【図2】本実施例の登録時の動作を示すフローチャート
である。
FIG. 2 is a flowchart showing an operation at the time of registration of this embodiment.

【図3】本実施例の表示、印刷時の検索の動作を示すフ
ローチャートである。
FIG. 3 is a flowchart showing a search operation during display and printing according to the present exemplary embodiment.

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

10 データベース本体 20 入力部 30 表示・印刷部 40 検索部 100 レコード 200 フィールド対応ポインタ 300 コード対応文字列 1000 フィールド 10 database main body 20 input section 30 display / print section 40 search section 100 record 200 field compatible pointer 300 code compatible character string 1000 field

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 文字データをレコードの要素として持つ
データベースシステムであって、 前記レコードをコード化し、コードデータとして記録す
るデータベース本体と、 前記コードデータと前記文字データとの対応を示す対応
手段と、 前記コードデータと前記文字データとの対応をサーチ
し、相互に変換する変換手段とを備えるデータベースシ
ステム。
1. A database system having character data as an element of a record, wherein the database main body encodes the record and records the code data as code data, and a correspondence unit indicating correspondence between the code data and the character data. A database system comprising: a conversion unit that searches for a correspondence between the code data and the character data and mutually converts the data.
【請求項2】 前記コードデータは整数値からなるもの
である請求項1記載のデータベースシステム。
2. The database system according to claim 1, wherein the code data is an integer value.
【請求項3】 前記コードデータはアルファヌメリック
コードからなるものである請求項1記載のデータベース
システム。
3. The database system according to claim 1, wherein the code data is an alphanumeric code.
【請求項4】 文字データをレコードの要素として持つ
データベースシステムであって、 前記レコードのうち、所定の大きさ以下のフィールドの
レコードをコード化し、コードデータとして記録するデ
ータベース本体と、 前記コードデータと前記文字データとの対応を示す対応
手段と、 前記コードデータと前記文字データとの対応をサーチ
し、相互に変換する変換手段とを備えるデータベースシ
ステム。
4. A database system having character data as an element of a record, wherein a database main body which encodes a record of a field having a predetermined size or less among the records and records the code as the code data, A database system comprising: a correspondence unit that indicates a correspondence between the character data and a conversion unit that searches for a correspondence between the code data and the character data and mutually converts the correspondence.
【請求項5】 前記コードデータは整数値からなるもの
である請求項4記載のデータベースシステム。
5. The database system according to claim 4, wherein the code data is an integer value.
【請求項6】 前記コードデータはアルファヌメリック
コードからなるものである請求項4記載のデータベース
システム。
6. The database system according to claim 4, wherein the code data is an alphanumeric code.
JP5142275A 1993-06-14 1993-06-14 Data base system Pending JPH06348569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5142275A JPH06348569A (en) 1993-06-14 1993-06-14 Data base system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5142275A JPH06348569A (en) 1993-06-14 1993-06-14 Data base system

Publications (1)

Publication Number Publication Date
JPH06348569A true JPH06348569A (en) 1994-12-22

Family

ID=15311573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5142275A Pending JPH06348569A (en) 1993-06-14 1993-06-14 Data base system

Country Status (1)

Country Link
JP (1) JPH06348569A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282829A (en) * 2000-03-29 2001-10-12 Mitsubishi Electric Corp Device for and method of retrieval of database
JP2008287723A (en) * 2007-05-21 2008-11-27 Sap Ag Block compression of table with repeated value

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60247732A (en) * 1984-05-23 1985-12-07 Nec Corp Data storage device
JPH0264770A (en) * 1988-08-31 1990-03-05 Nec Corp Data compression-restoring system with dictionary
JPH03206533A (en) * 1990-01-09 1991-09-09 Nec Software Ltd Data compression system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60247732A (en) * 1984-05-23 1985-12-07 Nec Corp Data storage device
JPH0264770A (en) * 1988-08-31 1990-03-05 Nec Corp Data compression-restoring system with dictionary
JPH03206533A (en) * 1990-01-09 1991-09-09 Nec Software Ltd Data compression system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282829A (en) * 2000-03-29 2001-10-12 Mitsubishi Electric Corp Device for and method of retrieval of database
JP2008287723A (en) * 2007-05-21 2008-11-27 Sap Ag Block compression of table with repeated value
US10884987B2 (en) 2007-05-21 2021-01-05 Sap Se Block compression of tables with repeated values

Similar Documents

Publication Publication Date Title
JPS6283787A (en) Output control system for display screen
JPH06348569A (en) Data base system
JPH10312395A (en) System and method for full-text retrieval and record medium where full-text retrieving program is recorded
JPS6255189B2 (en)
JPH04336660A (en) Document preparing device
Chin et al. Special Feature: An Automated Chinese Telephone Directory
JP3896683B2 (en) User-defined character management device and storage medium
JPH04336661A (en) Document preparing device
JPH10143404A (en) Information recording medium and data recording system for the same
JP5117560B2 (en) Document data analysis program, computer-based document data analysis method, and document data analysis system
JP2000259327A (en) Character input device
JP2919396B2 (en) Document maker
JPS6112125A (en) Optimizing system of shift code
JPS63229563A (en) Index production system
JPH04178768A (en) Table code translating system
JPH05143409A (en) File processing unit
JPS61281368A (en) Picture information retrieving device
JPH0444166A (en) Retrieval management system
JPH0573660A (en) Document filing device
JPH04264974A (en) Index retrieval system
JPH07334396A (en) Disk map preparing system
JPH05108430A (en) Data storing device on data base
JPH01173126A (en) Retrieving device
JPH0473157B2 (en)
JPH05216870A (en) System for standardizing name written in kana