Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Import records containing commas into PHPMyAdmin without quotation marks

Posted on 2009-07-16
6
Medium Priority
?
717 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 1600 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

963 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