Jump to content

creating a table with this csv data


ricez

Recommended Posts

Hey everyone,

 

I am trying to add this file into a MySQL table and it is not working out as predicted.

 

I want to have the database field to be:

 

ZIP, LATITUDE, LONGITUDE, CITY, STATE, COUNTY, ZIP_CLASS

 

Here are the first few lines from the text file:

 

"00501","+40.922326","-072.637078","HOLTSVILLE","NY","SUFFOLK","UNIQUE"

"00544","+40.922326","-072.637078","HOLTSVILLE","NY","SUFFOLK","UNIQUE"

"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"

"00605","+18.465162","-067.141486","AGUADILLA","PR","AGUADILLA","STANDARD"

"00606","+18.172947","-066.944111","MARICAO","PR","MARICAO","STANDARD"

 

I tried using this and it didn't fan out as predicted with the use of PHPMyAdmin. Any help with this is appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.