KR20170077935A - An update system for the database by using spreadsheet interface - Google Patents
An update system for the database by using spreadsheet interface Download PDFInfo
- Publication number
- KR20170077935A KR20170077935A KR1020150187691A KR20150187691A KR20170077935A KR 20170077935 A KR20170077935 A KR 20170077935A KR 1020150187691 A KR1020150187691 A KR 1020150187691A KR 20150187691 A KR20150187691 A KR 20150187691A KR 20170077935 A KR20170077935 A KR 20170077935A
- Authority
- KR
- South Korea
- Prior art keywords
- worksheet
- data
- update
- record
- database
- Prior art date
Links
Images
Classifications
-
- G06F17/30345—
-
- G06F17/246—
-
- G06F17/30312—
-
- G06F17/30339—
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a database updating system using a spreadsheet interface that fetches data from a database and displays it on a worksheet and reflects the updated data on the displayed worksheet to the database. An incoming data requesting unit; A worksheet display unit that provides a spreadsheet interface, generates a worksheet, and displays the structure of the target table and record data on the worksheet; A worksheet updating unit for updating the record data on the worksheet according to a user's input through the spreadsheet interface; An update definition unit that detects an updated record on the worksheet and defines a table structure and record data of the updated record; A query generating unit for generating a query statement for reflecting the table structure of the defined record and the record updated from the record data to the database; And a DB update unit for transmitting the generated query statement to the database to update the target table.
By fetching data in the form of a spreadsheet and directly modifying the table by the above method, the table of the corresponding database is updated, so that the user can update the database without knowledge of the database processing method such as the query statement.
Description
The present invention relates to a database update system using a spreadsheet interface that fetches a data set from a database and displays it on a spreadsheet interface system such as Excel and reflects the data modified by the user on the spreadsheet interface to update the database .
Generally, in order to update a database on the Web, a web program for processing the database and a query statement for instructing it are needed. That is, the update operation is performed by the SQL level in the database management system [Patent Document 1].
Specifically, in order to input, modify, or delete data recorded in a specific table in the database, it is updated through a server-side web program such as JavaServer Pages (JSP), Active Server Pages (ASP), or Hypertext Preprocessor (PHP). Specifically, the server-side Web program must connect to a database and create a query statement such as an SQL statement for processing data of the target table. If you send the created query statement to the database and request to process the query, the database processes the received query to update the tables in the database.
Therefore, in order for the web program to process the query of the database, the web screen for each table or item should be configured. In addition, there is a problem that an input screen must be separately developed for the number of target tables. Therefore, each query must be written by the developer himself, so that it takes a lot of time and lots of work. In addition, it is possible to handle only single data or a small amount of data in the created screen, and it is inconvenient for mass data processing and it takes much time to process.
To this end, various techniques for locally modifying a remote database on a network basis have been proposed to more effectively modify the database. As an example, a technology for modifying a database by caching and modifying a part of a multidimensional database on a user device and reflecting the same on a multidimensional database has been proposed (Patent Document 2). In addition, a technique of updating a periodic update using a specific file format such as a sand file has been proposed (Patent Document 3). Further, a technology for processing update of a subset database in a partial database is proposed (Patent Document 4).
However, all of the above prior arts are techniques for modifying another database, which is a part of the database, and reflecting it in the parent database. Therefore, there is a problem in that a database must be configured and processed locally. That is, the local user has to have knowledge to deal with the database.
In addition, a technique for integrating a large amount of data into a database has been proposed [Patent Document 5]. That is, it is a technique of performing a processing sequence including a plurality of consecutive jobs for converting a data set into converted data, and changing the database based on the converted data. However, the prior art is a technique of converting new data to a specific format and then converting the data into an original database and storing the original data. Therefore, there is a problem that a general user must configure a large amount of data in a specific format and can not process the data intuitively.
SUMMARY OF THE INVENTION The object of the present invention is to solve the above-mentioned problems, and it is an object of the present invention to provide a method and system for retrieving a data set from a database, displaying it on a spreadsheet interface system such as Excel, And a database updating system using the spreadsheet interface.
In order to achieve the above object, the present invention relates to a database update system using a spreadsheet interface, which is connected to a database via a network, comprising: a data request unit for requesting and fetching a data set of a target table from the database; A worksheet display unit that provides a spreadsheet interface, creates a worksheet and displays the structure of the data set and record data on the worksheet; A worksheet updating unit for updating the record data on the worksheet according to a user's input through the spreadsheet interface and displaying the update status of each record data; An update definition unit for defining a data set structure and record data of the updated record for the record updated on the worksheet; A query generator for generating a query statement for reflecting a data set structure of the defined record and a record updated from the record data to the database; And a DB updating unit for transmitting the created query statement to the database to update the target table.
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the data requesting unit gives a result obtained as a query for the entirety of the target table or the target table fetched from the database to the worksheet display unit as a data set, Extracts a query result using a query editor that performs a query on the table, and gives the extracted query result to the worksheet display unit as a dataset, and displays the result on the worksheet.
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the worksheet display unit displays the structure of the data set in a row on the worksheet, And records the data of the records.
In the database update system using the spreadsheet interface, the structure of the target table includes a field name of each data field, and further includes at least one of a display name, a data type, a condition, and a key field .
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the worksheet display unit displays, for each data field of the data set structure, a cell format or a column format for a column on a worksheet of the data field, And the data type is set to a data type of
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the worksheet display unit further generates a record field by adding a first update status field for indicating a record update state on the worksheet, The sheet update unit displays the update type in the first update status field of the record when the cell contents of one record on the worksheet is updated and the update definition unit refers to the first update status field on the worksheet, And the type of the update is determined.
Further, the present invention provides a database updating system using a spreadsheet interface, wherein, when the worksheet display unit generates the worksheet, an event is generated when the contents of the records on the worksheet are updated in an execution module linked with the worksheet And a script function that is called and executed by the event, and the script function automatically displays the update type in the first update status field when the record is updated.
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the update definition unit defines a data set structure as an XML document and defines updated data as a flat file, And the field value of each record is distinguished by the row delimiter.
According to another aspect of the present invention, there is provided a database updating system using a spreadsheet interface, wherein the worksheet display unit further generates a record constituting a second update state field for displaying a field update state on the worksheet, The worksheet update unit displays the update type of the change in the second update status field of the corresponding record field when the cell contents of one record on the worksheet is updated, and the update definition unit updates the key field of the record field and the second update And a structure of the dataset to be updated is generated by constructing only the updated field in the status field.
As described above, according to the database updating system using the spreadsheet interface according to the present invention, when data is fetched in the form of spreadsheet such as Excel, and the data is directly modified, the table of the corresponding database is updated. Therefore, It is possible to update the database without knowledge of the database.
In addition, according to the database updating system using the spreadsheet interface according to the present invention, the database is updated by using a spreadsheet, such as Excel, which is often used for office work, so that the data can be intuitively updated and the database can be updated .
In addition, according to the database updating system using the spreadsheet interface according to the present invention, a user can easily process a large amount of data, thereby creating and analyzing a desired data analysis report, Processing, and the like.
1 is a block diagram of a configuration of an overall system for implementing a database update system using a spreadsheet interface according to the present invention;
2 is a block diagram of an overall system for implementing a database update system using a spreadsheet interface according to the present invention;
3 is a block diagram of a configuration of a database update system using a spreadsheet interface in accordance with an embodiment of the present invention.
4 is an example of a screen for selecting a target table of an object database according to an embodiment of the present invention.
5 is an example of a screen displaying a schema of a table on a worksheet according to an embodiment of the present invention;
6 is an example of a screen displaying data of a table on a worksheet according to an embodiment of the present invention;
7 is an example of a screen displaying a state in which data of a table is updated on a worksheet according to the first embodiment of the present invention;
8 is an example of table information displayed in XML according to the first embodiment of the present invention.
9 is an example of a flat file that defines data to be updated according to the first embodiment of the present invention.
10 is an example of a screen displaying a state in which data of a table is updated on a worksheet according to the second embodiment of the present invention;
11 is an example of table information displayed in XML according to the second embodiment of the present invention.
12 is an example of a flat file that defines data to be updated according to the second embodiment of the present invention;
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the drawings.
In the description of the present invention, the same parts are denoted by the same reference numerals, and repetitive description thereof will be omitted.
First, an overall system for implementing a database updating system using a spreadsheet interface according to the present invention will be described with reference to FIG.
1, the overall system for implementing the present invention includes a
The
Meanwhile, the
In addition, the
Next, the
Meanwhile, the functions of the
As another example, the
As another example, the
As another example, without the
Next, the
In particular, the
Next, a database updating system using a spreadsheet interface according to a first embodiment of the present invention will be described in more detail with reference to FIG. As described above, the automatic database update system is a server-client system implemented by the
3, a database updating system using a spreadsheet interface according to an embodiment of the present invention includes a
First, the
Preferably, the dataset is data from one DB table.
Specifically, the
When one of the tables displayed on the user screen is selected, schema information for the corresponding table is retrieved. The schema of the destination database or target table is a detailed description of how the data in the table is organized. That is, the schema indicates the structure of the table data such as the name of each data field, the display name, the type (kind) of the data, and the condition.
As another example, the
That is, the
In another embodiment, the
As described above, the data set of the table obtained from the object database, the data set obtained by the query statement, or the data set filtered by the query statement are all the data sets to be updated. This will be hereinafter referred to as an initial data set (first data set).
Next, the
First, the
As an example, as shown in Fig. 5, a detailed structure of table data such as a name, a display name, a data type (kind), a condition, and a key field of each data field is displayed according to a column of the worksheet. Further, the type of data corresponding to each column is analyzed, and the display attributes (in particular, the display format for numbers) of each column are corrected to match the type of data (format). For example, if the name of the column is "Birthday" and the format of the field is a date format, set all the columns to date format. If the call is displayed, the data format is displayed accordingly.
In addition, the
The
That is, the initial data set consists of a number of records, each of which is displayed in a row on the worksheet. Cells corresponding to each column of the record show the field values of the corresponding record field. Particularly, since the data types of the columns of each field are analyzed in advance and all the columns are set in the corresponding format, all the columns of the corresponding records are displayed on the worksheet of the spreadsheet according to the data format.
In the example of FIG. 6, in the case of the EMPLOYEES table, this column (or column) does not allow duplication since EMPLOYEE_ID is the primary key.
In addition, the
On the other hand, the
Further, the
In addition, the
Next, the
That is, the
Each function of the
The
In addition, the
Preferably, no value or symbol is displayed in the update status field in a record (or row) in which no item is updated.
FIG. 7 shows a state in which a part of the record data in FIG. 6 is updated. That is, the record of the key 104 is deleted, the
Next, the
The
Further, the
First, the
The table information or the information of the data set as shown in FIG. 8 includes data on the following entity and its attributes. Preferably, the information on the structure of the table information or the data set includes a table name (automatically designated when a table is selected on the user screen), a DB connection code (automatically specified when a DB is connected on the user screen) Data type, whether to allow null values, and so on.
(1) ExecuteInfo: Database information to be executed
- ConnectionCode: Database code defined on the server.
(2) DataTable: table information to be updated, multiple tables can be processed in the same transaction
- Name: table name
- Caption: Display name
- TargetTable: the name of the table to be updated
(3) Column: Column information of the table (or data set)
- Name: Column name
- Caption: Column display name
- Constraint: key information P: Primary key V: not null N: nullable
- DataType: Data type C: String N: Numeric type, D: Data type
- UpdateFlag: Whether to include the column when generating the Update query
(4) Rows: Define data to process
- RowIndexCol: the column where the data row serial number will be located
- RowStateCol: Column to place the separator code to process the corresponding item in data handling
- TextType: The location of the data to be processed. FILE: Sent as an attachment. XML: Internal xml
The column information or the field information of the data set may represent the entire field information of the target table or may represent a part thereof. That is, if the target table is partially retrieved through a query, the field structure is generated for only some of the fields of the table.
In addition, the
Fig. 9 shows an example of a flat file. Preferably, the data defined in the spreadsheet screen is created as a text file of the form shown in FIG. 9 by the server, the column and the row delimiter defined in advance, and transmitted to the server. Here, as an example, column delimiters are denoted by " | ", and row delimiters are denoted by an "enter (or new line)"
In particular, in FIG. 9, the type of the update is displayed at the top of each line of how the corresponding record (corresponding row) is to be processed. Each update status symbol is as follows.
C: New input U: Data update D: Data deletion
Next, the
That is, the
In addition, the
Next, the
The
Therefore, preferably, the
Next, a database updating system using a spreadsheet interface according to a second embodiment of the present invention will be described in detail with reference to FIG. The second embodiment of the present invention is the same as the first embodiment, except that the update status field is displayed on one row in addition to the columns on the worksheet.
As shown in Fig. 10, the
Next, when one data field value (or cell value) is changed (updated) on the worksheet, the
In the example of FIG. 10, the data value is changed is a field of salary and phone number (number) in the records of the
Next, the
In the example of FIG. 10, the key field is "EMPLOYEE ID ", and the changed fields are salary and phone number. Therefore, only those fields (or columns) are used to create the structure of the dataset or the structure of the schema. The XML document of the data set structure created according to the above example is shown in FIG.
As shown in FIG. 11, the column field only shows fields for employee ID, telephone number, and salary for xml documents.
In addition, the
Next, the effect of the present invention will be described in more detail.
First, the number of executions of the present invention is not limited.
Since the data registered / modified / deleted by the user is transmitted to the server through the upload stream, it is possible to freely handle the single data to millions of large data. The data information is converted into a flat file separated by a predetermined row and column delimiter and uploaded to the server. The server reads the data from the upload stream, parses it according to the predetermined row and column delimiter, and transmits And binds it to a pre-generated query from the obtained xml information.
Also, mass data can be processed quickly.
The basic format for processing data in the update server is to access the database through the jdbc dirver and then parse the xml information sent from the client to generate a query statement corresponding to input, The client reads the data from the upload stream transmitted from the client and binds the variable to the pre-generated query.
At this time, among the connection objects, PreparedStatement is used to specify the size (Fetch size), and the bound data is added using the PreparedStatement's addBatch method. When the entire data is added, do. The advantage of this method is that it does not execute every time, but executes at once, reducing the load on the database and speeding up the speed.
In addition, DB function (DB function) is provided as a function.
It provides the option to process database function, user creation function, etc. as well as data processed by the user, so that the server provides the function to process the target column processing instead of data binding function.
You can also include queries such as Oracle functions, time functions such as Oracle sequence, sysdate, and DB functions such as rownum.
The invention made by the present inventors has been described concretely with reference to the embodiments. However, it is needless to say that the present invention is not limited to the embodiments, and that various changes can be made without departing from the gist of the present invention.
10: user terminal 20: client
30: update server 31: data request unit
32: worksheet display section 33: worksheet update section
34: update definition unit 35: query generation unit
36: DB updating unit 37:
40: Database
Claims (8)
A data request unit for requesting and fetching a data set of the target table from the database;
A worksheet display unit that provides a spreadsheet interface, creates a worksheet and displays the structure of the data set and record data on the worksheet;
A worksheet updating unit for updating the record data on the worksheet according to a user's input through the spreadsheet interface and displaying the update status of each record data;
An update definition unit for defining a data set structure and record data of the updated record for the record updated on the worksheet;
A query generator for generating a query statement for reflecting a data set structure of the defined record and a record updated from the record data to the database; And
And a DB updating unit for transmitting the generated query statement to the database to update the target table.
The data request unit may extract a query result using a query editor that gives a result obtained as a query on the entirety of the target table or the target table obtained from the database to the worksheet display unit as a data set or queries the imported target table And displays the extracted query result on the worksheet as the worksheet display unit as a data set.
Wherein the worksheet display unit displays the structure of the data set in a row on the worksheet and displays data of the records from a row below the row in which the structure of the data set is displayed. Update system.
Wherein the worksheet display unit sets a cell format or column format for each data field of the data set structure as a data type of the corresponding data field with respect to a column on a worksheet of the data field. Update system.
Wherein the worksheet display unit further generates a record field by adding a first update state field for indicating an update state of the record on the worksheet,
The worksheet update unit displays the update type in the first update status field of the record when the cell contents of one record on the worksheet is updated,
Wherein the update definition unit refers to the first update status field on the worksheet to determine whether or not to update each record and the update type.
Wherein the worksheet display unit includes a script function for generating an event when the contents of the record on the worksheet are updated by an execution module linked with the worksheet when the worksheet is created and called and executed by an event, Function automatically displays the update type in the first update status field when the corresponding record is updated.
The update definition unit defines the data set structure as an XML document and defines the updated data as a flat file, wherein the field definition of each record is defined by a column and a row delimiter defined in the flat file in advance A database update system using a spreadsheet interface.
Wherein the worksheet display unit further generates a record constituting a second update status field for displaying an updated state of the field on the worksheet,
The worksheet update unit displays the update type in the second update status field of the corresponding record field when the cell contents of one record on the worksheet is updated or updated,
Wherein the update definition unit generates a structure of a dataset to be updated by configuring only the fields updated or updated in the key field and the second update status field of the record field.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150187691A KR101769857B1 (en) | 2015-12-28 | 2015-12-28 | An update system for the database by using spreadsheet interface |
JP2016089138A JP6199439B2 (en) | 2015-12-28 | 2016-04-27 | Database update system using spreadsheet interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150187691A KR101769857B1 (en) | 2015-12-28 | 2015-12-28 | An update system for the database by using spreadsheet interface |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20170077935A true KR20170077935A (en) | 2017-07-07 |
KR101769857B1 KR101769857B1 (en) | 2017-08-22 |
Family
ID=59272660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150187691A KR101769857B1 (en) | 2015-12-28 | 2015-12-28 | An update system for the database by using spreadsheet interface |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6199439B2 (en) |
KR (1) | KR101769857B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190087841A (en) | 2018-01-17 | 2019-07-25 | (주)비아이매트릭스 | A data input/output system using grid interface |
KR20210050206A (en) * | 2019-10-28 | 2021-05-07 | 주식회사 한글과컴퓨터 | Knowledge database management device for building a knowledge database using tables included in spreadsheet documents and enabling user access to the knowledge database, and operating method thereof |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10540153B2 (en) | 2016-12-03 | 2020-01-21 | Thomas STACHURA | Spreadsheet-based software application development |
US10216494B2 (en) | 2016-12-03 | 2019-02-26 | Thomas STACHURA | Spreadsheet-based software application development |
US11726753B2 (en) | 2016-12-03 | 2023-08-15 | Thomas STACHURA | Spreadsheet-based software application development |
CA3216654A1 (en) * | 2017-12-03 | 2019-06-06 | Thomas Stachura | Spreadsheet-based software application development |
KR102490941B1 (en) * | 2020-12-11 | 2023-01-26 | (주)비아이매트릭스 | An online report creation system using Excel tool |
KR102499832B1 (en) * | 2020-12-18 | 2023-02-15 | (주)비아이매트릭스 | An online report creation system with query binding function |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003015920A (en) * | 2001-06-28 | 2003-01-17 | Shinsei Kaihatsu Kk | Database update system and method that use sheet of spreadsheet software as input screen, database update program that uses sheet of spreadsheet software as input screen and computer-readable recording medium with the program recorded thereon |
JP4101045B2 (en) * | 2002-12-13 | 2008-06-11 | 富士通株式会社 | Support method, support device, and computer program |
JP2004341770A (en) | 2003-05-15 | 2004-12-02 | Kazuo Kobayashi | Data management system and data management method |
KR100969656B1 (en) * | 2009-10-30 | 2010-07-14 | (주)비아이매트릭스 | An excel-based composing system for analyzing reports or views and the method thereof |
KR101013810B1 (en) * | 2010-01-15 | 2011-02-14 | (주)비아이매트릭스 | An excel-based management system for updating db tables and the method thereof |
JP2011227621A (en) * | 2010-04-16 | 2011-11-10 | Next-1 Co Ltd | Information processing apparatus, information processing method, and program |
JP2011227631A (en) * | 2010-04-16 | 2011-11-10 | Wincube Co Ltd | System for business management |
JP5645627B2 (en) * | 2010-12-08 | 2014-12-24 | 三菱電機株式会社 | Data input / output device |
JP2015210586A (en) | 2014-04-24 | 2015-11-24 | 秀一 黒木 | Data extraction editing device of various databases and program of the same |
-
2015
- 2015-12-28 KR KR1020150187691A patent/KR101769857B1/en active IP Right Grant
-
2016
- 2016-04-27 JP JP2016089138A patent/JP6199439B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190087841A (en) | 2018-01-17 | 2019-07-25 | (주)비아이매트릭스 | A data input/output system using grid interface |
KR20210050206A (en) * | 2019-10-28 | 2021-05-07 | 주식회사 한글과컴퓨터 | Knowledge database management device for building a knowledge database using tables included in spreadsheet documents and enabling user access to the knowledge database, and operating method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP2017120610A (en) | 2017-07-06 |
KR101769857B1 (en) | 2017-08-22 |
JP6199439B2 (en) | 2017-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101769857B1 (en) | An update system for the database by using spreadsheet interface | |
US10831753B2 (en) | Query plan generation and execution in a relational database management system with a temporal-relational database | |
KR101899055B1 (en) | A database update method based on spreadsheet interface by making queries optimized for updated records | |
CN105378721B (en) | Knowledge capture and discovery system | |
US8190555B2 (en) | Method and system for collecting and distributing user-created content within a data-warehouse-based computational system | |
KR101769853B1 (en) | A batch update system based on spreadsheet interface for the database by using query templates | |
US10657687B2 (en) | Dynamic chaining of data visualizations | |
KR102034679B1 (en) | A data input/output system using grid interface | |
US20060129609A1 (en) | Database synchronization using change log | |
US12079181B2 (en) | Efficient indexing for querying arrays in databases | |
US20080263142A1 (en) | Meta Data Driven User Interface System and Method | |
KR101908556B1 (en) | A database update system based on spreadsheet interface by finding out updated records automatically | |
US10942732B1 (en) | Integration test framework | |
US8489644B2 (en) | System and method for managing virtual tree pages | |
US11693822B2 (en) | Worker thread processing | |
US8316013B2 (en) | Programmatic retrieval of tabular data within a cell of a query result | |
US10331715B2 (en) | Metadata enrichment with a keyword definition editor | |
US20040249792A1 (en) | Automated query file conversions upon switching database-access applications | |
KR100984976B1 (en) | The integrating and searching method of alien 2-dimension table | |
US10769164B2 (en) | Simplified access for core business with enterprise search | |
US11080903B2 (en) | Visualization with conditional characteristic | |
US10311155B2 (en) | Dynamic master record selection | |
JP2003296342A (en) | Meta data generation method and device | |
Syme et al. | Integrating External Data and Services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right |