CN104951550B - Date storage method and device - Google Patents

Date storage method and device Download PDF

Info

Publication number
CN104951550B
CN104951550B CN201510359149.3A CN201510359149A CN104951550B CN 104951550 B CN104951550 B CN 104951550B CN 201510359149 A CN201510359149 A CN 201510359149A CN 104951550 B CN104951550 B CN 104951550B
Authority
CN
China
Prior art keywords
data
tables
field
information
application program
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
CN201510359149.3A
Other languages
Chinese (zh)
Other versions
CN104951550A (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.)
All Over World (beijing) Information Technology Co Ltd
Original Assignee
All Over World (beijing) Information Technology Co Ltd
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 All Over World (beijing) Information Technology Co Ltd filed Critical All Over World (beijing) Information Technology Co Ltd
Priority to CN201510359149.3A priority Critical patent/CN104951550B/en
Publication of CN104951550A publication Critical patent/CN104951550A/en
Application granted granted Critical
Publication of CN104951550B publication Critical patent/CN104951550B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The invention discloses a kind of date storage method and devices.Wherein, this method includes:Application program obtains the data information that server returns, wherein data information is the data that server is sent according to the service request of application program;Application program judges in the first tables of data according to data information with the presence or absence of the field of information for storing data;When the field of information for storing data is not present in the first tables of data, application program obtains the second tables of data according to data information, the first tables of data of modification;Application program will be in data information memory to the second tables of data.The storage organization that the present invention solves in the prior art because of returned data changes, and cause application crash, application data lose the problem of.

Description

