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 9232367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:17:51+00:00 2026-06-18T06:17:51+00:00

I am trying to import a .txt file that is in CSV format using

  • 0

I am trying to import a .txt file that is in CSV format using phpmyadmin. It is a ZipCode database of the United States. When I select the import option and then load the file everything gets inserted successfully except for the ZipCodes that start with a 0 It will not add the 0‘s so for example ZipCode 00601 gets added as 601, 01234 gets added as 1234. Has anyone experienced this before or know a way to prevent this? I have included a snippet of the .txt file below.

Snippet:

"00601","+18.165273","-066.722583","ADJUNTAS","PR","ADJUNTAS","STANDARD"
"00602","+18.393103","-067.180953","AGUADA","PR","AGUADA","STANDARD"
"00603","+18.455913","-067.145780","AGUADILLA","PR","AGUADILLA","STANDARD"
"00604","+18.493520","-067.135883","AGUADILLA","PR","AGUADILLA","STANDARD"
  • 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-18T06:17:53+00:00Added an answer on June 18, 2026 at 6:17 am

    You probably have the ZipCode data type as Integer and that is why the lead zeroes are omitted. Change the ZipCode data type to char(5) as answered here:
    Mysql Datatype for US Zip (Postal Codes)

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

Sidebar

Related Questions

I have a txt file that I’m trying to import as flat file into
I'm trying to import an XML file that contains a list of points for
I'm currently trying to import about 10000 rows (from a CSV file) into an
I'm currently trying to import a .txt file into some proprietary software but appear
I am trying to create a .csv file with data that I have stored
I'm trying to write a program that gets a .txt file that only has
I am trying to import my data form text file into mysql database. I
I am trying to import a simple tab separated text file using genfromtxt. I
Hi I am trying to run a bcp import of a file that is
I'm trying to access an authenticated site using a cookies.txt file (generated with a

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.