[go: up one dir, main page]

CN100421104C - Method for processing data of database system - Google Patents

Method for processing data of database system Download PDF

Info

Publication number
CN100421104C
CN100421104C CNB01136470XA CN01136470A CN100421104C CN 100421104 C CN100421104 C CN 100421104C CN B01136470X A CNB01136470X A CN B01136470XA CN 01136470 A CN01136470 A CN 01136470A CN 100421104 C CN100421104 C CN 100421104C
Authority
CN
China
Prior art keywords
data
field
index
database
input
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
CNB01136470XA
Other languages
Chinese (zh)
Other versions
CN1412694A (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.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CNB01136470XA priority Critical patent/CN100421104C/en
Publication of CN1412694A publication Critical patent/CN1412694A/en
Application granted granted Critical
Publication of CN100421104C publication Critical patent/CN100421104C/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)

Abstract

The invention is a method for processing data of database system, the method is to set up a comparison table in the database system, the comparison table includes the name of the non-index field in each record of the traditional database, and the code corresponding to the said name, make the data content of the non-index field originally stored in the traditional database, can be compiled into a description string containing code and every said data content according to the comparison table, and store it into a description field of a record of the database of the invention, make the database system read the description field of each record later, can look for the said code in the description string, look for the corresponding field name in the comparison table, and display every said field name and its corresponding data content on the corresponding field of an output picture of the database respectively.

Description

资料库系统的处理数据的方法 Data processing method of database system

技术领域 technical field

本发明涉及计算机软件中的资料库领域,尤指一种资料库系统的处理数据的方法,其可将传统资料库的每一记录中非索引字段内的资料内容,根据一对照表编辑成一说明字串,储存在本发明的资料库的一记录的说明字段中,该资料库系统在读取每一记录时,可依据该对照表,将各该非索引字段的名称与其对应的资料内容,显示在该资料库的一输出画面上。The present invention relates to the database field in computer software, especially a method for processing data in a database system, which can edit the data content in the non-index field in each record of a traditional database into a description according to a comparison table The character string is stored in the description field of a record in the database of the present invention. When the database system reads each record, the name of each non-index field and its corresponding data content can be compared according to the comparison table. Displayed on an output screen of the database.

背景技术 Background technique

一般资料库系统主要是由多个资料库及一资料库程序所组成,一般而言,在建立一资料库系统前,需先将所欲储存的一记录(Record)中的各资料内容,依其特性进行分类,规划成各个不同的字段(Field),例如:一般制造商的产品订单中,包括有订单号码、类型、零件名称、单价...等,该产品订单可视为该资料库内的一笔记录,具有订单号码、类型、零件名称、单价...等字段,故在规划各资料库时,需先依各该字段所要储存的内容,定义其属性,例如:「文字」、「数字」、「日期」...等,并设定各该字段的长度,及输入及输出条件,以完成各该资料库内各字段的定义,最后,再利用资料库程序执行各该资料库间字段资料内容的输入、输出及转换。A general database system is mainly composed of multiple databases and a database program. Generally speaking, before establishing a database system, it is necessary to store each data content in a record (Record) according to Its characteristics are classified and planned into different fields (Field). For example, the product order of a general manufacturer includes order number, type, part name, unit price...etc. The product order can be regarded as the database A record in , has fields such as order number, type, part name, unit price, etc. Therefore, when planning each database, it is necessary to define its attributes according to the content to be stored in each field, for example: "text" , "Number", "Date"... etc., and set the length of each field, and input and output conditions to complete the definition of each field in each database, and finally, use the database program to execute each Input, output and conversion of field data content between databases.

在传统的资料库系统中,各该资料库内每一笔记录必需依所欲储存的资料内容,定义其字段特性,请参阅图1所示,所述的特性通常包含各字段的名称、属性、长度及条件,其中该名称是用以代表该字段所储存的资料名称(如:订单号码),该属性用以代表该字段所储存的资料属性(如:文字、整数、日期等),该长度用以代表该字段所能输入的资料内容的位元数,该条件用以代表该字段所能输入的资料内容的辨识条件(如:必须为大于50000小于60000的整数)。等逐一完成对各该字段的定义后,请参阅图2所示,该资料库程序即可根据各该资料库内所规划的各该字段,设计出各该资料库的输入及输出画面,使用者可透过该资料库的输入及输出画面,将所欲储存的资料内容,逐一输入到对应资料库内的各字段中,或自对应资料库内的各字段,读取并显示所储存的资料内容。In a traditional database system, each record in the database must define its field characteristics according to the content of the data to be stored. Please refer to Figure 1. The characteristics usually include the name and attribute of each field , length and conditions, where the name is used to represent the name of the data stored in the field (such as: order number), and the attribute is used to represent the data attributes stored in the field (such as: text, integer, date, etc.), the The length is used to represent the number of bits of data content that can be entered in this field, and the condition is used to represent the identification condition of the data content that can be entered in this field (for example: must be an integer greater than 50000 and less than 60000). After completing the definition of each field one by one, please refer to Figure 2, the database program can design the input and output screens of each database according to the fields planned in each database, use Through the input and output screen of the database, the user can input the content of the data to be stored into each field in the corresponding database one by one, or read and display the stored data from each field in the corresponding database. data content.

