Jump to content

Importing CSV into MySQL using phpMyAdmin


timtom3

Recommended Posts

How do I import a CSV file into MySQL using phpMyAdmin

 

my table is set out like this:

 

CREATE TABLE zipcodes (

zipcode varchar(9) NOT NULL default '0',

latitude decimal(13,12) NOT NULL default '0.000000000000',

longitude decimal(13,12) NOT NULL default '0.000000000000',

town varchar(25) NOT NULL default '0',

address1 varchar(25) NOT NULL default '',

address2 varchar(25) NOT NULL default '',

county varchar(30) NOT NULL default '',

PRIMARY KEY (zipcode),

UNIQUE KEY zipcode_2 (zipcode),

KEY zipcode (zipcode)

) TYPE=MyISAM;

 

 

My data is set out like this:

 

zipcode Latitude Longitude town address1 address2 county

BB1 1BA 53.74564368 -2.4715445 Blackburn Bristol Close Lancashire

 

Link to comment
https://forums.phpfreaks.com/topic/2653-importing-csv-into-mysql-using-phpmyadmin/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.