WO2019085354A1 - 基于Excel系统界面的数据库联动方法、电子装置及存储介质 - Google Patents

基于Excel系统界面的数据库联动方法、电子装置及存储介质 Download PDF

Info

Publication number
WO2019085354A1
WO2019085354A1 PCT/CN2018/077637 CN2018077637W WO2019085354A1 WO 2019085354 A1 WO2019085354 A1 WO 2019085354A1 CN 2018077637 W CN2018077637 W CN 2018077637W WO 2019085354 A1 WO2019085354 A1 WO 2019085354A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
data
data table
excel
user
Prior art date
Application number
PCT/CN2018/077637
Other languages
English (en)
French (fr)
Inventor
高宁
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019085354A1 publication Critical patent/WO2019085354A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application

Definitions

  • the present application relates to the field of data processing, and in particular, to a database linkage method, an electronic device, and a storage medium based on an Excel system interface.
  • the tester In order to obtain the test data that meets the test requirements in the process of performing the software test, the tester is required to continuously perform the associated operations on the data stored in the corresponding database of the software according to the requirements of the pre-stored test cases, for example, uploading Data, delete data, modify data, and compare data.
  • the tester mainly writes a corresponding database query script (for example, a SQL script) according to the data information required to operate, and obtains data that needs to be associated from the database corresponding to the test software, and the professional requirements of the tester are relatively high. High, and there are problems that are cumbersome and error-prone.
  • the present application proposes a database linkage method, an electronic device and a storage medium based on an Excel system interface, so that a user can operate data of a related database through an Excel worksheet, and the operation process is simple and easy to implement.
  • the first aspect of the present application proposes a database linkage method based on an Excel system interface, and the method includes the following steps:
  • the Excel worksheet After receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquiring a user data table selection item, and generating a predetermined data table in the database according to the obtained data table selection item.
  • the Excel worksheet includes a name of a corresponding column in the predetermined data table, data corresponding to the column, and a table name of the predetermined data table;
  • a second aspect of the present application provides an electronic device, where the electronic device includes a memory and a processor, and the memory stores a database linkage program based on an Excel system interface, where the Excel system interface is used.
  • the database linkage program is executed by the processor, the following steps are implemented:
  • A1 After receiving an instruction to operate the data in the predetermined database, generate a database link operation interface on the predetermined Excel system interface, where the database link operation interface includes a plurality of database data operation menu options;
  • the Excel worksheet After receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquiring a user data table selection item, and generating a predetermined data table in the database according to the obtained data table selection item.
  • the Excel worksheet includes a name of a corresponding column in the predetermined data table, data corresponding to the column, and a table name of the predetermined data table;
  • the third aspect of the present application provides a computer readable storage medium storing a database linkage program based on an Excel system interface, the database linkage program based on the Excel system interface may be at least one processor Executing to cause the at least one processor to perform the following steps:
  • the Excel worksheet After receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquiring a user data table selection item, and generating a predetermined data table in the database according to the obtained data table selection item.
  • the Excel worksheet includes a name of a corresponding column in the predetermined data table, data corresponding to the column, and a table name of the predetermined data table;
  • the Excel system interface-based database linkage method, the electronic device and the computer readable storage medium proposed by the present application are pre-determined after receiving an instruction to operate the data in the predetermined database.
  • a database link operation interface is generated on the Excel system interface, and the database link operation interface includes a plurality of database data operation menu options; and then after receiving at least one database data operation menu option command selected by the user based on the database link operation interface Generating an Excel worksheet corresponding to the predetermined data table in the database, the Excel worksheet including a column name of the predetermined data table and data corresponding to the column name, and the predetermined data table a table name; finally, after receiving a sending instruction that the user clicks based on the Excel worksheet, generating a SQL script according to the table name of the predetermined data table, and linking the database to find the predetermined data table, according to The data in the Excel worksheet is paired in the predetermined data table The data of the name should be listed accordingly. This enables the user to operate on the data of the relevant database through the Excel worksheet
  • 1 is a schematic diagram of an optional hardware architecture of an electronic device of the present application
  • FIG. 2 is a schematic diagram of a program module of a database linkage program based on an Excel system interface in a preferred embodiment of the electronic device of the present application;
  • FIG. 3 is a flow chart of an implementation of a preferred embodiment of a database linkage method based on an Excel system interface.
  • FIG. 1 it is a schematic diagram of an optional hardware architecture of the electronic device 1 of the present application.
  • the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 communicably connected to each other through a communication bus 14. It is to be noted that FIG. 1 only shows the electronic device 1 having the components 11-14, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD or DX memory, etc.), a random access memory (RAM), and a static random access.
  • Memory SRAM
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • PROM programmable read only memory
  • magnetic memory magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SMC), and a secure digital (Secure Digital, SD). ) cards, flash cards, etc.
  • the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device thereof.
  • the memory 11 is generally used to store an operating system installed in the electronic device 1 and various types of application software, such as a configuration file pushing program supporting a grayscale mode. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 1.
  • the processor 12 is configured to run program code or processing data stored in the memory 11, for example, an Excel system interface-based database linkage program or the like stored in the memory 11.
  • the network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
  • System bus 14 is used to implement a communication connection between these components.
  • Figure 1 shows only a server with components 11-14 and a profile push program that supports grayscale mode, but it should be understood that not all illustrated components may be implemented, and alternative implementations may be implemented more or less. Component.
  • the electronic device 1 may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be suitably referred to as a display screen or display unit for displaying information processed in the social network based user keyword extraction device and a user interface for displaying visualization.
  • the database linkage program based on the Excel system interface stored in the memory 11 is executed by the processor 12 to implement the following steps:
  • A1 After receiving an instruction to operate the data in the predetermined database, generate a database link operation interface on the predetermined Excel system interface, where the database link operation interface includes a plurality of database data operation menu options;
  • the Excel worksheet After receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquiring a user data table selection item, and generating a predetermined data table in the database according to the obtained data table selection item.
  • the Excel worksheet includes a name of a corresponding column in the predetermined data table and data corresponding to the column name, and a table name of the predetermined data table;
  • the database linkage program based on the Excel system interface generates corresponding function icons on the Excel system interface, for example, a database tool icon, a format tool icon, a setting document confidentiality icon, a form and a property file conversion icon, and an export Testlink.
  • Case icon the user clicks the corresponding database tool icon, that is, issues an instruction to operate on the data in the predetermined database, and after receiving the instruction of the operation, generates a database link operation interface on the predetermined Excel system interface
  • the database link operation interface includes various database data operation menu options, for example, upload data menu, modify data menu, delete data menu, compare data menu, generate INSERT statement menu, batch processing menu, etc.
  • user clicks corresponding database data operation menu For example, if the user clicks the upload data menu as an example, if the user clicks the upload data menu, an instruction to upload data to the database is issued, and after receiving the instruction of uploading the data, a predetermined data table in the database is generated.
  • Excel worksheet corresponding to the column name of the Excel worksheet includes a predetermined data table and the column name corresponding to the data table and a predetermined data table.
  • the window after receiving the instruction for uploading data, generating a window asking whether the user selects to automatically obtain a data table, the window includes a first option for the user to select to automatically obtain the data table and for the user to select Manually generating a second option of the data table, if the user automatically obtains the data table based on the first selection item, issuing an automatic data table instruction, and generating an editable data table information setting after receiving the automatic data table instruction
  • the setting interface includes a first input box for the user to input a data table name and/or a third option for the user to select a data table name, and the user receives the data table name based on the first input box or the user is based on the
  • the database is linked and the corresponding data table is read according to the input data table name, and the read data table is displayed to the user in an Excel worksheet on the Excel system interface.
  • a prompt message is sent to prompt the user to automatically edit the Excel worksheet corresponding to the data table in the database based on the Excel system interface.
  • the above-mentioned Excel worksheets each include a column name in a predetermined data table and data corresponding to the column name.
  • the database data menu may further include a data table generation menu option.
  • the user may simultaneously click the data table to generate menu options and select a database data menu operation.
  • Options such as uploading data, deleting data, comparing data, etc.
  • the database linkage program compares the priority of the data table generation menu with the database data menu operation option. Priority, and the priority of the data table generation menu determined in this embodiment is higher than the database data menu operation option, so after receiving the data table generation selection instruction and the database data menu operation instruction, the editable data is first generated.
  • the setting interface includes a first input box for the user to input a data table name and/or a third selection item for the user to select a data table name, and receives the data table name input by the user based on the first input box or The name of the data table selected by the user based on the third option , A link to the database and reads the corresponding data table in accordance with the table name input data, the read data table and Excel worksheet to show to the user on the system interface Excel. Further, the user can edit the content in the Excel worksheet. After editing, the Excel worksheet includes the column name in the predetermined data table and the data corresponding to the column name, and the table name of the predetermined data table.
  • the sending instruction of the user clicking based on the Excel worksheet is issued, and after receiving the sending instruction, the SQL script is generated based on the table name of the predetermined data table, and the link is generated.
  • the database finds a predetermined data table, performs an upload operation, and specifically uploads data corresponding to the column name in the Excel worksheet to a column name corresponding to the predetermined data table.
  • the user clicks the modify data menu that is, an instruction to modify the data to the database is issued, and after receiving the instruction to modify the data, the data in the database is first obtained and determined in advance.
  • the corresponding Excel worksheet of the table the user can also automatically edit and generate an Excel worksheet corresponding to the data in the database as needed, and further, the user can also edit the content in the Excel worksheet, when the user completes editing.
  • the modification operation is performed, specifically, the data of the column name corresponding to the predetermined data table is modified to the data of the column name corresponding to the Excel worksheet.
  • the electronic device proposed by the foregoing embodiment generates a database link operation interface on a predetermined Excel system interface after receiving an instruction to operate the data in the predetermined database, where the database link operation interface includes multiple databases.
  • Data operation menu option then, after receiving at least one database data operation menu option instruction selected by the user based on the database link operation interface, generating an Excel worksheet corresponding to the predetermined data table in the database, the Excel work
  • the table includes a column name of the predetermined data table and data corresponding to the column name, and a table name of the predetermined data table; finally, after receiving a sending instruction that the user clicks based on the Excel worksheet, according to the Generating a SQL script by the table name of the predetermined data table, and linking the database to find the predetermined data table, and data of the corresponding column name in the predetermined data table according to the data in the Excel work table Take the appropriate action. This enables the user to operate on the data of the relevant database through the Excel worksheet, and the operation process is simple and easy to implement.
  • the database linkage program based on the Excel system interface may also be divided into one or more modules, one or more modules are stored in the memory 11 and are processed by one or more processors. (Processing in the present embodiment for the processor 12) to complete the application, a module referred to in this application refers to a series of computer program instruction segments that you can perform a particular function.
  • FIG. 2 it is a schematic diagram of a program module of a database linkage program based on an Excel system interface in a preferred embodiment of the electronic device of the present application.
  • a database linkage program based on an Excel system interface can be divided into The operation interface generation module 201, the Excel worksheet generation module 202, and the operation module 203, the functions or operation steps implemented by the modules 201-203 are similar to the above, and are not described in detail herein, for example, where:
  • the operation interface generating module 201 is configured to generate a database link operation interface on the predetermined Excel system interface after receiving an instruction to operate the data in the predetermined database, where the database link operation interface includes multiple database data. Operation menu option;
  • the Excel worksheet generating module 202 is configured to: after receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquire a data table selection item of the user, and generate and the database according to the obtained data table selection item.
  • An Excel worksheet corresponding to the predetermined data table the Excel worksheet including a name of a corresponding column in the predetermined data table, data corresponding to the column, and a table name of the predetermined data table ;
  • the operation module 203 is configured to: after receiving a sending instruction that is clicked by the user based on the Excel worksheet, generate a SQL script according to the table name of the predetermined data table, and link the database to find the predetermined data table, Corresponding operations are performed on data of corresponding columns in the predetermined data table according to data in the Excel worksheet.
  • the present application also proposes a database linkage method based on an Excel system interface.
  • FIG. 3 it is a flowchart of an implementation of a preferred embodiment of a database linkage method based on an Excel system interface. The method can be performed by a device that can be implemented by software and/or hardware.
  • the database linkage method based on the Excel system interface includes the following steps S301-S303.
  • Step S301 after receiving an instruction to operate the data in the predetermined database, generate a database link operation interface on the predetermined Excel system interface, where the database link operation interface includes a plurality of database data operation menu options;
  • Step S302 After receiving the at least one database data operation menu option command selected by the user based on the database link operation interface, acquiring a data table selection item of the user, and generating predetermined data in the database according to the obtained data table selection item.
  • the Excel worksheet includes a name of a corresponding column in the predetermined data table and data corresponding to the column name, and a table name of the predetermined data table;
  • Step S303 after receiving a sending instruction that the user clicks based on the Excel worksheet, generate a SQL script according to the table name of the predetermined data table, and link the database to find the predetermined data table, according to the The data in the Excel worksheet performs corresponding operations on the data of the corresponding column in the predetermined data table.
  • the database linkage program based on the Excel system interface generates corresponding function icons on the Excel system interface, for example, a database tool icon, a format tool icon, a setting document confidentiality icon, a form and a property file conversion icon, and an export Testlink.
  • Case icon the user clicks the corresponding database tool icon, that is, issues an instruction to operate on the data in the predetermined database, and after receiving the instruction of the operation, generates a database link operation interface on the predetermined Excel system interface
  • the database link operation interface includes various database data operation menu options, for example, upload data menu, modify data menu, delete data menu, compare data menu, generate INSERT statement menu, batch processing menu, etc.
  • user clicks corresponding database data operation menu For example, if the user clicks the upload data menu as an example, if the user clicks the upload data menu, an instruction to upload data to the database is issued, and after receiving the instruction of uploading the data, a predetermined data table in the database is generated.
  • Excel worksheet corresponding to the column name of the Excel worksheet includes a predetermined data table and the column name corresponding to the data table and a predetermined data table.
  • the window after receiving the instruction for uploading data, generating a window asking whether the user selects to automatically obtain a data table, the window includes a first option for the user to select to automatically obtain the data table and for the user to select Manually generating a second option of the data table, if the user automatically obtains the data table based on the first selection item, issuing an automatic data table instruction, and generating an editable data table information setting after receiving the automatic data table instruction
  • the setting interface includes a first input box for the user to input a data table name and/or a third option for the user to select a data table name, and the user receives the data table name based on the first input box or the user is based on the
  • the database is linked and the corresponding data table is read according to the input data table name, and the read data table is displayed to the user in an Excel worksheet on the Excel system interface.
  • a prompt message is sent to prompt the user to automatically edit the Excel worksheet corresponding to the data table in the database based on the Excel system interface.
  • the above-mentioned Excel worksheets each include a column name in a predetermined data table and data corresponding to the column name.
  • the database data menu may further include a data table generation menu option.
  • the user may simultaneously click the data table to generate menu options and select a database data menu operation.
  • Options such as uploading data, deleting data, comparing data, etc.
  • the database linkage program compares the priority of the data table generation menu with the database data menu operation option. Priority, and the priority of the data table generation menu determined in this embodiment is higher than the database data menu operation option, so after receiving the data table generation selection instruction and the database data menu operation instruction, the editable data is first generated.
  • the setting interface includes a first input box for the user to input a data table name and/or a third selection item for the user to select a data table name, and receives the data table name input by the user based on the first input box or The name of the data table selected by the user based on the third option
  • the database is linked and the corresponding data table is read according to the input data table name, and the read data table is displayed to the user as an Excel worksheet on the Excel system interface.
  • the user can edit the content in the Excel worksheet.
  • the Excel worksheet includes the column name in the predetermined data table and the data corresponding to the column name, and the table name of the predetermined data table.
  • the sending instruction of the user clicking based on the Excel worksheet is issued, and after receiving the sending instruction, the SQL script is generated based on the table name of the predetermined data table, and the link is generated.
  • the database finds a predetermined data table, performs an upload operation, and specifically uploads data corresponding to the column name in the Excel worksheet to a column name corresponding to the predetermined data table.
  • the user clicks the modify data menu that is, an instruction to modify the data to the database is issued, and after receiving the instruction to modify the data, the data in the database is first obtained and determined in advance.
  • the corresponding Excel worksheet of the table the user can also automatically edit and generate an Excel worksheet corresponding to the data in the database as needed, and further, the user can also edit the content in the Excel worksheet, when the user completes editing.
  • the modification operation is performed, specifically, the data of the column name corresponding to the predetermined data table is modified to the data of the column name corresponding to the Excel worksheet.
  • the database linkage method based on the Excel system interface proposed in the above embodiment, after receiving an instruction to operate on the data in the predetermined database, generates a database link operation interface on the predetermined Excel system interface, and the database link
  • the operation interface includes a plurality of database data operation menu options; and then, after receiving the at least one database data operation menu option instruction selected by the user based on the database link operation interface, generating an Excel job corresponding to the predetermined data table in the database a table, the Excel worksheet includes a column name of the predetermined data table and data corresponding to the column name, and a table name of the predetermined data table; and finally, when the user receives a click based on the Excel worksheet
  • generating a SQL script according to the table name of the predetermined data table, and linking the database to find the predetermined data table, and the predetermined data table according to the data in the Excel work table Corresponding operations are performed on the data corresponding to the column name. This enables the user to operate on the data of the relevant database through the Excel worksheet, and the
  • the present application further provides a computer readable storage medium on which a database linkage program based on an Excel system interface is stored.
  • a database linkage program based on an Excel system interface is stored on which a database linkage program based on an Excel system interface is stored.
  • a database link operation interface is generated on the predetermined Excel system interface, and the database link operation interface includes a plurality of database data operation menu options;
  • the specific embodiment of the computer readable storage medium of the present application is substantially the same as the foregoing embodiments of the electronic device and the database linkage method based on the Excel system interface, and is not described herein.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种基于Excel系统界面的数据库联动方法、电子装置及存储介质,所述方法包括:在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面(S301);在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表(S302);在收到用户基于所述Excel工作表点击的发送指令后,生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,对所述预先确定的数据表中的列名称对应的数据进行相应的操作(S303)。能够使用户通过Excel工作表对相关数据库的数据进行操作,且操作过程简单易实现。