一般而言,资料库系统是用以分门别类地储存数量庞大的记录,故若想自数量庞大记录中,寻找某一特定记录,或令不同资料库间发生关联,即必需在各该资料库的每一记录中,选择至少一字段作为索引字段,以令该资料库系统得以依据该索引字段,进行特定记录的搜寻,以在该资料库画面显示该记录的资料内容;或在不同资料库间进行关联性搜寻,故该索引字段通常是指一资料库中较易与其它资料库发生关联的资料字段,故该索引字段一般均具有唯一的特性,以避免进行检索时,发生无法准确地搜寻到与该索引字段相关的记录。Generally speaking, the database system is used to store a large number of records in different categories. Therefore, if you want to find a specific record from a large number of records, or make a relationship between different databases, you must In each record, select at least one field as an index field, so that the database system can search for a specific record according to the index field, so as to display the data content of the record on the database screen; or between different databases For correlation search, the index field usually refers to the data field in a database that is more likely to be associated with other databases, so the index field generally has unique characteristics to avoid inaccurate searches when searching to the records associated with the index field.

据上所述,由于在传统资料库系统中,需先定义出各该资料库内各字段的长度,致在资料库系统建构完成后,无论各该资料库的每一笔记录中各字段,是否有输入资料内容,或是否所输入的资料内容的长度,小于其所定义的长度,该资料库系统均将在储存装置上,依所定义的最大长度,开启一储存空间,以储存该记录。如此,各该资料库中可能因许多字段并未储存资料,或所储存的资料长度小于其所定义的长度,而浪费许多无谓的储存空间,此一缺点,在庞大的资料库系统中尤其明显,故,如何有效利用储存装置上的储存空间,以储存每一笔输入的资料,即为现今资料库系统中首要解决的问题。According to the above, since in the traditional database system, the length of each field in each database needs to be defined first, so after the construction of the database system is completed, regardless of the fields in each record of each database, Whether there is input data content, or whether the length of the input data content is less than the defined length, the database system will open a storage space on the storage device according to the defined maximum length to store the record . In this way, each database may waste a lot of unnecessary storage space because many fields do not store data, or the length of the stored data is shorter than its defined length. This shortcoming is especially obvious in a huge database system , Therefore, how to effectively use the storage space on the storage device to store each input data is the primary problem to be solved in the current database system.

近年来,由于国际互连网发展快速,各行各业不断地架设网站,以提供各种不同的服务,尤其是,跨国企业更是利用国际互连网作为公司资料的传输及查询,以提供最新资讯至各地子公司或其配合的厂商、业者、消费者...等,而在网络上进行各项资料的服务或查询,均需通过多个庞大的资料库系统间相互整合,始能令使用者在最快时间内获得所需的资料,因此,有效利用储存装置上的储存空间,以储存互连网上每一笔快速流通的资料,亦成为企业在推广资讯网络化时的一重要课题。In recent years, due to the rapid development of the Internet, all walks of life have continuously set up websites to provide various services. In particular, multinational companies use the Internet as the transmission and query of company data to provide the latest information to their subsidiaries. The company or its cooperating manufacturers, operators, consumers, etc., when performing various data services or inquiries on the Internet, it is necessary to integrate multiple huge database systems, so that users can be in the most The required data can be obtained in a short time. Therefore, the effective use of the storage space on the storage device to store every piece of fast-flowing data on the Internet has become an important issue for enterprises when promoting information networking.

发明内容 Contents of the invention

有鉴于传统各该资料库可能因许多字段并未储存资料,或所储存的资料长度小于所定义的长度,而浪费许多无谓的储存空间的缺点,特开发设计出本发明的一种资料库系统储存及读取记录的方法,该方法是将传统资料库中非索引字段的资料,根据一对照表编辑成一说明字串,储存至本发明的资料库的一说明字段中,在读取该说明字段的说明字串时,可依据该对照表,在资料库画面上显示各该非索引字段的资料内容。In view of the disadvantages that the traditional databases may waste a lot of unnecessary storage space because many fields do not store data, or the length of the stored data is less than the defined length, a database system of the present invention is specially developed and designed. The method for storing and reading records, the method is to edit the data in the non-index field in the traditional database into a description word string according to a comparison table, store it in a description field of the database of the present invention, and read the description When specifying the description string of a field, the data content of each non-indexed field can be displayed on the database screen according to the comparison table.

