mysql LOAD DATA INFILE with auto-increment primary key

后端 未结 5 1052
灰色年华
灰色年华 2021-02-19 03:48

I am trying to load a data file into mysql table using \"LOAD DATA LOCAL INFILE \'filename\' INTO TABLE \'tablename\'\".

The problem is the source data file contains dat

5条回答
  •  温柔的废话
    2021-02-19 04:31

    your data file should look like this: null, study chars, other fields... MySQL will insert incremented id istead of null

提交回复
热议问题