Data storage and reading method, data processing device and electronic equipment
A technology for data storage and data reading, applied in the computer field, can solve problems such as inability to store, length limitation of VARCHAR data type, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] Based on the above data storage and reading scheme ideas, such as Figure 4 As shown, it is the flow of the data storage method shown in the embodiment of the present invention Figure 1 , the execution body of this method can be image 3 The data storage device 330 shown in. Such as Figure 4 As shown, the data storage method includes the following steps:
[0069] S410. Acquire data to be stored.
[0070] Wherein, the data to be stored may be data of VARCHAR data type to be written into the database. The file designated for writing data corresponding to the database is recorded as the original storage file. The database can pre-designate the maximum data length of data to be written, such as data of VARCHAR data type.
[0071] S420. Determine whether the length of the data is greater than a preset length threshold.
[0072] After acquiring the data to be stored, it is first judged whether the length of the data is greater than a preset length threshold. The len...
Embodiment 2
[0080] On the basis of the previous embodiment, this embodiment adds the following extended content.
[0081] First, if Figure 5 Shown is the flow of the data storage method of the embodiment of the present invention Figure II . On the basis of the method shown in the previous embodiment, a process of identifying data stored in a specified file is added. Such as Figure 5 As shown, after step S430, the following steps can also be performed:
[0082] S510. Set a flag in the original storage file for identifying the content of the original record as a specified file index.
[0083] In order to easily identify whether the content stored in the original record is the real stored data or the specified file index used to store the data, the original record that stores the specified file index can be identified, such as setting the content used to identify the original record in the original storage file Flag for the specified file index. In practical application scenarios, i...
Embodiment 3
[0091] Based on the above data storage and reading scheme ideas, such as Figure 7 As shown, it is the flow of the data reading method shown in the embodiment of the present invention Figure 1 , the execution body of this method can be image 3 The data reading device 340 shown in. Such as Figure 7 As shown, the data reading method includes the following steps:
[0092] S710. Obtain an original record of the data to be read in the original storage file.
[0093] Wherein, the data to be obtained may be data of VARCHAR data type to be read from the database. The file designated for storing data corresponding to the database is recorded as the original storage file. The database can pre-specify the maximum data length of stored data such as VARCHAR data type.
[0094] According to the externally input query condition, the original record of the data to be read in the original storage file is locked.
[0095] S720, judging whether the content of the original record is a s...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com