本发明的主要目的,是该对照表包括传统资料库中非索引字段的名称,与对应所述的名称的代码,传统资料库中非索引字段的资料内容,可根据该对照表,编辑成包含各该代码及资料内容的一说明字串,并将其储存到本发明的资料库的一记录的说明字段内,令本发明的资料库系统在读取到该说明字段时,可根据该说明字串中的所述的代码,在该对照表中寻找对应的字段名称,并依据各该字段名称,将各该资料内容显示在该资料库的一输出画面的对应字段上。The main purpose of the present invention is that the comparison table includes the title of the non-index field in the traditional database, and the code corresponding to the title, and the data content of the non-index field in the traditional database can be edited to include A description word string of each of the code and data content, and store it in the description field of a record in the database of the present invention, so that when the database system of the present invention reads the description field, it can The code in the character string searches for the corresponding field name in the comparison table, and displays each data content on a corresponding field of an output screen of the database according to each field name.

其中该资料库系统在接收到通过该输入资料表的对应字段所输入的非索引资料时,可依据该对照表,将该资料表的对应字段名称转换为对应的代码,并利用一特定的编辑定义,将各该非索引资料所对应的代码与其资料内容间加入一识别符号,且在相邻的资料间,加入一分隔符号,以将通过该输入画面所输入的所有非索引资料,编辑成一说明字串。Wherein, when the database system receives the non-index data input through the corresponding fields of the input data table, it can convert the corresponding field names of the data table into corresponding codes according to the comparison table, and use a specific editor Definition, add an identification symbol between the code corresponding to each non-index data and its data content, and add a separator between adjacent data, so as to edit all non-index data input through the input screen into one Description string.

其中该资料库系统根据下列步骤,将通过该输入资料表所输入的索引及非索引资料,逐一储存至该资料库的对应记录中:The database system stores the index and non-index data input through the input data table into corresponding records of the database one by one according to the following steps:

首先,在一显示装置上显示该输入资料表,该资料表内用以输入索引资料的对应字段,连结至一资料库内所定义的索引字段,该资料表内用以输入非索引资料的对应字段,连结至一对照表;First, display the input data form on a display device, the corresponding field for inputting index data in the data form is linked to the index field defined in a database, and the corresponding field for inputting non-index data in the data form field, linked to a lookup table;

将输入该资料表的索引资料,直接储存至该资料库的对应记录内的索引字段中,并逐一读取该资料表内用以输入非索引资料的对应字段;directly store the index data input into the data table into the index field in the corresponding record of the database, and read the corresponding fields in the data table for inputting non-index data one by one;

判断各该对应字段内是否有输入任何资料,若是,进行下列步骤;Determine whether any data is entered in each corresponding field, if so, perform the following steps;

判断是否为一最后的对应字段,若是,进行下列步骤;Determine whether it is a last corresponding field, if so, perform the following steps;

根据所读取到的所述的非索引资料的字段名称,自该代码对照表寻找对应的代码,并利用各该代码,依一定的编辑方式,将所述的非索引资料编写成一说明字串,以储存在该资料库的说明字段中。According to the read field names of the non-indexed data, find the corresponding codes from the code comparison table, and use each of the codes to write the non-indexed data into a description string according to a certain editing method , to store in the description field of this database.

该资料库系统是根据下列步骤,依通过该输出资料表所输入的索引资料,自对应的资料库中搜索出一笔欲查寻的记录:According to the following steps, the database system searches out a record to be searched from the corresponding database according to the index data input through the output data table:

首先,根据输入该输出资料表的索引资料,自对应的资料库,搜寻并读取与该输入的索引资料相关联的一记录;First, according to the index data input into the output data table, from the corresponding database, search and read a record associated with the input index data;

然后,读取该记录的各索引字段内所存放的资料,并将其显示在该输出画面的资料表上用以显示该索引资料的对应字段,并读取该记录的说明字段内所存放的说明字串;Then, read the data stored in each index field of the record, and display it on the data table of the output screen to display the corresponding field of the index data, and read the data stored in the description field of the record description string;

根据该对照表内所设的代码及字段名称,将该说明字串内所隐含的所有非索引资料,逐一予以解译出来;According to the codes and field names set in the comparison table, interpret all the non-index data implied in the description string one by one;

