Composite primary key and foreign key part of PK?
Posted: 2014-04-07 04:49
I have database schemas, wherein I have several tables with a composite primary key (meaning 2 0r more columns together make up a single PK).
I also frequently have FKs in a table also be part of the PK of that table.
I just started using appgini today and on a simple schema, it said:
-A foreign key cannot also be a primary key, and
-A table cannot have > 1 PK..implying that I can only have a single column PK.
Is this a limitation of appgini? Only single column PK and a PK in a table cannot be an FK as well? In other words use only auto-generated IDs or something for each table?
thank you for any help you may be able to provide!
-abajaj11
I also frequently have FKs in a table also be part of the PK of that table.
I just started using appgini today and on a simple schema, it said:
-A foreign key cannot also be a primary key, and
-A table cannot have > 1 PK..implying that I can only have a single column PK.
Is this a limitation of appgini? Only single column PK and a PK in a table cannot be an FK as well? In other words use only auto-generated IDs or something for each table?
thank you for any help you may be able to provide!
-abajaj11