Navicat mysql export data batch insert form

Introduced here are the advanced settings for mysql same server type data transfer

After selecting the database, right-click "dump SQL file", the default export record format is one by one, using "complete insert statement", the format is as follows

INSERT  INTO `user` (`id number`, `username`, ` age` ) VALUES ( ' 1 ' , ' Liang Mingjie ' , ' 23 ' );
 INSERT INTO `user` (`id number`, `username` , `age`) VALUES ( ' 2 ' , ' Qiu Li'an ' , ' 56 ' ); 
 INSERT INTO `user` (`ID number`, `username`, `age`) VALUES ( ' 0 ' , ' Xu Qin ' , ' 23 ');  

This format guarantees compatibility, but sacrifices performance. Using source import on the server is simply fast.

It can be much faster if you export to the following format:

INSERT  INTO ` User` VALUES ( ' 1 ' , ' Liang Mingjie ' , ' 23 ' ), ( ' 2 ' , ' Qiu Li'an ' , ' 56 ' ), ( ' 0 ' , ' Xu Qin ' , ' 23 ' );

This format is called "extended insert statement" and is used as follows,

 

After selecting the database, right click - "Data Transfer" - select export as file 

Click "Advanced" - check "Use extended insert statement" (you can also check "Use transaction if necessary) 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324954846&siteId=291194637