How to LOAD DATA INFILE in mysql with first col being Auto Increment?

后端 未结 7 2052
离开以前
离开以前 2020-11-30 02:05

Currently, We have a table similar to this:

---------------------
ID | AField | BField|
---------------------

The ID is Auto Increment

7条回答
  •  余生分开走
    2020-11-30 02:47

    If you have only a small number of columns, you can just name them: LOAD DATA LOCAL INFILE 'myfile.txt' INTO TABLE mytable (AField); (assuming only ID & AField)

提交回复
热议问题