创建公告板时,我想知道如何设置id和帖子编号为主键。

huangapple 未分类评论46阅读模式
英文:

When creating a bulletin board, I'm asking how to set the id and post number primary keys

问题

我正在制作一个公告板。但是在我创建公告板时,我为ID值分配了一个主键。但现在我想要制作一个“board number”(公告板编号)。我不能为“no”指定主键,因为我过去已经为ID值指定了主键。我听说“no”应该被制作为一个主键。在这种情况下我该怎么办?

英文:

I'm making a bulletin board. But when I created the bulletin board, I assigned a primary key to the id value. But now I want to make a board number. I can't specify the primary key for no because I've already specified the primary key for the id value in the past. I heard that no should be made as a primary key. What should I do in this case?

huangapple
  • 本文由 发表于 2020年5月4日 15:06:29
  • 转载请务必保留本文链接:https://java.coder-hub.com/61586811.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定