Excel 2 CSV into phpMyAdmin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • carmoda

    #1

    Excel 2 CSV into phpMyAdmin

    is there a trick to saving Excel spreadsheets into a CSV format that will
    import into phpMyAdmin without errors??

    my CSV files have all kinds of errors, including loading the wrong fields.

    I use Excel [office 2k version] on Win2k

    phpMyAdmin 2.5.3-rc3 with MySQL 3.23.56


    --
    Regards,

    Carmoda
    iamcarmoda[remove-spam]@hotmail.com
    =============== =============== ======










  • Thomas Kaarud

    #2
    Re: Excel 2 CSV into phpMyAdmin


    "carmoda" <iamcarmoda@hot mail.com> wrote in message
    news:3f6fa8b8$0 $2818$afc38c87@ news.optusnet.c om.au...[color=blue]
    > is there a trick to saving Excel spreadsheets into a CSV format that will
    > import into phpMyAdmin without errors??
    >
    > my CSV files have all kinds of errors, including loading the wrong fields.
    >
    > I use Excel [office 2k version] on Win2k
    >
    > phpMyAdmin 2.5.3-rc3 with MySQL 3.23.56
    >[/color]


    Why not save the xls as tab delimited text (.txt) and use the mysql query:
    'load data infile "file.txt" into table whatever_table; '?

    Thomas.


    Comment

    • Thomas Kaarud

      #3
      Re: Excel 2 CSV into phpMyAdmin


      "carmoda" <iamcarmoda@hot mail.com> wrote in message
      news:3f6fa8b8$0 $2818$afc38c87@ news.optusnet.c om.au...[color=blue]
      > is there a trick to saving Excel spreadsheets into a CSV format that will
      > import into phpMyAdmin without errors??
      >
      > my CSV files have all kinds of errors, including loading the wrong fields.
      >
      > I use Excel [office 2k version] on Win2k
      >
      > phpMyAdmin 2.5.3-rc3 with MySQL 3.23.56
      >[/color]


      Why not save the xls as tab delimited text (.txt) and use the mysql query:
      'load data infile "file.txt" into table whatever_table; '?

      Thomas.


      Comment

      • Nikolai Chuvakhin

        #4
        Re: Excel 2 CSV into phpMyAdmin

        "carmoda" <iamcarmoda@hot mail.com> wrote in message
        news:3f6fa8b8$0 $2818$afc38c87@ news.optusnet.c om.au...[color=blue]
        >
        > is there a trick to saving Excel spreadsheets into a CSV format
        > that will import into phpMyAdmin without errors??[/color]

        I'd say yes. If you have dates in your spreadsheet, you need
        to format them as 'yyyy-mm-dd' before saving the spreadsheet
        as CSV.

        Cheers,
        NC

        Comment

        • Nikolai Chuvakhin

          #5
          Re: Excel 2 CSV into phpMyAdmin

          "carmoda" <iamcarmoda@hot mail.com> wrote in message
          news:3f6fa8b8$0 $2818$afc38c87@ news.optusnet.c om.au...[color=blue]
          >
          > is there a trick to saving Excel spreadsheets into a CSV format
          > that will import into phpMyAdmin without errors??[/color]

          I'd say yes. If you have dates in your spreadsheet, you need
          to format them as 'yyyy-mm-dd' before saving the spreadsheet
          as CSV.

          Cheers,
          NC

          Comment

          Working...