SQL 查询: ALTER TABLE `tb_user` CHANGE `id` `id` INT( 8 ) NOT NULL AUTO_INCREMENT MySQL 返回: #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key 这是这么回事呀

解决方案 »

  1.   

    每个表只能有一个AUTO_INCREMENT列,是不是原来已经有一列定义为自增了?
      

  2.   


    这又是啥原因呢
    Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\phpwork\people\zhu.php on line 21Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\phpwork\people\zhu.php on line 22
      

  3.   

    mysql_connect()语句有问题,没有成功连接数据库。
      

  4.   

    或者你根本没使用mysql_connect()函数连接数据库
      

  5.   

    后面加上 primary key,在检查是否还有另外的自增长型