英文:
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?
专注分享java语言的经验与见解,让所有开发者获益!
评论