Using POI to import and export Excel with large amount of data
Yesterday, the product put forward an urgent demand to export the commodity data shipped in November, write SQL and send it to DBA for execution, and then get more than 30 Excel files of 100W data. There is a property that exists in a field in the table in JSON format. You need to process the excel f ...
Posted by Prismatic on Sat, 11 Jan 2020 03:14:49 -0800
How to import CSV file data into PostgreSQL table?
How to write a stored procedure that imports data from a CSV file and populates tables?
#1 building
You can also use pgAdmin, which provides a GUI to import. Here it is. Show in SO thread . The advantage of using pgAdmin is that it is also applicable to remote databases.
However, much like the previous solution, you will need to have ...
Posted by RoBoTTo on Wed, 08 Jan 2020 03:11:35 -0800
Use the remodule in Python to parameterize test cases, search, replace sub
For automated test cases, if 100 interfaces are to write 100 sheet forms in Excel, each interface has 10 fields, and 5 of them may be changing, you need to use parameterization, try using specific characters to position first, and replace placeholders when constructing parameters;
1. Replace the mobile phone number by using replace in the strin ...
Posted by itbegary on Mon, 06 Jan 2020 09:17:23 -0800
PHP export data to table instance
I found that there are many pages to export excel table for recent projects. I think this is also our common function. Now I can export it skillfully, but I remember that when I first exported it, there were some detours, so now I will record my export under the project of exhop framework (in fact, the export principles of Excel under different ...
Posted by MeanMrMustard on Mon, 06 Jan 2020 02:33:29 -0800
Crawler - crawling web page data into form
Recently, due to personal needs, self-study crawlers from related books and online materials. The target website is http://mzj.beijing.gov.cn. The content is sorted and screened and stored in excel format.
First, the content of the table is set. The encoding format is defined as utf-8. Add a sheet table, where the head is the ...
Posted by rrhody on Sun, 05 Jan 2020 16:38:22 -0800
VBA auto mail + content + attachment
As an example, we need to automatically send the following table to different customers based on the data of nearly 7 days.
The raw data are as follows:
The details of the latest n days to be generated are as follows
The general idea is as follows: get mailbox - > process data - > generate excel - > generate Email
In the actual ...
Posted by ksteuber on Sun, 05 Jan 2020 13:21:05 -0800
Using Python to manipulate mailboxes
1, Mailbox adds interfaces for software intervention, such as our mailbox verification and mailbox login, but only if we need to configure them,
Take QQ email and Netease email as examples:
QQ email: first click the setting button
QQ email: select Account tab
QQ email: find this service
QQ email: then send SMS to the ...
Posted by Drachlen on Sat, 04 Jan 2020 20:13:45 -0800
Java EE operation excel file
Download the JXL rack package at http://jareye.com/
operation
Read Workbook: Workbook workbook=Workbook.getWorkbook(new File("myfile.xls");
Read sheet: Sheet sheet=workbook.getSheet(0);
Read cell: Cell c2=sheet.getCell(2,1); / / cell starts from (0,0)
Read the value of cell: 1. Through the getContents method of ...
Posted by Balu on Fri, 03 Jan 2020 23:32:57 -0800
C ා implement EXCEL table to DataTable
C ා code implementation converts excel file into DataTable. According to the different suffix names of Excel files, it is implemented in different ways. Next, it is implemented by two suffixes of Excel file (*. xlsx and *. xls). The method to get the file suffix name is: Path.GetExtension(fileName) method, with reference to: using System.IO; th ...
Posted by PHPGuru_2700 on Fri, 03 Jan 2020 15:20:29 -0800
[Python development] operation of Excel read
The main idea is to refer to the content of this blog and post the address:
http://www.cnblogs.com/zhoujie/p/python18.html
Here's my own code
The demo code for reading excel data is as follows:
1 def read_excel_demo():
2 # Open file
3 workbook = xlrd.open_workbook(r'C:\Users\wxz\Desktop\2018 Annual credit card expense( Kevin).xlsx') ...
Posted by gofer on Thu, 02 Jan 2020 11:52:20 -0800