Answer the question
In order to leave comments, you need to log in
How many times is a foreign key used in another table?
Suppose there are 2 tables (just give an example)
1 table - prof
2 table - per
CREATE TABLE prof (
id_prof int(4) NOT NULL PRIMARY KEY AUTO_INCREMENT,
name varchar(40)
)/
CREATE TABLE per (
id_per int(2) NOT NULL PRIMARY KEY AUTO_INCREMENT,
name varchar(40),
id_prof int(4) FOREIGN KEY
)
/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question