How to export in phpmyadmin not include id column (the AUTO_INCREMENT column)

前端 未结 2 1160
南笙
南笙 2021-02-05 09:38

My database structure is:

`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`address` varchar(50) COLLATE utf8_unicode         


        
相关标签:
2条回答
  • 2021-02-05 10:34

    You can copy the table, and remove the ID primary column.

    You just need navigate to Operations tab and copying the table

    When it has copied, you go to Structure tab, and remove primary column

    After remove the primary column, just go Export tab.

    0 讨论(0)
  • 2021-02-05 10:35

    Go to SQL tab and manually write your select query without id column (SELECT name, address, ... FROM your_table). Then once you get the table with the results, scroll down to the bottom of the page and you'll see export icon inside the gray "Query results operations" fieldset. This should work for you.

    Screenshot per request (see very bottom): enter image description here

    0 讨论(0)
提交回复
热议问题