Solved

Import records containing commas into PHPMyAdmin without quotation marks

Posted on 2009-07-16
6
686 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP/Magento not logging 2 33
Append letter to end of string 4 36
wamp versus xampp 4 43
using php variable inside javascript 5 11
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

919 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

14 Experts available now in Live!

Get 1:1 Help Now