Solved

Import records containing commas into PHPMyAdmin without quotation marks

Posted on 2009-07-16
6
697 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

751 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