import csv

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Jenny
    Staff Sergeant

    • Dec 2005
    • 45

    import csv

    Hi,

    I would like to import a csv into a db that already contains data (without destroying that data).

    I am given some CSV options in phpMyAdmin and need some advice.

    Do I leave the column names field blank? Also, it says the fields are searated by ; but surely the whole point of CSV is that fields are separated by , or is that wrong?
  • Jenny
    Staff Sergeant

    • Dec 2005
    • 45

    #2
    Re: import csv

    Also, if one of the fields is "auto-increment" (the id field), then do I leave the id field out of the CSV file that I am importing?

    Comment

    • Karen Mac
      General

      • Apr 2006
      • 8332

      #3
      Re: import csv

      Jenny

      It would depend on what kind of database you are uploading to. CSV can also be seperated by the semi colon. Usually you can tell it that the top row is titles or headers and to create or skip the first row.

      If you are uploading to some sort of storebuilder I suggest you make your categories, and add one or two products, then download that file, and then format your new file to match it. Fewer headaches that way all the way around.

      Karen

      VodaHost

      Your Website People!
      1-302-283-3777 North America / International
      02036089024 / United Kingdom
      291916438 / Australia

      ------------------------

      Top 3 Best Sellers

      Web Hosting - Unlimited disk space & bandwidth.

      Reseller Hosting - Start your own web hosting business.

      Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


      Comment

      • davidundalicia
        General

        • Mar 2006
        • 6294

        #4
        Re: import csv

        If you are importing to a Mysql database then you have the option of changing the default (;) to a (,)

        Leave the auto increment field out

        If I were you, I would copy the table first and then import a single record/line first and then review the result.

        You can always delete any records that you import anyway.
        Have fun
        Regards..... David

        Step by Step Visual Tutorials for the complete beginner
        Newbies / Beginners Forum
        FREE Membership Login Scripts: - Meta Tags Analyzer
        My Social Networking Site - Free Contact Forms
        Finished your New website!! Now get it noticed Here:

        Comment

        Working...
        X