Date storage method and device
Technical field
The present invention relates to internet arenas, in particular to a kind of date storage method and device.
Background technology
In recent years, with mobile Internet high speed development, also become increasingly applied to the application program on mobile terminal It is more.Application program is widely used because the life to user brings great convenience.In the mistake that application program is used Cheng Zhong, developer can according to the feedback of user, often because optimization algorithm, increase and decrease function and security breaches etc. to application program into Row update, to improve user experience.
Sometimes, when developer is after to application program and server update corresponding with application program, on mobile terminal Do not timely update.When the data that server is returned to application program because business changes cause storage organization to change when, The storage organization changed data that application program will receive, when being inserted into the database having had built up, to data The data field being not present before is inserted into library, it will usually cause the loss of data in application crash or application program, To influence the normal use of application program.
It changes for the storage organization in the prior art because of returned data, and leads to application crash, using journey The problem of sequence loss of data, currently no effective solution has been proposed.
Invention content
The main purpose of the present invention is to provide a kind of date storage method and devices, to solve in the prior art because returning The storage organization of data changes, and cause application crash, application data lose the problem of.
To achieve the goals above, one side according to the ... of the embodiment of the present invention provides a kind of date storage method.It should Method includes:Application program obtains the data information that server returns, wherein data information is server according to application program Service request and the data sent;Application program judges in the first tables of data according to data information with the presence or absence of for storing data The field of information;When the field of information for storing data is not present in the first tables of data, application program according to data information, It changes the first tables of data and obtains the second tables of data;Application program will be in data information memory to the second tables of data.
Further, application program judges in the first tables of data according to data information with the presence or absence of information for storing data Field include:Application program determines in database the first tables of data and field of information for storing data according to data information Aiming field title;Application program judges to whether there is in the first tables of data and believe for storing data according to field name The field of breath.
Further, application program judges in the first tables of data according to field name with the presence or absence of for storing data The field of information includes:Aiming field title is compared application program with the title of each field in the first tables of data, Judge to whether there is field identical with aiming field title in the first tables of data;Wherein, when in the first tables of data there is no with When the identical field of aiming field title, application program determines that there is no the words of information for storing data in the first tables of data Section.
Further, when there is field identical with aiming field title in the first tables of data, application program is according to mesh Marking-up name section judges that the field that whether there is information for storing data in the first tables of data further includes:Application program root According to data information, the first data type of the field of information for storing data is determined;Application program is obtained in the first tables of data In field identical with aiming field title the second data type;The first data type of application program pair and the second data type It is compared, when the first data type is differed with the second data type, determines that there is no for depositing in the first tables of data Store up the field of data information.
Further, application program obtains the second tables of data and includes according to data information, the first tables of data of modification:Using journey Sequence determines the target data type of the field of information and aiming field title for storing data according to data information;Using journey Field according to target data type and aiming field title, is inserted into the first tables of data by sequence, obtains the second tables of data.
To achieve the goals above, another aspect according to the ... of the embodiment of the present invention provides a kind of data storage device, should Device includes:Acquisition module, the data information for obtaining server return, wherein data information is server according to application The service request of program and the data sent;Judgment module, for judging to whether there is in the first tables of data according to data information The field of information for storing data;Modified module, for when there is no the words of information for storing data in the first tables of data Duan Shi, according to data information, the first tables of data of modification obtains the second tables of data;Memory module is used for data information memory extremely In second tables of data.
Further, judgment module includes:First subprocessing module, is used for for being determined in database according to data information Store the aiming field title of the first tables of data and field of data information;Sub- judgment module, for according to field name, judging With the presence or absence of the field of information for storing data in the first tables of data.
Further, sub- judgment module includes:Sub- comparing module, for will be in aiming field title and the first tables of data The title of each field is compared, and judges to whether there is field identical with aiming field title in the first tables of data;First Sub- determining module, for when field identical with aiming field title is not present in the first tables of data, determining the first tables of data In there is no the fields of information for storing data.
Further, sub- judgment module further includes:Second sub- determining module, for existing in the first tables of data and target When the identical field of field name, the first data type of the field of information for storing data is determined according to data information;Son Acquisition module obtains the second data type of the field identical with aiming field title in the first tables of data for sequence;Second Subprocessing module, for the first data type to be compared with the second data type, when the first data type and the second data When type differs, determine that there is no the fields of information for storing data in the first tables of data.
Further, modified module includes:The sub- determining module of third, for according to data information, determining for storing number It is believed that the target data type and aiming field title of the field of breath;Son is inserted into module, is used for field according to target data class Type and aiming field title, are inserted into the first tables of data, obtain the second tables of data.
According to inventive embodiments, the data information that server returns is obtained by application program, wherein data information is clothes The data that business device is sent according to the service request of application program;Application program judges according to data information The no field that there is information for storing data;When the field of information for storing data is not present in the first tables of data, answer With program according to data information, the first tables of data of modification obtains the second tables of data;Application program is by data information memory to second In tables of data, realize after the data information returned in server end changes, application program end is according to servers' data The effect of the storage organization of tables of data, has reached the stability of enhancing application program in the variation update own database of information Purpose.Storage organization to solve in the prior art because of returned data changes, and leads to application crash, application The problem of program data is lost.
Description of the drawings
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of according to embodiments of the present invention one date storage method;And
Fig. 2 is a kind of structural schematic diagram of according to embodiments of the present invention two data storage device.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
Embodiment 1
An embodiment of the present invention provides a kind of date storage method, Fig. 1 is data storage side according to the ... of the embodiment of the present invention The flow chart of method, as shown in Figure 1, that the method comprising the steps of is as follows:
Step S11, application program obtain the data information that server returns, wherein data information is server according to answering The data sent with the service request of program;
Step S13, application program judge in the first tables of data according to data information with the presence or absence of information for storing data Field;
Step S15, when the field of information for storing data is not present in the first tables of data, application program is according to data Information, the first tables of data of modification obtain the second tables of data;
Step S17, application program will be in data information memories to the second tables of data.
S11 to step S17 through the above steps, application program are getting service request of the server according to application program And after the data information returned, application program is to whether there is information for storing data first in tables of data in the database Field inquired.When the field for store digital information is not present in tables of data, to the tables of data in database It modifies, the field of information for storing data is added for tables of data.Application program after operation of modifying to tables of data, It again will be in the data information memory that got to modified tables of data.Using above-described embodiment, realize in server end After the data information of return changes, application program end is updated according to the variation of servers' data information in own database The effect of the storage organization of tables of data has achieved the purpose that the stability for enhancing application program.To solve in the prior art Because the storage organization of returned data changes, and cause application crash, application data lose the problem of.
May include for identifying storage organization in the data information that server returns as an alternative embodiment Whether changed identification information.
Specifically, whether application program according to identification information, can judge the storage organization of server end due to update first When changing, storage organization in the application is also required to be changed accordingly.When storage organization changes, clothes Device be engaged in by sending identification information corresponding with storage organization variation, makes application program when receiving data information, first to itself The storage organization of tables of data is adjusted, then again in data information memory to tables of data in corresponding field.To keep away Exempt from application program when receiving data information every time all to the field with the presence or absence of information for storing data, to improve application The execution speed of program.
Wherein, identification information can exist by the form of an individual configuration file.It can also be by server In end and application program end, an identification parameter is pre-set, to be identified to whether storage organization changes.Certainly, It can also include other common realization methods, be not repeated herein.
May include for changing application program in the data information that server returns as an alternative embodiment The command information of the storage organization of middle database.
Specifically, when the storage organization of server changes because of update, storage organization in the application It needs to be changed accordingly.Therefore, when storage organization in the server changes, server can be by believing in data The command information for changing database store structure in application program is added in breath, application program is made to be carried out to data information Before storage, directly execute command information for changing storage organization, to the data structure of database in application program into Row modification, then again will be in data information memory to database in corresponding position.To allow application program directly to hold Modification in row command information instructs to be updated to database, to further increase the execution speed of application program.
As an alternative embodiment, in step S13 application programs judge the first tables of data according to data information whether In the presence of in the field of information for storing data, may include:
Step S131, application program determine in database the first tables of data of information for storing data according to data information With the aiming field title of field.
Step S133, application program judge in the first tables of data according to field name with the presence or absence of for storing data The field of information.
Specifically, by step S131 to step S133, application program determines data information according to the content of data information The storage location that will be stored, and search whether in corresponding tables of data to exist for storing the data in the database The field of the information content.When there is the field of information for storing data, application program is by data information memory to respective counts In the aiming field of table.When there is no the field of information for storing data, application program is changed according to data information Corresponding data table.
Judge in the first tables of data in step S133 application programs according to field name as an alternative embodiment With the presence or absence of in the field of information for storing data, may include:
Step S331, application program compare aiming field title and the title of each field in the first tables of data It is right, judge to whether there is field identical with aiming field title in the first tables of data.
Step S333, when field identical with aiming field title is not present in the first tables of data, application program determines There is no the fields of information for storing data in first tables of data.
Specifically, by step S331 to step S333, application program is according to aiming field title, by for storing It searches, is judged in the first tables of data with the presence or absence of the field of information for storing data in first tables of data of data information.
As an alternative embodiment, when there is field identical with aiming field title in the first tables of data, in step Rapid S133 application programs judge in the first tables of data according to aiming field title with the presence or absence of the word of information for storing data Duan Zhong can also include:
Step S335, application program determine the first data class of the field of information for storing data according to data information Type.
Step S337, application program obtain the second data of the field identical with aiming field title in the first tables of data Type.
Step S339, the first data type of application program pair is compared with the second data type, when the first data type When being differed with the second data type, determine that there is no the fields of information for storing data in the first tables of data.
Specifically, by step S335 to step S339, in the first tables of data, exist identical with aiming field title When field, judge whether the data type of above-mentioned two field is identical.When the title of field is identical and the data type of field not Meanwhile being also judged as in the first tables of data that there is no the fields of information for storing data.
In practical application, if information is picture for storing data, and in original tables of data, and for depositing Store up the data type of the identical field of title of the field of the data information has symbol integer (int (8)) for 8, it is clear that original Field in tables of data cannot be used for storing picture.In this way, it is necessary to which what one row of insertion were new in former tables of data can be used for depositing Store up the field of picture.
As an alternative embodiment, when being present in the identical field of aiming field title but data class in the first tables of data When type difference, a new field name can be determined by data information, and field is inserted into first with new field name To store data information in tables of data.Alternatively, date received can be added behind original field name, as new word Name section stores data information.
As an alternative embodiment, in step S15 application programs according to data information, the first tables of data of modification obtains the In two tables of data, may include:
Step S151, application program determine the target data class of the field of information for storing data according to data information Type and aiming field title.
Field according to target data type and aiming field title, is inserted into the first data by step S153, application program In table, the second tables of data is obtained.
S151 to step S153 through the above steps, application program judge to can be used for depositing according to the content of data information Store up the data type of the data information.After the title for determining aiming field according to data information, application program is in the first data In table, the new field of a row is inserted into according to aiming field title and target data type, for storing data information.
Embodiment 2
The embodiment of the present invention additionally provides a kind of data storage device, as shown in Fig. 2, the device may include:Obtain mould Block 21, judgment module 23, modified module 25 and memory module 27.
Wherein, acquisition module 21, the data information for obtaining server return, wherein data information is server root The data sent according to the service request of application program;Judgment module 23, for being judged in the first tables of data according to data information With the presence or absence of the field of information for storing data;Modified module 25, for when there is no for storing number in the first tables of data It is believed that when the field of breath, according to data information, the first tables of data of modification obtains the second tables of data;Memory module 27, for that will count According in information storage to the second tables of data.
By above-mentioned acquisition module 21, judgment module 23, modified module 25 and memory module 27, application program is being got After the data information that server is returned according to the service request of application program, application program is to data in the database first Field in table with the presence or absence of information for storing data is inquired.When there is no for store digital information in tables of data It when field, modifies to the tables of data in database, the field of information for storing data is added for tables of data.Using journey Sequence, then will be in the data information memory that got to modified tables of data after operation of modifying to tables of data.It utilizes Above-described embodiment realizes after the data information returned in server end changes, and application program end is according to server end number It is believed that the variation of breath updates the effect of the storage organization of tables of data in own database, the stability of enhancing application program is reached Purpose.Storage organization to solve in the prior art because of returned data changes, and leads to application crash, answers The problem of being lost with program data.
As an alternative embodiment, above-mentioned judgment module 23 may include:First subprocessing module 231 and son judge mould Block 233.
Wherein, the first subprocessing module 231, for determining in database information for storing data according to data information The aiming field title of first tables of data and field;Sub- judgment module 233, for according to field name, judging in the first data With the presence or absence of the field of information for storing data in table.
Specifically, by the first subprocessing module 231 and sub- judgment module 233, application program is according in data information Hold the storage location that will be stored for determining data information, and searches whether exist in corresponding tables of data in the database Field for storing the data information content.When there is the field of information for storing data, application program believes data Breath is stored to the aiming field of corresponding data table.When there is no the field of information for storing data, application program root Corresponding data table is changed according to data information.
As an alternative embodiment, above-mentioned sub- judgment module 233 may include:Sub- comparing module 2331 and the first son are really Cover half block 2333.
Wherein, sub- comparing module 2331 is used for the title of each field in aiming field title and the first tables of data It is compared, judges to whether there is field identical with aiming field title in the first tables of data;First sub- determining module 2333, For when field identical with aiming field title is not present in the first tables of data, determining that there is no be used in the first tables of data Store the field of data information.
Specifically, by sub- comparing module 2331 and the first sub- determining module 2333, application program is according to aiming field name Claim, by being searched in the first tables of data of information for storing data, judges in the first tables of data with the presence or absence of for storing The field of data information.
As an alternative embodiment, above-mentioned sub- judgment module 233 can also include:Second sub- determining module 2335, son Acquisition module 2337 and the second subprocessing module 2339.
Wherein, there is word identical with aiming field title in the first tables of data for working as in the second sub- determining module 2335 Duan Shi determines the first data type of the field of information for storing data according to data information;Sub-acquisition module 2337, is used for Sequence obtains the second data type of the field identical with aiming field title in the first tables of data;Second subprocessing module 2339, for the first data type to be compared with the second data type, when the first data type and the second data type not When identical, determine that there is no the fields of information for storing data in the first tables of data.
Specifically, by the above-mentioned second sub- determining module 2335, sub-acquisition module 2337 and the second subprocessing module 2339, In the first tables of data, when there is field identical with aiming field title, judge above-mentioned two field data type whether It is identical.When the title of field is identical and when the data type difference of field, be also judged as in the first tables of data that there is no for depositing Store up the field of data information.
In practical application, if information is picture for storing data, and in original tables of data, and for depositing Store up the data type of the identical field of title of the field of the data information has symbol integer (int (8)) for 8, it is clear that original Field in tables of data cannot be used for storing picture.In this way, it is necessary to which what one row of insertion were new in former tables of data can be used for depositing Store up the field of picture.
As an alternative embodiment, above-mentioned modified module 25 may include:The sub- determining module 251 of third and son are inserted into mould Block 253.
Wherein, the sub- determining module 251 of third is used for according to data information, the determining field of information for storing data Target data type and aiming field title;Son is inserted into module 253, is used for field according to target data type and aiming field Title is inserted into the first tables of data, obtains the second tables of data.
Be inserted into module 253 by the sub- determining module of above-mentioned third 251 and son, application program according to the content of data information, Judge the data type that can be used for storing the data information.After the title for determining aiming field according to data information, application Program is inserted into the new field of a row in the first tables of data, according to aiming field title and target data type, for storing number It is believed that breath.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, mobile terminal, server or network equipment etc.) executes side described in each embodiment of the present invention The all or part of step of method.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to be stored The medium of program code.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of date storage method, which is characterized in that including:
Application program obtains the data information that server returns, wherein the data information is that the server is answered according to The data sent with the service request of program;
The application program judges in the first tables of data according to the data information with the presence or absence of for storing the data information Field;
When, there is no when the field for storing the data information, the application program is according in first tables of data Data information changes first tables of data and obtains the second tables of data;
The application program by the data information memory to second tables of data,
Wherein, the data information includes for identifying the whether changed mark letter of the storage organization of the server Breath.
2. according to the method described in claim 1, it is characterized in that, the application program judges first according to the data information Include with the presence or absence of the field for storing the data information in tables of data:
The application program determines first number in database for storing the data information according to the data information According to the aiming field title of table and the field;
The application program judges in first tables of data according to the field name with the presence or absence of for storing the number It is believed that the field of breath.
3. according to the method described in claim 2, it is characterized in that, the application program judges according to the field name Include with the presence or absence of the field for storing the data information in first tables of data:
The aiming field title is compared the application program with the title of each field in first tables of data, Judge to whether there is field identical with the aiming field title in first tables of data;
Wherein, when field identical with the aiming field title is not present in first tables of data, the application program Determine that there is no the fields for storing the data information in first tables of data.
4. according to the method described in claim 3, it is characterized in that, when existing and the aiming field in first tables of data When the identical field of title, the application program according to the aiming field title, judge in first tables of data whether Further include in the presence of the field for storing the data information:
The application program determines the first data of the field for storing the data information according to the data information Type;
The application program obtains the second data of the field identical with the aiming field title in first tables of data Type;
First data type is compared with second data type for the application program, when first data class When type is differed with second data type, determine that there is no for storing the data information in first tables of data Field.
5. according to the method described in claim 1, it is characterized in that, the application program changes institute according to the data information It states the first tables of data and obtains the second tables of data and include:
The application program determines the target data of the field for storing the data information according to the data information Type and aiming field title;
The field according to the target data type and the aiming field title, is inserted into described by the application program In one tables of data, second tables of data is obtained.
6. a kind of data storage device, which is characterized in that including:
Acquisition module, the data information for obtaining server return, wherein the data information is the server according to answering The data sent with the service request of program;
Judgment module, for being judged in the first tables of data with the presence or absence of for storing the data information according to the data information Field;
Modified module, for when in first tables of data there is no when field for storing the data information, according to institute Data information is stated, first tables of data is changed and obtains the second tables of data;
Memory module, for by the data information memory to second tables of data,
Wherein, the data information includes the whether changed identification information of storage organization for identification server.
7. device according to claim 6, which is characterized in that the judgment module includes:
First subprocessing module, for being determined in database according to the data information for storing described in the data information The aiming field title of first tables of data and the field;
Sub- judgment module, for according to the field name, judging in first tables of data with the presence or absence of for storing State the field of data information.
8. device according to claim 7, which is characterized in that the sub- judgment module includes:
Sub- comparing module, for comparing the title of the aiming field title and each field in first tables of data It is right, judge to whether there is field identical with the aiming field title in first tables of data;
First sub- determining module, for when there is no fields identical with the aiming field title in first tables of data When, determine that there is no the fields for storing the data information in first tables of data.
9. device according to claim 8, which is characterized in that the sub- judgment module further includes:
Second sub- determining module is used for when there is field identical with the aiming field title in first tables of data, The first data type of the field for storing the data information is determined according to the data information;
Sub-acquisition module obtains second of the field identical with the aiming field title in first tables of data for sequence Data type;
Second subprocessing module, for first data type to be compared with second data type, when described When one data type is differed with second data type, determine that there is no described for storing in first tables of data The field of data information.
10. device according to claim 6, which is characterized in that the modified module includes:
The sub- determining module of third, for according to the data information, determining the field for storing the data information Target data type and aiming field title;
Son is inserted into module, for the field according to the target data type and the aiming field title, to be inserted into institute It states in the first tables of data, obtains second tables of data.
CN201510359149.3A 2015-06-25 2015-06-25 Date storage method and device Expired - Fee Related CN104951550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510359149.3A CN104951550B (en) 2015-06-25 2015-06-25 Date storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510359149.3A CN104951550B (en) 2015-06-25 2015-06-25 Date storage method and device

