不是有Auto Increment属性的吗?

解决方案 »

  1.   

    我是在LINUX下编程,具体该怎么定义(id int unsigned NOT NULL,)?
      

  2.   

    我也很想知道,在windows98下怎么实现?
      

  3.   

    id int unsigned not null auto increment,
      

  4.   

    我试了,但是不行,怎么办?谁来救我?!mysql> CREATE TABLE Typetable (
        -> id int unsigned not null auto increment,
        -> type VARCHAR(20) NOT NULL,
        -> KEY index_name (id)
        -> );
    ERROR 1064: You have an error in your SQL syntax near 'auto increment,
    type VARCHAR(20) NOT NULL,
    KEY index_name (id)
    )' at line 2