LOAD DATA assumes the columns in the datafile have the same order as the columns in the table. : LOAD « Command MySQL « SQL / MySQL
- SQL / MySQL
- Command MySQL
- LOAD
LOAD DATA assumes the columns in the datafile have the same order as the columns in the table.
mysql> LOAD DATA LOCAL INFILE 'mytbl.txt' INTO TABLE mytbl (b, c, a);
Related examples in the same category