D
D
dbxhqugo2018-02-19 22:24:21
MySQL
dbxhqugo, 2018-02-19 22:24:21

What is the best way to store cities in this case?

What is the best way to store a list of cities in Russia and the world? We make a list of the cities of the online store available for delivery. We fill everything manually, because we gradually master the cities.
We are thinking of creating a cities table with the following structure:
id | full_name | short_name
for example:
1 | Kryzhopol, Vinnitsa region, Ukraine | Kryzhopol
full_name was made because sometimes there are cities with the same names. Or should we create multiple tables for cities, countries, regions, etc?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Knyazev, 2018-02-19
@dbxhqugo

Make separate columns for the city, region, country, + you will probably need to specify the address of the street and house (if pickup for example)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question