What is wrong with my SQL here? #1089 - Incorrect prefix key

后端 未结 13 1791
迷失自我
迷失自我 2020-12-01 02:21
CREATE TABLE `table`.`users` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `username` VARCHAR(50) NOT NULL,
    `password` VARCHAR(50) NOT NULL,
    `dir` VARCHAR(         


        
相关标签:
13条回答
  • 2020-12-01 03:23

    There is a simple way of doing it. This may not be the expert answer and it may not work for everyone but it did for me.

    Uncheck all primary and unique check boxes, jut create a plain simple table.

    When phpmyadmin (or other) shows you the table structure, make the column primary by the given button.

    Then click on change and edit the settings of that or other colums like 'unique' etc.

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