Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Import records containing commas into PHPMyAdmin without quotation marks

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

670 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