Best Practice / Standard for storing an Address in a SQL Database

前端 未结 6 1697
忘掉有多难
忘掉有多难 2020-12-08 10:58

I am wondering if there is some sort of \"standard\" for storing US addresses in a database? It seems this is a common task, and there should be some sort of a standard.

6条回答
  •  一整个雨季
    2020-12-08 11:31

    Very similar questions have been asked before.

    Addresses are messy - at best.

    It partly depends on what you want to do with the addresses. If you're going to use them to mail thing to people, then you simply need to record the image that will appear on the address label in a convenient form. If you're going to analyze the address, you have to work a lot harder.

    Remember that the first time you have to deal with someone outside the US, all previous rules go astray. You may be strictly US-only, but beware.

提交回复
热议问题