将解译后的非索引资料,逐一显示在该输出画面的资料表上用以显示该非索引资料的对应字段上。The interpreted non-index data are displayed one by one on the corresponding field for displaying the non-index data on the data table of the output screen.

附图说明 Description of drawings

图1是传统资料库的每一记录中各字段的定义示意图;Fig. 1 is a schematic diagram of definitions of fields in each record of a traditional database;

图2是传统资料库中资料表的画面示意图;FIG. 2 is a schematic diagram of a data table in a traditional database;

图3是本发明的资料库的每一记录中各字段的定义示意图;Fig. 3 is the definition diagram of each field in each record of database of the present invention;

图4是本发明的资料库中资料表的画面示意图;Fig. 4 is the picture schematic diagram of the data table in the database of the present invention;

图5是本发明的代码对照表的示意图;Fig. 5 is the schematic diagram of the code comparison table of the present invention;

图6是本发明的一实施例的资料表的画面示意图;Fig. 6 is a schematic diagram of a screen of a data table according to an embodiment of the present invention;

图7是本发明的资料库系统将一笔记录储存至该资料库中的流程示意图;Fig. 7 is a schematic flow diagram of storing a record into the database by the database system of the present invention;

图8是本发明的资料库系统自该资料库中搜索出一记录的流程示意图。FIG. 8 is a schematic flowchart of searching a record from the database by the database system of the present invention.

主要元件编号:Main component number:

资料表...............6Data Sheet................6

索引资料的对应字段.........60Corresponding fields of index data... 60

非索引资料的对应字段......62Corresponding fields of non-index data...62

具体实施方式 Detailed ways

本发明是一种资料库系统储存及读取记录的方法,该方法针对一资料库系统中各资料库内欲储存的多个资料,先定义其字段格式,各该字段包含多个用以作为索引的字段及一说明字段(Remark),以一般制造商的零件资料库为例,请参阅图3及图6所示,可作为索引的字段包括零件编号Pnc(Parts code)、零件名称Descr(Description)及零件类型TP(Parts Type)...等,故在该零件资料库中,每一笔零件的记录,仅包含所述的索引字段及该说明字段,请参阅图4所示,该说明字段用以储存一说明字串。在本发明中,主要令传统资料库的每一记录中属于非索引字段的资料,可通过资料库的一输入画面,输入至一输入资料表的对应字段,再利用一对照表,将该资料表上各字段内的资料,编辑成一说明字串,将其储存在各该记录的说明字段,以后读取该记录时,本发明的资料库系统可再依该对照表,编译出该说明字段内的各该资料内容,并将其分别显示在一输出画面的资料表的对应字段。The present invention is a method for storing and reading records in a database system. The method first defines the field format for a plurality of data to be stored in each database in a database system. The field of the index and a description field (Remark), taking the parts database of a general manufacturer as an example, please refer to Figure 3 and Figure 6, the fields that can be used as the index include the part number Pnc (Parts code), the part name Descr ( Description) and part type TP (Parts Type)... etc., so in the parts database, each part record only includes the index field and the description field, as shown in Figure 4, the The description field is used to store a description string. In the present invention, the data belonging to the non-index field in each record of the traditional database can be input to the corresponding field of an input data table through an input screen of the database, and then a comparison table is used to convert the data Edit the data in each field on the table into a description string, store it in the description field of each record, and when reading the record later, the database system of the present invention can compile the description field according to the comparison table Each of the data content in the output screen is displayed in the corresponding field of the data table in an output screen.

在本发明中,请参阅图5及图6所示,该对照表包括欲储存至每记录中属于非索引资料的名称(如:CPQ Part no),与对应所述的名称的代码(如:PN)使输入至该输入资料表的对应字段的资料,可根据该对照表,被编辑成包含各该代码及资料内容的一说明字串,并将其储存至该资料库的每一记录的说明字段中,如此,当该资料库系统在读取每一记录时,可针对该说明字段内的说明字串中的所述的代码,在该对照表中寻找对应的字段名称,并将各该字段名称与其对应的资料分别显示在该资料库的一输出画面的资料表的对应字段上。In the present invention, please refer to Fig. 5 and shown in Fig. 6, this comparison table includes the title (such as: CPQ Part no) that belongs to the non-index data in each record, and the code (such as: PN) The data input to the corresponding field of the input data table can be edited into a description string including each code and data content according to the comparison table, and stored in each record of the database In the description field, in this way, when the database system reads each record, it can search for the corresponding field name in the comparison table for the code in the description string in the description field, and put each The field name and the corresponding data are respectively displayed on the corresponding fields of the data table in an output screen of the database.

