B
B
BATYA2017-01-18 00:40:32
MySQL
BATYA, 2017-01-18 00:40:32

How to split a table into several?

Good day, there is a `cities` table that stores (id_ Countries, Region, City). How best to split it into separate tables (City, Region) so that cities do not lose touch with regions and regions with countries.
Is it possible to do this with this table in principle?
21178dc5136e4bfc8985a59065f57c15.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bkosun, 2017-01-18
@AngenOfBATYA

countries (id, name)
regions (id, country_id, name)
cities (id, country_id, region_id, name)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question