0
I have two tables: tbl1 and tbl2. In the tbl1 I own a pk
and in the tbl2 I own a FK
which refers to PK
of tbl1 and a pk
. With this, I can make a pk
composed for the tbl2 with these 2 fields ?
EX:
table cliente
field (id cliente (pk), nome, idade)
table produto
field (id cliente(fk), id produto (pk), nome, valor)
would like to create a PK
composed in the product table using the FK
and the PK
I hope I have made clear my doubt :v .
This is the best method
– DbaAlone
Thanks for the help
– Gabriel Silva
In another scenario I could use 2 FK to create a correct compound PK ?
– Gabriel Silva
@Gabrielsilva Sim
– Ronaldo Araújo Alves
If the answer has been useful, give upvote. If you have solved the problem, mark it as correct. This helps future users with the same issue identify how to solve. :)
– Ronaldo Araújo Alves