Publications (2)

Publication Number Publication Date
CN104951550A CN104951550A (en) 2015-09-30
CN104951550B true CN104951550B (en) 2018-07-17

Family

ID=54166208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510359149.3A Expired - Fee Related CN104951550B (en) 2015-06-25 2015-06-25 Date storage method and device

Country Status (1)

Country Link
CN (1) CN104951550B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653383A (en) * 2015-12-30 2016-06-08 深圳市鼎芯无限科技有限公司 Error tolerance processing method and apparatus for data
CN106294740A (en) * 2016-08-10 2017-01-04 北京创锐文化传媒有限公司 Data processing method, device and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183361A (en) * 2006-11-13 2008-05-21 中兴通讯股份有限公司 Method of relation data base applications automatic upgrade
CN101217406A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Collocation data backup and recovery method
CN101833511A (en) * 2010-03-29 2010-09-15 瑞斯康达科技发展股份有限公司 Data management method, device and system
JP2012059306A (en) * 2001-08-20 2012-03-22 Pardalis Software Inc Information object authoring and distribution system
CN102722540A (en) * 2012-05-23 2012-10-10 中兴通讯股份有限公司 Method and device for processing data in real-time memory database system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4594962B2 (en) * 2007-06-04 2010-12-08 株式会社日立製作所 Verification server, program, and verification method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012059306A (en) * 2001-08-20 2012-03-22 Pardalis Software Inc Information object authoring and distribution system
CN101183361A (en) * 2006-11-13 2008-05-21 中兴通讯股份有限公司 Method of relation data base applications automatic upgrade
CN101217406A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Collocation data backup and recovery method
CN101833511A (en) * 2010-03-29 2010-09-15 瑞斯康达科技发展股份有限公司 Data management method, device and system
CN102722540A (en) * 2012-05-23 2012-10-10 中兴通讯股份有限公司 Method and device for processing data in real-time memory database system

