关键词搜索

源码搜索 ×
×

ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be def

发布2017-10-03浏览23847次

详情内容

        如下:

  1. mysql> create table tbx(
  2. -> id int unsigned not null auto_increment,
  3. -> score int not null
  4. -> );
  5. ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key
  6. mysql>
       什么意思呢? 自增列只能有1列, 且这列必须为key,  如下便OK:

  1. mysql> create table tbx(
  2. -> id int unsigned not null auto_increment primary key,
  3. -> score int not null
  4. -> );
  5. Query OK, 0 rows affected (0.01 sec)
  6. mysql>

      good
   

相关技术文章

点击QQ咨询
开通会员
返回顶部
×
微信扫码支付
微信扫码支付
确定支付下载
请使用微信描二维码支付
×

提示信息

×

选择支付方式

  • 微信支付
  • 支付宝付款
确定支付下载