<div dir="ltr">This happens when the field name is a number. adding a string character and it works:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">NAME, y2013, y2014</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<span style="font-family:arial,sans-serif;font-size:12.727272033691406px">REGION1,"1000","2000"</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">REGION2,"3000","4000"</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Don't know if this is a bug or a limitation.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Alexandre Neto</span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, May 26, 2014 at 5:52 PM, João Gaspar <span dir="ltr"><<a href="mailto:joao.f.r.gaspar@gmail.com" target="_blank">joao.f.r.gaspar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Yes i confirm this behavior with numbers, with the text fields works ok.<br><br>Test in QGIS 2.2 Valmiera OSGeo4W 32-bits Installer in Windows 7 64-bits.<br><br></div><div>Alexandre, do you have the same behavior?<br>

</div><div><br></div>Regards<br></div>João<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-26 17:36 GMT+01:00 Ourizo Cacho <span dir="ltr"><<a href="mailto:usuario7@gmx.es" target="_blank">usuario7@gmx.es</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Sure,<br>
    the situation could be:<br>
    <br>
    csv file content:<br>
    <br>
    NAME,2013,2014<br>
    REGION1,"1000","2000"<br>
    REGION2,"3000","4000"<br>
    <br>
    I try to add this file into QGIS as an only table, with no
    geometries associated and the result I get is like this:<br>
    <br>
    <br>
    NAME,field_2,field_3<br>
    REGION1,"1000","2000"<br>
    REGION2,"3000","4000"<br>
    <br>
    <br>
    <br>
    <div>El 26/05/2014 18:26, Alexandre Neto
      escribió:<br>
    </div><div><div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        can you please send a sample of your csv file?
        <div><br>
        </div>
        <div>Alexandre Neto</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, May 26, 2014 at 5:24 PM, Ourizo
          Cacho <span dir="ltr"><<a href="mailto:usuario7@gmx.es" target="_blank">usuario7@gmx.es</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello
            everyone,<br>
            I have a *csv file that I´m trying to add as an attribute
            only table. The question is that QGIS only recognizes the
            name of the first field. The others are named, field_2,
            field_3 and so on... The rest of the table, including
            attibutes are ok.<br>
            How can I get the correct names of the fields into a new
            QGIS attribute table??<br>
            Any help, please?<br>
            <br>
            ---<br>
            Este mensaje no contiene virus ni malware porque la
            protección de avast! Antivirus está activa.<br>
            <a href="http://www.avast.com" target="_blank">http://www.avast.com</a><br>
            <br>
            _______________________________________________<br>
            Qgis-user mailing list<br>
            <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
            <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  
<br><br>
</div></div><hr style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
        <tbody><tr>
                <td style="border:none;padding:0px 15px 0px 8px">
                        <a href="http://www.avast.com/" target="_blank">
                                <img src="http://static.avast.com/emails/avast-mail-stamp.png" border="0">
                        </a>
                </td>
                <td>
                        <p style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
                                Este mensaje no contiene virus ni malware porque la protección de <a href="http://www.avast.com/" target="_blank">avast! Antivirus</a> está activa.
                        </p>
                </td>
        </tr>
</tbody></table>
<br>
</div>

<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>