Generate batch SQL statements from excel sheet, the rapid entry of data into the database

Problem Description: Excel table, there are many data, you need to import data into the database, you can not enter it manually one by one, can generate SQL, to bulk operations.

Solution:

1, the first column of the second row in the AE, the insertion function: = the CONCATENATE ( "the INSERT course` the INTO` ( `CID`, Cname``, `TID`) the VALUES ( '", A2, "', '", B2 , '', '3'); ")   on behalf of the function taken from each data column.

2. then move the cursor to the end of AE2 cell function fx, drop, generates SQL statements

3, the last in the label of the "AE" AE listed the top, right-click Copy, successfully copy all the SQL statements and SQL statements in the database to perform on OK, and the success of the data in excel spreadsheet entry into the database.

Guess you like

Origin blog.csdn.net/qq_39247153/article/details/88527244