Description

基于Excel系统界面的数据库联动方法、电子装置及存储介质
本申请要求于2017年11月01日提交中国专利局、申请号为201711059332.7,发明名称为“基于Excel系统界面的数据库联动方法、电子装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理领域,尤其涉及一种基于Excel系统界面的数据库联动方法、电子装置及存储介质。
背景技术
随着计算机技术的发展,产生了各种应用软件。例如,文字处理软件、媒体播放软件、辅助设计软件、信息管理软件等。通常,一款应用软件在安装使用之前,为了保证软件的正常运行,必须要经过专业测试人员的测试。
在进行软件测试的过程中为了获取满足测试需求的测试数据,需要测试人员根据预先存储的测试用例提出的需求,不断地对该软件对应的数据库中存储的数据进行相关联的操作,例如,上载数据、删除数据、修改数据、以及对比数据等。目前,测试人员主要通过根据需要操作的数据信息编写对应的数据库查询脚本(例如SQL脚本),来从测试软件对应的数据库中获取需要进行关联操作的数据,这种方式对测试人员的专业要求较高,且存在操作过程繁琐,容易出错的问题。
发明内容
有鉴于此,本申请提出一种基于Excel系统界面的数据库联动方法、电子装置及存储介质,使用户能够通过Excel工作表对相关数据库的数据进行操作,操作过程简单且易实现。
首先,为实现上述目的,本申请第一方面提出基于Excel系统界面的数据库联动方法,所述方法包括如下步骤:
S1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
S2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
S3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
此外,为实现上述目的,本申请第二方面提供一种电子装置,所述电子装置包括存储器、处理器,所述存储器上存储有基于Excel系统界面的数据库联动程序,所述基于Excel系统界面的数据库联动程序被所述处理器执行时实现如下步骤:
A1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
A2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
A3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
此外,本申请第三方面提出一种计算机可读存储介质,所述计算机可读存储介质存储有基于Excel系统界面的数据库联动程序,所述基于Excel系统界面的数据库联动程序可被至少一个处理器执行,以使所述至少一个处理器执行以下步骤:
B1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
B2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
B3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
相较于现有技术,本申请所提出的基于Excel系统界面的数据库联动方法、电子装置及计算机可读存储介质,在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;接着在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,所述 Excel工作表包括预先确定的数据表的列名称及所述列名称对应的数据、以及所述预先确定的数据表的表名;最后在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列名称的数据进行相应的操作。这样能够使用户通过Excel工作表对相关数据库的数据进行操作,且操作过程简单易实现。
附图说明
图1是本申请电子装置一可选的硬件架构的示意图;
图2是本申请电子装置较佳实施例中的基于Excel系统界面的数据库联动程序的程序模块示意图;
图3是本申请基于Excel系统界面的数据库联动方法较佳实施例的实施流程图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领 域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
参阅图1所示,是本申请电子装置1一可选的硬件架构的示意图。本实施例中,电子装置1可包括,但不仅限于,可通过通信总线14相互通信连接的存储器11、处理器12、及网络接口13。需要指出的是,图1仅示出了具有组件11-14的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
其中,存储器11至少包括一种类型的可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置1的内部存储单元,例如电子装置1的硬盘或内存。在另一些实施例中,存储器11也可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置1的内部存储单元也包括其外部存储设备。本实施例中,存储器11通常用于存储安装于电子装置1的操作系统和各类应用软件,例如支持灰度模式的配置文件推送程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通常用于控制电子装置1的总体操作。本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行存储在存储器11中的基于Excel系统界面的数据库联动程序等。
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用于在电子装置1与其他电子设备之间建立通信连接。
系统总线14用于实现这些组件之间的通信连接。
图1仅示出了具有组件11-14以及支持灰度模式的配置文件推送程序的服务器,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,电子装置1还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在基于社交网络的用户关键词提取装置中处理的信息以及用于显示可视化的用户界面。
进一步地,在图1所示的电子装置1的一实施例中,存储器11中存储的基于Excel系统界面的数据库联动程序被处理器12执行时实现如下步骤:
A1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
A2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列名称对应的数据、以及所述预先确定的数据表的表名称;
A3、在收到用户基于所述Excel工作表点击的发送指令后,根据预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的 数据进行相应的操作。
在本实施例中,基于Excel系统界面的数据库联动程序在Excel系统界面上生成有对应的功能图标,例如,数据库工具图标、格式工具图标、设置文档密级图标、表单与属性文件转换图标、导出Testlink案例图标等,用户点击对应的数据库工具图标,即发出对预先确定的数据库中数据进行操作的指令,在收到该操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,该数据库链接操作界面包括多种数据库数据操作菜单选项,例如,上载数据菜单、修改数据菜单、删除数据菜单、比较数据菜单、生成INSERT语句菜单、批量处理菜单等,用户点击对应的数据库数据操作菜单选项,例如,以用户点击上载数据菜单为例,若用户点击上载数据菜单,即发出向数据库上载数据的指令,在收到该上载数据的指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,该Excel工作表包括预先确定的数据表中的列名称及与列名称相对应的数据、以及预先确定的数据表的表名。
其中,在一种实施方式中,在收到该上载数据的指令后,生成询问用户是否选择自动获取数据表的窗口,该窗口包括供用户选择自动获取数据表的第一选择项和供用户选择手动生成数据表的第二选择项,若用户基于第一选择项选择自动获取数据表,则发出自动获取数据表指令,在收到该自动获取数据表指令后,生成可编辑的数据表信息设置界面,该设置界面包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项,在收到用户基于第一输入框输入的数据表名称或用户基于第三选择项选择的数据表名称后,链接该数据库并根据输入的数据表名称读取对应的数据表,并将所读取的数据表在Excel系统界面上以Excel工作表展示给用户。
若用户基于第二选择项选择手动生成数据表,则发出提示信息,提示用户基于Excel系统界面自动编辑与该数据库中的数据表相对应的Excel工作表。上述提到的Excel工作表均包括预先确定的数据表中的列名称及所述列名称对应的数据。
需要说明的是,在上述实施例中,所述数据库数据菜单还可以包括数据表生成菜单选项,在另一种实施方式中,用户可以同时点击数据表生成菜单选项以及选择一种数据库数据菜单操作选项(例如上载数据、删除数据、比较数据等),在收到数据表生成选择指令以及数据库数据菜单操作指令后,数据库联动程序会比较数据表生成菜单的优先级与数据库数据菜单操作选项之间的优先级,而在本实施例预先确定的数据表生成菜单的优先级别高于数据库数据菜单操作选项,所以在收到数据表生成选择指令以及数据库数据菜单操作指令后,首先生成可编辑的数据表信息设置界面,该设置界面包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项,在收到用户基于第一输入框输入的数据表名称或用户基于第三选择项选择的数据表名称后,链接该数据库并根据输入的数据表名称读取对应的数据表,并将所读取的数据表在Excel系统界面上以Excel工作表展示给用户。进一步地,用户可以对Excel工作表中的内容进行编辑,编辑之后Excel工作表包括预先确定的数据表中的列名称及所述列名称对应的数据、以及预先确定的数据表的表名,当用户编辑完成之后,基于该Excel工作表点击发送之后,则发出用户基于该Excel工作表点击的发送指令,在收到该发送指令后,基于预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到预先确定的数据表,执行上载操作,具体地,根据Excel工作表中对应列名称的数据上载到预先确定的数据表对应的列名称中。
同样地,以用户点击修改数据菜单为例,例如,用户点击修改数据菜单,即发出向数据库修改数据的指令,在收到该修改数据的指令后,首先获取与预先确定的该数据库中的数据表相对应的Excel工作表,用户也可以根据需要自动编辑生成与该数据库中的数据相对应的Excel工作表,进一步地,用户还可以对该Excel工作表中的内容进行编辑,当用户编辑完成之后,基于该Excel工作表点击发送之后,则发出用户基于该Excel工作表点击的发送指令,在收到该发送指令后,基于预先确定的数据表的表名生成SQL脚本,并链接该数 据库查找到预先确定的数据表,执行修改操作,具体地,将预先确定的数据表对应列名称的数据修改为Excel工作表对应列名称的数据。
上述实施例提出的电子装置,在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;接着在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括预先确定的数据表的列名称及所述列名称对应的数据、以及所述预先确定的数据表的表名;最后在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列名称的数据进行相应的操作。这样能够使用户通过Excel工作表对相关数据库的数据进行操作,且操作过程简单易实现。
可选地,在其他的实施例中,基于Excel系统界面的数据库联动程序还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例中为处理器12)所执行,以完成本申请,本申请所称的模块是指你能够完成特定功能的一系列名称计算机程序指令段。
例如,参照图2所示,为本申请电子装置较佳实施例中的基于Excel系统界面的数据库联动程序的程序模块示意图,在该实施例中,基于Excel系统界面的数据库联动程序可以被分割为操作界面生成模块201、Excel工作表生成模块202、操作模块203,所述模块201-203所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:
操作界面生成模块201用于在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
Excel工作表生成模块202用于在收到用户基于该数据库链接操作界面选 择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
操作模块203用于在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
此外,本申请还提出一种基于Excel系统界面的数据库联动方法。参照图3所示,为本申请基于Excel系统界面的数据库联动方法较佳实施例的实施流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。
在本实施例中,基于Excel系统界面的数据库联动方法包括如下步骤S301-S303。
步骤S301,在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
步骤S302、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列名称对应的数据、以及所述预先确定的数据表的表名称;
步骤S303、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
在本实施例中,基于Excel系统界面的数据库联动程序在Excel系统界面 上生成有对应的功能图标,例如,数据库工具图标、格式工具图标、设置文档密级图标、表单与属性文件转换图标、导出Testlink案例图标等,用户点击对应的数据库工具图标,即发出对预先确定的数据库中数据进行操作的指令,在收到该操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,该数据库链接操作界面包括多种数据库数据操作菜单选项,例如,上载数据菜单、修改数据菜单、删除数据菜单、比较数据菜单、生成INSERT语句菜单、批量处理菜单等,用户点击对应的数据库数据操作菜单选项,例如,以用户点击上载数据菜单为例,若用户点击上载数据菜单,即发出向数据库上载数据的指令,在收到该上载数据的指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,该Excel工作表包括预先确定的数据表中的列名称及与列名称相对应的数据、以及预先确定的数据表的表名。
其中,在一种实施方式中,在收到该上载数据的指令后,生成询问用户是否选择自动获取数据表的窗口,该窗口包括供用户选择自动获取数据表的第一选择项和供用户选择手动生成数据表的第二选择项,若用户基于第一选择项选择自动获取数据表,则发出自动获取数据表指令,在收到该自动获取数据表指令后,生成可编辑的数据表信息设置界面,该设置界面包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项,在收到用户基于第一输入框输入的数据表名称或用户基于第三选择项选择的数据表名称后,链接该数据库并根据输入的数据表名称读取对应的数据表,并将所读取的数据表在Excel系统界面上以Excel工作表展示给用户。
若用户基于第二选择项选择手动生成数据表,则发出提示信息,提示用户基于Excel系统界面自动编辑与该数据库中的数据表相对应的Excel工作表。上述提到的Excel工作表均包括预先确定的数据表中的列名称及所述列名称对应的数据。
需要说明的是,在上述实施例中,所述数据库数据菜单还可以包括数据表生成菜单选项,在另一种实施方式中,用户可以同时点击数据表生成菜单 选项以及选择一种数据库数据菜单操作选项(例如上载数据、删除数据、比较数据等),在收到数据表生成选择指令以及数据库数据菜单操作指令后,数据库联动程序会比较数据表生成菜单的优先级与数据库数据菜单操作选项之间的优先级,而在本实施例预先确定的数据表生成菜单的优先级别高于数据库数据菜单操作选项,所以在收到数据表生成选择指令以及数据库数据菜单操作指令后,首先生成可编辑的数据表信息设置界面,该设置界面包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项,在收到用户基于第一输入框输入的数据表名称或用户基于第三选择项选择的数据表名称后,链接该数据库并根据输入的数据表名称读取对应的数据表,并将所读取的数据表在Excel系统界面上以Excel工作表展示给用户。
进一步地,用户可以对Excel工作表中的内容进行编辑,编辑之后Excel工作表包括预先确定的数据表中的列名称及所述列名称对应的数据、以及预先确定的数据表的表名,当用户编辑完成之后,基于该Excel工作表点击发送之后,则发出用户基于该Excel工作表点击的发送指令,在收到该发送指令后,基于预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到预先确定的数据表,执行上载操作,具体地,根据Excel工作表中对应列名称的数据上载到预先确定的数据表对应的列名称中。
同样地,以用户点击修改数据菜单为例,例如,用户点击修改数据菜单,即发出向数据库修改数据的指令,在收到该修改数据的指令后,首先获取与预先确定的该数据库中的数据表相对应的Excel工作表,用户也可以根据需要自动编辑生成与该数据库中的数据相对应的Excel工作表,进一步地,用户还可以对该Excel工作表中的内容进行编辑,当用户编辑完成之后,基于该Excel工作表点击发送之后,则发出用户基于该Excel工作表点击的发送指令,在收到该发送指令后,基于预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到预先确定的数据表,执行修改操作,具体地,将预先确定的数据表对应列名称的数据修改为Excel工作表对应列名称的数据。
上述实施例提出的基于Excel系统界面的数据库联动方法,在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;接着在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括预先确定的数据表的列名称及所述列名称对应的数据、以及所述预先确定的数据表的表名;最后在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列名称的数据进行相应的操作。这样能够使用户通过Excel工作表对相关数据库的数据进行操作,且操作过程简单易实现。
此外,本申请还提出一种计算机可读存储介质,该计算机可读存储介质上存储有基于Excel系统界面的数据库联动程序,该基于Excel系统界面的数据库联动程序被处理器执行时实现如下操作:
在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括预先确定的数据表的列名称及所述列名称对应的数据、以及所述预先确定的数据表的表名;
在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中的列名称对应的数据进行相应的操作。
本申请计算机可读存储介质具体实施方式与上述电子装置及基于Excel系统界面的数据库联动方法各实施例基本相同,在此不作累述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种基于Excel系统界面的数据库联动方法,其特征在于,所述方法包括如下步骤:
    S1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
    S2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
    S3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
  2. 如权利要求1所述的基于Excel系统界面的数据库联动方法,其特征在于,所述步骤S2包括如下步骤:
    S2-1、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成询问用户是否选择自动生成数据表的窗口,所述窗口包括供用户选择自动生成数据表的第一选择项和供用户选择手动生成数据表的第二选择项;
    S2-2、在收到用户基于所述第一选择项选择的自动生成数据表的指令后,生成可编辑的数据表信息设置界面,或者在收到用户基于所述第二选择项选择的手动生成数据表的指令后,生成并在所述Excel系统界面上显示提示信息,提示用户建立Excel工作表。
  3. 如权利要求2所述的基于Excel系统界面的数据库联动方法,其特征 在于,在所述步骤S2-2中所述设置界面包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项;所述步骤S2-2还包括如下步骤:
    在收到用户基于所述第一输入框输入的数据表名称或用户基于所述第三选择项选择的数据表名称后,生成所述SQL脚本并链接所述数据库,在所述数据库中读取该数据表,将所读取的该数据表在所述Excel系统界面上以Excel工作表展示给用户,所述Excel工作表包括所读取的数据表中对应列的名称及所述列对应的数据、以及所读取的数据表的表名称。
  4. 如权利要求2所述的基于Excel系统界面的数据库联动方法,其特征在于,所述预先确定的数据库为oracle数据库。
  5. 如权利要求3所述的基于Excel系统界面的数据库联动方法,其特征在于,所述预先确定的数据库为oracle数据库。
  6. 如权利要求1所述的基于Excel系统界面的数据库联动方法,其特征在于,所述数据库数据操作菜单选项包括上载数据菜单选项、修改数据菜单选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
  7. 如权利要求2所述的基于Excel系统界面的数据库联动方法,其特征在于,所述数据库数据操作菜单选项包括上载数据菜单选项、修改数据菜单选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
  8. 如权利要求3所述的基于Excel系统界面的数据库联动方法,其特征在于,所述数据库数据操作菜单选项包括上载数据菜单选项、修改数据菜单选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
  9. 如权利要求4所述的基于Excel系统界面的数据库联动方法,其特征在于,所述数据库数据操作菜单选项包括上载数据菜单选项、修改数据菜单 选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
  10. 一种电子装置,其特征在于,所述电子装置包括存储器、处理器,所述存储器上存储有基于Excel系统界面的数据库联动程序,所述基于Excel系统界面的数据库联动程序被所述处理器执行时实现如下步骤:
    A1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
    A2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所述预先确定的数据表的表名称;
    A3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
  11. 如权利要求10所述的电子装置,其特征在于,所述步骤A2包括如下步骤:
    A2-1、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成询问用户是否选择自动生成数据表的窗口,所述窗口包括供用户选择自动生成数据表的第一选择项和供用户选择手动生成数据表的第二选择项;
    A2-2、在收到用户基于所述第一选择项选择的自动生成数据表的指令后,生成可编辑的数据表信息设置界面,或者在收到用户基于所述第二选择项选择的手动生成数据表的指令后,生成并在所述Excel系统界面上显示提示信 息,提示用户建立Excel工作表。
  12. 如权利要求11所述的电子装置,其特征在于,在所述步骤A2中所述设置界面还包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项;所述步骤A2-2还包括如下步骤:
    在收到用户基于所述第一输入框输入的数据表名称或用户基于所述第三选择项选择的数据表名称后,生成所述SQL脚本并链接所述数据库,在所述数据库中读取该数据表,将所读取的该数据表在所述Excel系统界面上以Excel工作表展示给用户,所述Excel工作表包括所读取的数据表中对应列的名称及所述列对应的数据、以及所读取的数据表的表名称。
  13. 如权利要求11所述的电子装置,其特征在于,所述预先确定的数据库为oracle数据库。
  14. 如权利要求12所述的电子装置,其特征在于,所述预先确定的数据库为oracle数据库。
  15. 如权利要求14所述的电子装置,其特征在于,所述数据库数据操作菜单选项包括上载数据菜单选项、修改数据菜单选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有基于Excel系统界面的数据库联动程序,所述基于Excel系统界面的数据库联动程序可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:
    B1、在收到对预先确定的数据库中的数据进行操作的指令后,在预先确定的Excel系统界面上生成一个数据库链接操作界面,所述数据库链接操作界面包括多种数据库数据操作菜单选项;
    B2、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,获取用户的数据表选择项,根据获取的数据表选择项生成与该数据库中预先确定的数据表相对应的Excel工作表,所述Excel工作表包括所述预先确定的数据表中对应列的名称及所述列对应的数据、以及所 述预先确定的数据表的表名称;
    B3、在收到用户基于所述Excel工作表点击的发送指令后,根据所述预先确定的数据表的表名称生成SQL脚本,并链接该数据库查找到所述预先确定的数据表,根据所述Excel工作表中的数据对所述预先确定的数据表中对应列的数据进行相应的操作。
  17. 如权利要求16所述的存储介质,其特征在于,所述步骤B2包括如下步骤:
    B2-1、在收到用户基于该数据库链接操作界面选择的至少一种数据库数据操作菜单选项指令后,生成询问用户是否选择自动生成数据表的窗口,所述窗口包括供用户选择自动生成数据表的第一选择项和供用户选择手动生成数据表的第二选择项;
    B2-2、在收到用户基于所述第一选择项选择的自动生成数据表的指令后,生成可编辑的数据表信息设置界面,或者在收到用户基于所述第二选择项选择的手动生成数据表的指令后,生成并在所述Excel系统界面上显示提示信息,提示用户建立Excel工作表。
  18. 如权利要求17所述的存储介质,其特征在于,所述在所述步骤B2中所述设置界面还包括供用户输入数据表名称的第一输入框和/或供用户选择数据表名称的第三选择项;所述步骤B2-2还包括如下步骤:
    在收到用户基于所述第一输入框输入的数据表名称或用户基于所述第三选择项选择的数据表名称后,生成所述SQL脚本并链接所述数据库,在所述数据库中读取该数据表,将所读取的该数据表在所述Excel系统界面上以Excel工作表展示给用户,所述Excel工作表包括所读取的数据表中对应列的名称及所述列对应的数据、以及所读取的数据表的表名称。
  19. 如权利要求18所述的存储介质,其特征在于,所述预先确定的数据库为oracle数据库。
  20. 如权利要求19所述的存储介质,其特征在于,所述数据库数据操作 菜单选项包括上载数据菜单选项、修改数据菜单选项、删除数据菜单选项、比较数据菜单选项、生成INSERT语句菜单选项、以及批量处理菜单选项。