Also Published As

Publication number Publication date
CN104951550A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN105027115B (en) Inquiry to document and index
CN108566296B (en) Network device layering method, network management device and computer readable storage medium
CN105187230B (en) The switching method and device of server
CN107391758A (en) Database switching method, device and equipment
CN107092652B (en) Navigation method and device for target page
CN104133783B (en) Method and device for processing distributed cache data
CN108009147B (en) Electronic book cover generation method, electronic device and computer storage medium
CN106815226A (en) Text matching technique and device
CN108848034A (en) A kind of network equipment and list item learning method
CN108460271B (en) Terminal identification method and device
CN107977223A (en) One kind configuration compliance check method and device
CN106302384A (en) DNS message processing method and device
CN105373746B (en) A kind of distributed data processing method and apparatus
CN109165332A (en) A kind of webpage information acquisition methods, device and equipment
CN104951550B (en) Date storage method and device
CN109377383A (en) Product data synchronous method, device, computer equipment and storage medium
CN106033452B (en) A kind of data-updating method and device
CN105978868A (en) Method and apparatus for searching IP address authority
CN104333614B (en) The method, apparatus and system of terminal recognition
CN104463460B (en) Processing method and processing device for the waiting information that network data is launched
CN104424316A (en) Data storage method, data searching method, related device and system
CN108170805A (en) A kind of tables of data comparative approach, device, electronic equipment and readable storage medium storing program for executing
KR101761177B1 (en) Method for mining important pattern of high rank k, apparatus performing the same and storage medium storing the same
CN109783678B (en) Image searching method and device
CN106407470A (en) Fingerprint sharing method, terminal and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data storing method and device, and data seeking, adding and deleting method

Effective date of registration: 20200525

Granted publication date: 20180717

Pledgee: Pudong Development Silicon Valley Bank Co., Ltd. Beijing branch

Pledgor: ZOUBIAN SHIJIE (BEIJING) INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2020110000005

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180717

Termination date: 20210625

CF01 Termination of patent right due to non-payment of annual fee