create table test(a int AUTO_INCREMENT PRIMARY KEY);

解决方案 »

  1.   

    create table mytable
    (id int AUTO_INCREMENT primary key);
      

  2.   

    CREATE TABLE mf_forums (
       id int(11) NOT NULL auto_increment,
       name varchar(20) NOT NULL,
       description text NOT NULL,
       UNIQUE id (id)
    );
      

  3.   

    creat table   yours( 
     
      one int(2) not null auto_increment primary key,
      
      two char(3) ,....)
    );
      

  4.   

    CREATE TABLE `ddd`
     (`id` INT NOT NULL AUTO_INCREMENT, `ssss` CHAR NOT NULL , PRIMARY KEY (`id`))