复合主键
少于1分钟
Set multiple fields as primary key creates composite primary key, for example:
将多个字段设置为主键,创建复合主键,例如:
|
|
Note integer
PrioritizedPrimaryField
enablesAutoIncrement
by default, to disable it, you need to turn offautoIncrement
for the int fields:注意:整数
PrioritizedPrimaryField
默认启用AutoIncrement
,要禁用它,您需要为int字段关闭autoIncrement
:
|
|