PCT/CN2018/077637 2017-11-01 2018-02-28 基于Excel系统界面的数据库联动方法、电子装置及存储介质 WO2019085354A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711059332.7 2017-11-01
CN201711059332.7A CN108399183A (zh) 2017-11-01 2017-11-01 基于Excel系统界面的数据库联动方法、电子装置及存储介质

Publications (1)

Publication Number Publication Date
WO2019085354A1 true WO2019085354A1 (zh) 2019-05-09

Family

ID=63093556

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077637 WO2019085354A1 (zh) 2017-11-01 2018-02-28 基于Excel系统界面的数据库联动方法、电子装置及存储介质

Country Status (2)

Country Link
CN (1) CN108399183A (zh)
WO (1) WO2019085354A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928854A (zh) * 2019-10-17 2020-03-27 北京达佳互联信息技术有限公司 数据导入方法、装置及电子设备
CN112989288B (zh) * 2021-04-16 2021-09-03 成都飞机工业(集团)有限责任公司 一种批量标定电子文档密级的系统和方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100229084A1 (en) * 2009-03-06 2010-09-09 Ecava Sdn. Bhd. Rapid software report development tool with auto database handling and menu tool-bar plug-in for application report access
CN101944082A (zh) * 2010-09-10 2011-01-12 中国恩菲工程技术有限公司 一种类Excel报表处理方法
CN103744982A (zh) * 2014-01-15 2014-04-23 北京神州普惠科技股份有限公司 一种将Excel数据导入数据库的方法
CN106776962A (zh) * 2016-12-05 2017-05-31 济南浪潮高新科技投资发展有限公司 一种通用的Excel数据导入多个数据库物理表方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7246327B2 (en) * 2001-08-09 2007-07-17 Bellsouth Intellectual Property Corporation Interactive, menu-driven interface to database
US20080016041A1 (en) * 2006-07-14 2008-01-17 Frost Brandon H Spreadsheet-based relational database interface
CN102033951B (zh) * 2010-12-15 2012-09-05 北京新媒传信科技有限公司 Web数据库平台
CN103020089A (zh) * 2011-09-27 2013-04-03 深圳市金蝶友商电子商务服务有限公司 一种将excel文件中的数据导入数据库的方法及装置
CN104346334A (zh) * 2013-07-23 2015-02-11 上海化工宝电子商务有限公司 远程可视界面数据库系统
CN105224544A (zh) * 2014-05-30 2016-01-06 北大方正集团有限公司 一种数据库的数据编辑方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100229084A1 (en) * 2009-03-06 2010-09-09 Ecava Sdn. Bhd. Rapid software report development tool with auto database handling and menu tool-bar plug-in for application report access
CN101944082A (zh) * 2010-09-10 2011-01-12 中国恩菲工程技术有限公司 一种类Excel报表处理方法
CN103744982A (zh) * 2014-01-15 2014-04-23 北京神州普惠科技股份有限公司 一种将Excel数据导入数据库的方法
CN106776962A (zh) * 2016-12-05 2017-05-31 济南浪潮高新科技投资发展有限公司 一种通用的Excel数据导入多个数据库物理表方法

