What is the “best” way to store international addresses in a database?

后端 未结 6 532
梦如初夏
梦如初夏 2020-12-04 23:46

What is the \"best\" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 00:24

    I think adding country/city and address text will be fine. country and city should be separate for reporting. Managers always ask for these kind of reports which you do not expect and I dont prefer running a LIKE query through a large database.

提交回复
热议问题