Previously, I saved the excel file as a csv file through SQLyog, and then imported it into the mysql database. However, due to the large amount of data, it was very troublesome to write the table-building statement (copy the first line of the Excel horizontal table (the attribute line), and then transpose, Go to the txt file, write a statement to create a table, and add a comma). Yesterday I spent a day thinking about this problem. Under the guidance of my predecessors, I found this quicker way to import large amounts of data.
1. Create a database, the name is temporarily called hunanshencysj;
2, and then create a table structure, but there is a very convenient way to directly copy the statement to build the table; first picture it!
Click Edit sql, and you will find the table-building statement
3. Use the copied table-building statement to build the table successfully; copy the table data in the EXCel file to the UE software (other text editors are also available) and save it as a txt file.
4. Import data from the command line
load data local infile “E:/ppml.txt”
into table n_ppml;
Import excel data into mysql database (using sqlyog as database management software) Recently, there are often large quantities of data that need to be processed. In order to prevent yourself from for...
1. Create a table 2. Create a stored procedure 3. To call a stored procedure Reproduced in: https: //my.oschina.net/8808/blog/3068380...
Company code: Application class code: Parse the contents of the file on the linux system and save it to mysql....
After learning the installation and configuration of the previous series of MySQL tools, this blog will introduce the use of the MySQL tool SQLYog to import SQL Server 2008 R2 database data into MySQL...
How to backup zabbix data with large data volume Due to the large data of online zabbix, the data directory is nearly 1.7T of data, but these data are mainly historical data View the size of each tabl...
Knowledge can never be learned, but more knowledge will make life easier! If you want to insert a lot of data in order according to the ID or code, use the storage Note: Function definition DROP PROCE...
Mysql data import error with sqlyog After the newly installed mysql5.7 uses sqlyog to export mysql5.5 to export data, and then uses sqlyog to import 5.7mysql, an error is reported It took me a long ti...
1. Create your Excel table, the fields inside, and the fields in your database table. 2. Open SQLYOGA, create your own database table, and keep consistent with the data field in the Excel table 3. Rig...
The function of Giraph is being expanded recently in order to support the Giraph system to store more data Later, MySQL was embedded under the advice of the teacher. In fact, there is no TAT at all. I...