mysql> load data local infile 'd:/lw.txt' into table user (code,password,channelId);
Query OK, 47819 rows affected
Records: 47819 Deleted: 0 Skipped: 0 Warnings: 0
用户信息导入到user表中,部分列导入,存储信息的文件lw.txt放在d盘根目录下,
如果文件中包含了全部列的信息直接load data local infile 'd:/lw.txt' into table user就Ok