Also Published As

Publication number Publication date
CN108399183A (zh) 2018-08-14

Similar Documents

Publication Publication Date Title
JP4906292B2 (ja) 電子文書で使用するために複数のデータソースのデータをマージする方法、システム、およびコンピュータ読み取り可能媒体
US10346381B2 (en) Atomic update operations in a data storage system
US8898593B2 (en) Identification of sharing level
US10223698B2 (en) Integrating a web-based CRM system with a PIM client application
US20130152038A1 (en) Project management workflows
EP3547145A2 (en) Systems and methods for reducing storage required for code coverage results
CN107679056B (zh) 生成sql语句的方法、电子装置及可读存储介质
US10956309B2 (en) Source code management systems and methods
WO2019071898A1 (zh) 电子装置、数据库查询脚本生成方法及存储介质
CN111061475A (zh) 软件代码生成方法、装置、计算机设备和存储介质
AU2017216247B2 (en) Systems and methods for using entity/relationship model data to enhance user interface engine
CN111782651A (zh) 数据关联关系的可视化编辑方法、装置、设备及存储介质
WO2019085354A1 (zh) 基于Excel系统界面的数据库联动方法、电子装置及存储介质
US8392442B2 (en) Method and computer program product for creating content management systems
CN117170655A (zh) 一种元数据处理方法、装置、数据处理设备及存储介质
CN110780970A (zh) 数据筛选方法、装置、设备及计算机可读存储介质
CN115237425A (zh) 代码检视方法、装置、计算机设备及存储介质
CN114328552A (zh) 数据库的管理方法、系统及计算机可读介质
CN113377368A (zh) 项目开发方法、装置、服务器及存储介质
CN109948251B (zh) 基于cad的数据处理方法、装置、设备及存储介质
US20170161359A1 (en) Pattern-driven data generator
CN111177279A (zh) 表单保存方法、装置、存储介质及电子设备
WO2019071416A1 (zh) 数据管理方法、终端及计算机可读介质
WO2019085353A1 (zh) 测试用例迁移终端、测试用例迁移方法及存储介质
US20220383215A1 (en) Management device, management method, and management program

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSAUNT TO RULE 112(1) EPC

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18874507

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18874507

Country of ref document: EP

Kind code of ref document: A1