Solved

Import records containing commas into PHPMyAdmin without quotation marks

Posted on 2009-07-16
6
684 Views
Last Modified: 2013-12-13
I'm importing records from a tab delimited file into PHPMyAdmin using PHPMyAdmin's "CSV File Import" tool.  However, many of my records contain commas, in which case they're imported with quotation marks.  (I suspect this is why the tool has problems importing the records from a CSV file.)

The data is being mastered in Excel and then saved in an Excel-available format (ie. tab delimited, space delimited, space delimited, etc.)  Seeking a solution for importing these comma-containing records from an Excel-available format into PHPMyAdmin that doesn't automatically insert the quotation marks.  Thanks!
0
Comment
Question by:BBRRGG
  • 2
  • 2
6 Comments
 
LVL 14

Expert Comment

by:racek
ID: 24876476
You can replace commas in excel with "."
0
 

Author Comment

by:BBRRGG
ID: 24876690
I appreciate the feedback, but if I replace the "," s, wouldn't the records show up in my imported DB with "." instead of ","   ??

I'd like to still preserve the ","  in my records.  Just need to execute the import as such.
0
 
LVL 14

Accepted Solution

by:
racek earned 400 total points
ID: 24876773
USE MySQL Query Brouser and command like

LOAD DATA LOCAL INFILE 'C:/yourdatafilename.csv' INTO TABLE yourtablename
      FIELDS TERMINATED BY '\t'  LINES TERMINATED BY '\r\n' IGNORE 1 LINES;

more abot load:  http://dev.mysql.com/doc/refman/5.1/en/load-data.html
0
 

Author Closing Comment

by:BBRRGG
ID: 31604133
Also found some help from Microsoft's Database Publishing Wizard.  Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Router for PHP reqeusts 12 32
echo button 13 47
XML Data Missing in PHP SimpleXML 8 23
Filter wordpress query 3 11
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now