O
O
ololo132016-03-31 10:22:54
MySQL
ololo13, 2016-03-31 10:22:54

How to link mysql tables?

b0edb9cd758b45c29b4118610c1bc06d.jpg
There are two tables, but adress contains the number of the house (home), that is, 453 is 4 house 53 apartment how to link such tables? data type integer in two cases.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
O. J, 2016-03-31
@OrlovEvgeny


many-to-many foreign key relationships , etc.
In general, it is correct to store the house number and apartment number in different columns of the table. And already house numbers and house type to bind many-to-many, through an intermediate table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question