Bol5261 2021-10-12 13:28 采纳率: 97.5%
浏览 18
已结题

mysql中的unsigned是什么意思?


create table if not exists test_tb1 (
test_id int unsigned auto_increment,
test_title varchar(100) not null,
test_author varchar(40) not null,
test_date date,
primary key (test_id)
)engine=InnoDB default charset=utf8;

为什么要用它?

  • 写回答

1条回答 默认 最新

  • zlebhs 2021-10-12 13:41
    关注

    无符号,至于为什么要用,那是你决定的。一般来说,id都是正的,当然你要负也没事,决定权在你手上。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 10月20日
  • 已采纳回答 10月12日
  • 创建了问题 10月12日