PhpMyAdmin export does not include PRIMARY KEY as mysqldump

后端 未结 5 566
遇见更好的自我
遇见更好的自我 2021-02-08 20:06

Export of the struture of the same table with PhpMyAdmin:

`DROP TABLE IF EXISTS `test_apprentis`;
CREATE TABLE IF NOT EXISTS `test_apprentis` (
  `a_id` smallint         


        
5条回答
  •  庸人自扰
    2021-02-08 20:26

    It is not a silly question, phpMyAdmin used to include the KEYs at the end of the CREATE TABLE statement and their characteristics right next to their column name declaration. Following their 2014 changes log, after version 4.2.0.0 (2014-05-08) the export file structure was changed:

    • rfe #1004 Create indexes at the end in SQL export

    So we must look the end of the exported file to find all the indexes info

提交回复
热议问题