Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8512195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:12:54+00:00 2026-06-11T04:12:54+00:00

Possible Duplicate: What is the best way to store international addresses in a database?

  • 0

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

I would like the application to be global; meaning people from multiple countries (namely Australia, New Zealand, The United States and United Kingdom) can place listings. Because different countries have different formats of postcode, different classifications for areas (Australia and America have states, but places like Canada or the UK are different), how do I effectively store of all of this information?

I just can’t envision in my head what the MySQL database schema for something like this would look like. I don’t need to store any coordinates, just the users country, suburb/city/area and state/province so I can properly classify all of the information and display it on a classified listing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:12:56+00:00Added an answer on June 11, 2026 at 4:12 am

    In some ways, that depends on how much traffic your site is getting. Some will more than likely cringe at this, but if it is a smaller scale website and one is not expecting much traffic growth, it may not be worth normalizing your table. In that case, it may be fine just to store the country as the literal country name.

    However, in most cases – especially for repeating data like a Country name – I’ve seen methods that require normalization. For instance, for a quick and simple approach, you can make a dedicated table for each country and assign it a integer value – usually just through auto-incrementing. In that situation, you can then assign each user the associated country id. When querying, simply join the two table together. That is usually a more efficient method.

    For a very simply yet useful reference, Learning PHP, MySQL, and Javascript by O’reilly books has a similar example of normalizing tables through the above method. In a majority of cases, one will have repeating data – it’s a matter of minimizing it as well as balancing efficiency and theory with practicality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Best way to store password in database I have a database (mySQL)
Possible Duplicate: Best way to stop SQL Injection in PHP I would like to
Possible Duplicate: What's the best way to delete all data from a table? Clear
Possible Duplicate: What is the best way to store user settings for a .NET
Possible Duplicate: Best way to call Managed .NET code from Unmanaged code I'm curious
Possible Duplicate: Best way to get files from a dir filtered by certain extension
Possible Duplicate: What's the best way to display an image from a sql server
Possible Duplicate: Best way to stop SQL Injection in PHP I'd like a simple
Possible Duplicate: What is the best way to store user settings for a .NET
Possible Duplicate: Best way to find Browser type & version? In HTML/JavaScript, How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.