<tfoot id='o9xC8'></tfoot>
  • <small id='o9xC8'></small><noframes id='o9xC8'>

      <bdo id='o9xC8'></bdo><ul id='o9xC8'></ul>

    <legend id='o9xC8'><style id='o9xC8'><dir id='o9xC8'><q id='o9xC8'></q></dir></style></legend>

        <i id='o9xC8'><tr id='o9xC8'><dt id='o9xC8'><q id='o9xC8'><span id='o9xC8'><b id='o9xC8'><form id='o9xC8'><ins id='o9xC8'></ins><ul id='o9xC8'></ul><sub id='o9xC8'></sub></form><legend id='o9xC8'></legend><bdo id='o9xC8'><pre id='o9xC8'><center id='o9xC8'></center></pre></bdo></b><th id='o9xC8'></th></span></q></dt></tr></i><div id='o9xC8'><tfoot id='o9xC8'></tfoot><dl id='o9xC8'><fieldset id='o9xC8'></fieldset></dl></div>
      1. 将 CSV 导入 phpmyadmin

        时间:2023-06-02
        1. <i id='gaM2S'><tr id='gaM2S'><dt id='gaM2S'><q id='gaM2S'><span id='gaM2S'><b id='gaM2S'><form id='gaM2S'><ins id='gaM2S'></ins><ul id='gaM2S'></ul><sub id='gaM2S'></sub></form><legend id='gaM2S'></legend><bdo id='gaM2S'><pre id='gaM2S'><center id='gaM2S'></center></pre></bdo></b><th id='gaM2S'></th></span></q></dt></tr></i><div id='gaM2S'><tfoot id='gaM2S'></tfoot><dl id='gaM2S'><fieldset id='gaM2S'></fieldset></dl></div>
            <bdo id='gaM2S'></bdo><ul id='gaM2S'></ul>

                <tfoot id='gaM2S'></tfoot>

                  <small id='gaM2S'></small><noframes id='gaM2S'>

                • <legend id='gaM2S'><style id='gaM2S'><dir id='gaM2S'><q id='gaM2S'></q></dir></style></legend>
                    <tbody id='gaM2S'></tbody>

                  本文介绍了将 CSV 导入 phpmyadmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个像这样的 CSV,

                  I have a CSV that looks like this,

                  candidate_id,show_on_site,first_name,surname,gender,DOB,showdob,Location,height,eyes,hair_colour,hair_length,accents,unions,training,url,visible,availability
                  ,26,urban talent,Strawberry,Shortcake,Female,11 Jan 1942,FALSE,Manchester,5'2,Brown,Black,Mid-length,Native Lancashire,Equity,Urban Talent TV & Drama Workshops,Strawberry-Shortcake---5.4.06.jpg,Yes,Yes
                  ,29,urban talent,Rainbow,Brite,Female,12 Oct 1970,FALSE,Manchester,5'7,Brown,Dark Brown,Long,"Native Manchester, others include - Cheshire, RP, Patois, Standard USA",Equity Member,"BA Acting Studies, Arden School of Theatre<br>Urban Talent TV & Drama Workshops",Rainbow Brite 1_1.jpg,Yes,Yes
                  ,31,urban talent,Webbigail,Vanderquack,Female,4 Jun 1947,FALSE,Manchester,5'0,Hazel,Blonde,Mid-length,"Native Manchester, others include - Liverpool, Cockney, Birmingham, West Country, Standard Scottish, Standard Welch, S Irish",,Manchester School of Acting<br>3 Years at David Johnson Acting Workshops,Webbigail Vanderquack web 1.jpg,Yes,Yes
                  ,33,urban talent,Smurfette,Smurf,Female,1 Jul 1979,FALSE,Manchester,5'2,Dark Brown,Dark Brown,Long,"Native Manchester, others include - Liverpool, RP, Lancashire, Birmingham, Cockney, Devon, Geordie, West Country, Glasgow, Edinburgh, South African, Standard & Southern US, Persian, Asian, Indian ~ good ear for accents",,"Manchester School of Acting, with Mark Hudson<br>North Cheshire Theatre College, with David Johnson<Oldham Theatre Workshop",Smurfette Smurf web 4.jpg,Yes,Yes
                  

                  是否可以仅将这些数据插入到我数据库中的现有列中,我认为它可以将其作为一个新表插入,然后将其作为列名称 A、B、C、D、E 等.

                  Is it possible to just insert this data into the existing columns in my database, all I can seem to it insert it as a new table which then has columns name A, B, C , D, E etc.

                  推荐答案

                  在 phpMyAdmin 中,单击表格,然后单击页面顶部的导入"选项卡.

                  In phpMyAdmin, click the table, and then click the Import tab at the top of the page.

                  浏览并打开 csv 文件.保持字符集不变.除非您有一个巨大的数据集(或慢速服务器),否则取消选中部分导入.选择文件后,格式应该已经选择了CSV",如果没有,则选择它(不使用 LOAD DATA).如果要在导入前清除整个表,请选中用文件替换表数据".如果您认为 CSV 文件中有重复项,可选择勾选忽略重复行".现在是重要的部分,将接下来的四个字段设置为这些值:

                  Browse and open the csv file. Leave the charset as-is. Uncheck partial import unless you have a HUGE dataset (or slow server). The format should already have selected "CSV" after selecting your file, if not then select it (not using LOAD DATA). If you want to clear the whole table before importing, check "Replace table data with file". Optionally check "Ignore duplicate rows" if you think you have duplicates in the CSV file. Now the important part, set the next four fields to these values:

                  Fields terminated by: ,
                  Fields enclosed by: "
                  Fields escaped by: \
                  Lines terminated by: auto
                  

                  目前这些匹配默认值,除了字段终止于",默认为分号.

                  Currently these match the defaults except for "Fields terminated by", which defaults to a semicolon.

                  现在点击 Go 按钮,它应该会成功运行.

                  Now click the Go button, and it should run successfully.

                  这篇关于将 CSV 导入 phpmyadmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:MySQL 相当于 Oracle 中的 DECODE 函数 下一篇:mysql 喜欢性能提升

                  相关文章

                    <bdo id='lNRj2'></bdo><ul id='lNRj2'></ul>

                  <tfoot id='lNRj2'></tfoot>

                  1. <i id='lNRj2'><tr id='lNRj2'><dt id='lNRj2'><q id='lNRj2'><span id='lNRj2'><b id='lNRj2'><form id='lNRj2'><ins id='lNRj2'></ins><ul id='lNRj2'></ul><sub id='lNRj2'></sub></form><legend id='lNRj2'></legend><bdo id='lNRj2'><pre id='lNRj2'><center id='lNRj2'></center></pre></bdo></b><th id='lNRj2'></th></span></q></dt></tr></i><div id='lNRj2'><tfoot id='lNRj2'></tfoot><dl id='lNRj2'><fieldset id='lNRj2'></fieldset></dl></div>

                      <legend id='lNRj2'><style id='lNRj2'><dir id='lNRj2'><q id='lNRj2'></q></dir></style></legend>

                      <small id='lNRj2'></small><noframes id='lNRj2'>