参阅图6所示,本发明的资料库系统在接收到使用者通过一输入画面的资料表的对应字段所输入的非索引资料时,可依据该对照表,将该资料表的对应字段名称(如:CPQ Part no)转换为对应的代码(如:PN),并利用一特定的编辑定义,将各该非索引资料所对应的代码与其资料内容间加入一识别符号(如:=),且在相邻的资料间,加入一分隔符号(如:~),以将通过该输入画面所输入的所有非索引资料,编辑成一说明字串(如:PN=470013-471~CFG=FMWZ~......),并将其储存在本发明的前述资料库的一记录的说明字段中。因此,以后,当本发明的资料库系统读取到各该记录时,可藉由辨识出该识别符号的位置,以正确地读取出各该代码及其对应的资料内容,且由该分隔符号正确地辨识出各资料内容的结束位置,及后续另一代码及其对应资料内容的启始位置。Referring to Fig. 6, when the database system of the present invention receives the non-index data input by the user through the corresponding field of the data table of an input screen, it can use the corresponding field name of the data table according to the comparison table ( Such as: CPQ Part no) into the corresponding code (such as: PN), and use a specific editing definition to add an identification symbol (such as: =) between the code corresponding to each non-index data and its data content, and Between adjacent data, add a separator (such as: ~) to edit all non-index data input through the input screen into a description string (such as: PN=470013-471~CFG=FMWZ~. .....), and store it in the description field of a record of the aforementioned database of the present invention. Therefore, in the future, when the database system of the present invention reads each of the records, by identifying the position of the identification symbol, each of the codes and their corresponding data content can be read correctly, and separated by the The symbol correctly identifies the end position of each data content, and the start position of another code and its corresponding data content following.

在本发明中,还请参阅图6所示,该资料库系统的资料库程序所设计的一输入画面或输出画面的资料表6,该资料表6上设有多个分别用以输入或输出索引资料及非索引资料的对应字段60、62,使用者可通过该资料表6将所欲储存的资料内容,逐一输入至该资料表6上的各对应字段60、62中,或自资料库中将所欲读取的资料内容,输出并显示在该资料表6的各对应字段60、62上。由于,该资料表6上用以输入非索引资料的对应字段62,是根据该对照表上所使用的字段名称进行设计,故,若欲增加域减少该资料表6上用以输入非索引资料的对应栏位62的数量,仅需通过修改该资料表6上对应字段62的数量及对照表上的字段名称及代码即可,完全不必依照传统资料库系统,必须通过增加或删除各资料库的字段,故本发明可避免因不当增删资料库内资料字段,所发生的资料库系统无法正常运作的事情。In the present invention, please also refer to shown in Fig. 6, the data table 6 of an input screen or output screen designed by the database program of this database system, this data table 6 is provided with a plurality of respectively for input or output The corresponding fields 60, 62 of index data and non-index data, the user can input the content of the data to be stored into each corresponding field 60, 62 on the data table 6 one by one through the data table 6, or from the database Output and display the data content to be read in each corresponding field 60, 62 of the data table 6. Because the corresponding field 62 for inputting non-indexed data on the data sheet 6 is designed according to the field name used on the comparison table, so if you want to increase the field, reduce the data table 6 for inputting non-indexed data The number of corresponding fields 62 in the data table 6 only needs to be modified by modifying the number of corresponding fields 62 on the data table 6 and the field names and codes on the comparison table. It is not necessary to follow the traditional database system at all, and must be added or deleted by adding or deleting each database field, so the present invention can avoid the database system not working properly due to improper addition or deletion of data fields in the database.

在本发明中,该资料库内该说明字段的长度,是通过预估欲储存至该资料库的每记录中所有非索引资料的总长度,以设定该说明字段的长度,而在减少或增加储存至每一记录中的非索引资料时,仅须更改该说明字段的长度,即可轻易达成,此外,由于该说明字段系用以储存输入至每一记录中的所有非索引资料,故无需如传统资料库系统需强制在储存装置中预先设定用以储存每一笔非索引资料的字段储存空间,如此,将可适当地减少该资料库容量。In the present invention, the length of the description field in the database is set by estimating the total length of all non-index data in each record to be stored in the database, and the length of the description field is reduced or When adding non-index data stored in each record, it can be easily achieved by only changing the length of the description field. In addition, since the description field is used to store all non-index data entered in each record, it There is no need to pre-configure field storage space for storing each piece of non-index data in the storage device as in the traditional database system, so that the capacity of the database can be appropriately reduced.

在本发明的一较佳实施例中,请参阅图7所示,该资料库系统的资料库程序是根据下列步骤,将使用者通过一输入画面的资料表所输入的索引及非索引资料,逐一储存至一资料库的一笔记录中:In a preferred embodiment of the present invention, as shown in FIG. 7, the database program of the database system is to use the index and non-index data input by the user through the data table of an input screen according to the following steps, To store one record in one database one by one:

步骤701,首先,在一显示装置上显示一输入画面的资料表,该资料表内用以输入索引资料的对应字段,系连结至一资料库内所定义的索引字段,该资料表内用以输入非索引资料的对应字段,系连结至一对照表;Step 701, firstly, display a data table of an input screen on a display device, the corresponding fields used for inputting index data in the data table are linked to the index fields defined in a database, and the data table is used for Enter the corresponding field of non-index data, which is linked to a comparison table;

步骤702,使用者通过该输入画面的资料表,将索引及非索引资料逐一输入至各该对应字段后,该资料库系统即将输入该资料表的索引资料,直接储存至该资料库的一笔记录内的索引字段中,并逐一读取该资料表内用以输入非索引资料的对应字段;Step 702, after the user inputs the index and non-index data into the corresponding fields one by one through the data table on the input screen, the database system will input the index data of the data table and store them directly in the database. In the index field in the record, and read the corresponding fields in the data table for inputting non-index data one by one;

步骤703,判断各该对应字段内是否有输入任何资料,若是,进行步骤704,否则,进行步骤706;Step 703, judging whether any data is input in each corresponding field, if so, proceed to step 704, otherwise, proceed to step 706;

步骤704,判断是否为最后的对应字段,若是,进行下列步骤,否则,进行步骤706;Step 704, judge whether it is the last corresponding field, if so, perform the following steps, otherwise, perform step 706;

步骤705,根据所读取到的所述的非索引资料的字段名称,自该代码对照表寻找对应的代码,并利用各该代码,依一定的编辑方式,将所述的非索引资料编写成一说明字串,以储存在该资料库的一说明字段中;Step 705, according to the read field name of the non-index data, find the corresponding code from the code comparison table, and use each of the codes to write the non-index data into a description string to be stored in a description field of the database;

步骤706,读取下一个对应字段后,再依照步骤705,进行处理。In step 706, after the next corresponding field is read, the processing is performed according to step 705.

在该实施例中,请参阅图8所示,该资料库系统的资料库程序是根据下列步骤,依使用者通过一输出画面的资料表所输入的索引资料,自对应的一资料库中搜索出一笔欲查寻的记录:In this embodiment, as shown in FIG. 8, the database program of the database system is to search from a corresponding database according to the index data input by the user through a data table on an output screen according to the following steps. Make a record to search:

步骤801,首先,使用者通过该输出画面的资料表,将索引资料输入到对应字段后,该资料库系统即根据输入该资料表的索引资料,自对应的一资料库,搜寻并读取与该输入索引资料相关联的一记录;Step 801, firstly, after the user enters the index data into the corresponding field through the data table of the output screen, the database system searches and reads from a corresponding database according to the index data input into the data table. a record associated with the input index data;

步骤802,读取该记录的各索引字段内所存放的资料,并将其显示在该输出画面的资料表上用以显示该索引资料的对应字段,并读取该记录的说明字段内所存放的说明字串;Step 802, read the data stored in each index field of the record, and display it on the data table of the output screen to display the corresponding field of the index data, and read the data stored in the description field of the record description string for

步骤803,根据该对照表所设的代码及字段名称,将该说明字串内所隐含的所有非索引资料,逐一予以解译出来;Step 803, according to the codes and field names set in the comparison table, all non-index data implied in the description string are interpreted one by one;

步骤804,将解译后的非索引资料,逐一显示在该输出画面的资料表上用以显示该非索引资料的对应字段上。Step 804 , displaying the interpreted non-indexed data one by one on the corresponding field for displaying the non-indexed data on the data table of the output screen.

以上所述,仅为本发明最佳的一具体实施例,但本发明的构造特征并不局限此,任何熟悉该项技艺者在本发明领域内,进行的变化或修饰,皆可涵盖在本发明的权利要求范围内。The above description is only the best specific embodiment of the present invention, but the structural features of the present invention are not limited thereto. Any changes or modifications made by those skilled in the art within the field of the present invention can be covered by this invention. within the scope of the claimed invention.

Claims (5)

1. 一种资料库系统的处理数据的方法,其特征在于:该方法是针对所欲储存的多个资料,定义一资料库系统中各资料库内每一记录的多个字段,所述的字段包含多个用以作为索引的字段及一说明字段,其中的非作为索引的资料,通过该资料库系统的一输入画面的资料表,逐一输入至该资料表的对应字段,再利用一对照表,将该资料表上各对应字段内所输入的资料,编辑成一说明字串,并将其储存在各该记录的说明字段,使在以后读取该记录时,该资料库系统可再依该对照表,编译出该说明字段内的各该资料内容,并将其分别显示在一输出画面的资料表的对应字段上。1. A method for processing data of a database system, characterized in that: the method is aimed at a plurality of data to be stored, defining a plurality of fields of each record in each database in a database system, the described The fields include a plurality of fields used as indexes and a description field, and the data not used as indexes are input to the corresponding fields of the data table one by one through the data table of an input screen of the database system, and then use a comparison Table, edit the data entered in each corresponding field on the data sheet into a description string, and store it in the description field of each record, so that when the record is read later, the database system can follow the The comparison table compiles each data content in the description field, and displays them respectively on the corresponding fields of the data table in an output screen. 2. 如权利要求1所述的资料库系统的处理数据的方法,其特征在于:其中该对照表包括欲储存至每一记录中属于非索引资料的名称,与对应所述名称的代码,输入至该输入资料表的对应字段的资料,根据该对照表,被编辑成包含各该代码及资料内容的一说明字串。2. The method for processing data in a database system according to claim 1, wherein the comparison table includes the name of the non-index data to be stored in each record, and the code corresponding to the name, input The data to the corresponding field of the input data table is edited into a description word string including each code and data content according to the comparison table. 3. 如权利要求1或2所述的资料库系统的处理数据的方法,其特征在于:其中该资料库系统在接收到通过该输入资料表的对应字段所输入的非索引资料时,可依据该对照表,将该资料表的对应字段名称转换为对应的代码,并利用一特定的编辑定义,将各该非索引资料所对应的代码与其资料内容间加入一识别符号,且在相邻的资料间,加入一分隔符号,以将通过该输入画面所输入的所有非索引资料,编辑成一说明字串。3. The method for processing data of the database system as claimed in claim 1 or 2, wherein the database system can, when receiving the non-index data input through the corresponding field of the input data table, according to The comparison table converts the corresponding field name of the data table into the corresponding code, and uses a specific editing definition to add an identification symbol between the code corresponding to each non-index data and its data content, and in the adjacent Add a separator between data to edit all non-index data input through the input screen into a description string. 4. 如权利要求3所述的资料库系统的处理数据的方法,其特征在于:其中该资料库系统根据下列步骤,将通过该输入资料表所输入的索引及非索引资料,逐一储存至该资料库的对应记录中:4. The data processing method of the database system according to claim 3, wherein the database system stores the index and non-index data input through the input data table one by one in the In the corresponding record of the database: 首先,在一显示装置上显示该输入资料表,该资料表内用以输入索引资料的对应字段,连结至一资料库内所定义的索引字段,该资料表内用以输入非索引资料的对应字段,连结至一对照表;First, display the input data form on a display device, the corresponding field for inputting index data in the data form is linked to the index field defined in a database, and the corresponding field for inputting non-index data in the data form field, linked to a lookup table; 将输入该资料表的索引资料,直接储存至该资料库的对应记录内的索引字段中,并逐一读取该资料表内用以输入非索引资料的对应字段;directly store the index data input into the data table into the index field in the corresponding record of the database, and read the corresponding fields in the data table for inputting non-index data one by one; 判断各该对应字段内是否有输入任何资料,若是,进行下列步骤;Determine whether any data is entered in each corresponding field, if so, perform the following steps; 判断是否为一最后的对应字段,若是,进行下列步骤;Determine whether it is a last corresponding field, if so, perform the following steps; 根据所读取到的所述非索引资料的字段名称,自该代码对照表寻找对应的代码,并利用各该代码,依一定的编辑方式,将所述的非索引资料编写成一说明字串,以储存在该资料库的说明字段中。According to the read field names of the non-index data, find the corresponding codes from the code comparison table, and use each of the codes to write the non-index data into a description string according to a certain editing method, to store in the description field of this database. 5. 如权利要求4所述的资料库系统的处理数据的方法,其特征在于:该资料库系统是根据下列步骤,依通过该输出资料表所输入的索引资料,自对应的资料库中搜索出一笔欲查寻的记录:5. The method for processing data in a database system as claimed in claim 4, characterized in that: the database system searches the corresponding database according to the index data input through the output data table according to the following steps Make a record to search: 首先,根据输入该输出资料表的索引资料,自对应的资料库,搜寻并读取与该输入的索引资料相关联的一记录;First, according to the index data input into the output data table, from the corresponding database, search and read a record associated with the input index data; 然后,读取该记录的各索引字段内所存放的资料,并将其显示在该输出画面的资料表上用以显示该索引资料的对应字段,并读取该记录的说明字段内所存放的说明字串;Then, read the data stored in each index field of the record, and display it on the data table of the output screen to display the corresponding field of the index data, and read the data stored in the description field of the record description string; 根据该对照表内所设的代码及字段名称,将该说明字串内所隐含的所有非索引资料,逐一予以解译出来;According to the codes and field names set in the comparison table, interpret all the non-index data implied in the description string one by one; 将解译后的非索引资料,逐一显示在该输出画面的资料表上用以显示该非索引资料的对应字段上。The interpreted non-index data are displayed one by one on the corresponding field for displaying the non-index data on the data table of the output screen.
CNB01136470XA 2001-10-18 2001-10-18 Method for processing data of database system Expired - Fee Related CN100421104C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB01136470XA CN100421104C (en) 2001-10-18 2001-10-18 Method for processing data of database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB01136470XA CN100421104C (en) 2001-10-18 2001-10-18 Method for processing data of database system

Publications (2)

Publication Number Publication Date
CN1412694A CN1412694A (en) 2003-04-23
CN100421104C true CN100421104C (en) 2008-09-24

Family

ID=4673686

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB01136470XA Expired - Fee Related CN100421104C (en) 2001-10-18 2001-10-18 Method for processing data of database system

Country Status (1)

Country Link
CN (1) CN100421104C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578175B (en) * 2012-12-31 2017-04-11 威盛電子股份有限公司 Searching method, searching system and nature language understanding system
CN108133337A (en) * 2018-02-09 2018-06-08 深圳市共进电子股份有限公司 The system and method that the order planning and productivity load of no formal product item number calculate

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968806A (en) * 2010-10-22 2011-02-09 天津南大通用数据技术有限公司 Data storage method, querying method and device
CN102231199A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 Method and device for processing transaction information asynchronously
EP3207473B1 (en) 2015-03-21 2019-01-30 Huawei Technologies Co. Ltd. System, method, and device for index compilation to optimize index usage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1253342A (en) * 1998-11-05 2000-05-17 深圳市华为技术有限公司 Dynamic field implementation method for database table in customer service center
US20010000536A1 (en) * 1998-07-08 2001-04-26 Tarin Stphen A. Value-instance-connectivity computer-implemented database

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010000536A1 (en) * 1998-07-08 2001-04-26 Tarin Stphen A. Value-instance-connectivity computer-implemented database
CN1253342A (en) * 1998-11-05 2000-05-17 深圳市华为技术有限公司 Dynamic field implementation method for database table in customer service center

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578175B (en) * 2012-12-31 2017-04-11 威盛電子股份有限公司 Searching method, searching system and nature language understanding system
CN108133337A (en) * 2018-02-09 2018-06-08 深圳市共进电子股份有限公司 The system and method that the order planning and productivity load of no formal product item number calculate
CN108133337B (en) * 2018-02-09 2022-03-04 深圳市共进电子股份有限公司 System and method for ordering production and capacity load calculation without formal product material number

Also Published As

Publication number Publication date
CN1412694A (en) 2003-04-23

Similar Documents

Publication Publication Date Title
US7624114B2 (en) Automatically generating web forms from database schema
US6745183B2 (en) Document retrieval assisting method and system for the same and document retrieval service using the same
US7707139B2 (en) Method and apparatus for searching and displaying structured document
US9870392B2 (en) Retrieval method and system
US9141691B2 (en) Method for automatically indexing documents
US20070073652A1 (en) Lightweight reference user interface
US20090276694A1 (en) System and Method for Document Display
CN111143370B (en) Method, apparatus and computer-readable storage medium for analyzing relationships between a plurality of data tables
US7373358B2 (en) User interface for maintaining categorization schemes
CN111553556A (en) Business data analysis method, device, computer equipment and storage medium
US20040078355A1 (en) Information management system
TWI381278B (en) Method for estabuishing links in web page and web page editing system thereof
CN105893574A (en) Data processing method and electronic device
CN117436421A (en) Standard file editing system, method and equipment
CN100421104C (en) Method for processing data of database system
US6879987B2 (en) Method for storing records in database or reading the same therefrom
CN116090416B (en) Standard writing method, system, equipment and medium based on standard knowledge graph
CN117493673A (en) Recommended methods, devices and electronic equipment for writing database access statements
US6963865B2 (en) Method system and program product for data searching
JP2002202973A (en) Structured document management device
JP3709890B2 (en) String search device
JP4693807B2 (en) Program development support system, method and program
JP3337717B2 (en) Database processing device and database processing method
CN120688450A (en) Text processing method, device, electronic device, storage medium and program product
JPH10254892A (en) Document retrieving and utilizing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080924

Termination date: 20161018