C
C
Carry2018-03-15 09:06:21
MySQL
Carry, 2018-03-15 09:06:21

MySQL CONSTRAINT two `id` to one `id`?

5aaa0b76c486e931557078.png
is it possible to make a CONSTRAINT key constraint this way?
(this is for clarity below)
ALTER TABLE `P` ADD CONSTRAINT `p_ibfk_1` FOREIGN KEY (`idP`,`idA`) REFERENCES `pg` (`id`)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-03-15
@Rsa97

Only two separate keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question