sql - What is better way to specify location of user : 3 columns or one location varchar column in mysql? -


i need way assign address user . address consists of 3 values :

country region  city 

it possible create 3 columns country, region , city. possible create 1 varchar column , separate country,region,city comma.

which approach better if need query user country and/or region and/or city?

it best practice store address in 3 separate columns. makes easier search 1 value or using and/or statements query based off of several values.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -