SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    May 2000
    Location
    Eugene, OR
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have spreadsheet data that I want to import into my database. I have created a database with the same columns as the spreadsheet.

    I understand how to load a file into my database.

    What I need to do, though, is prepare the data in a format that can then be loaded into the database.

    I tried to save it as a tab delimited text file, and then when I loaded the data in, it didn't end up in the right columns. It seems that there were too many columns in the text file... (Although the spreadsheet has the right amount of columns.)

    Any help would be appreciated.;

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Save it as a comma separated value file (*.csv in the Save As list). These are the easiest to import because you don't have to worry about spaces in text screwing you up.

    ------------------
    Wayne Luke - Sitepoint Moderator/Internet Media Developer
    Digital Magician Studios - Making Magic with Web Applications
    wluke@digitalmagician.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •