How to import text file to table with primary key as auto-increment

后端 未结 7 1659
清歌不尽
清歌不尽 2020-12-09 17:29

I have some bulk data in a text file that I need to import into a MySQL table. The table consists of two fields ..

  1. ID (integer with auto-increment)
  2. Na
7条回答
  •  温柔的废话
    2020-12-09 18:09

    I just used a TAB as the first field in my text file, then imported it as usual. I got a warning about the ID field but the field incremented as expected...

提交回复
热议问题