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

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

      • <bdo id='kuoyH'></bdo><ul id='kuoyH'></ul>

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

      1. <tfoot id='kuoyH'></tfoot>

        插入值列表与列列表不匹配:1136 列计数与值计数

        时间:2023-10-05
                <i id='A08Lb'><tr id='A08Lb'><dt id='A08Lb'><q id='A08Lb'><span id='A08Lb'><b id='A08Lb'><form id='A08Lb'><ins id='A08Lb'></ins><ul id='A08Lb'></ul><sub id='A08Lb'></sub></form><legend id='A08Lb'></legend><bdo id='A08Lb'><pre id='A08Lb'><center id='A08Lb'></center></pre></bdo></b><th id='A08Lb'></th></span></q></dt></tr></i><div id='A08Lb'><tfoot id='A08Lb'></tfoot><dl id='A08Lb'><fieldset id='A08Lb'></fieldset></dl></div>
                • <bdo id='A08Lb'></bdo><ul id='A08Lb'></ul>

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

                    <tbody id='A08Lb'></tbody>

                  <legend id='A08Lb'><style id='A08Lb'><dir id='A08Lb'><q id='A08Lb'></q></dir></style></legend>
                • <tfoot id='A08Lb'></tfoot>

                  本文介绍了插入值列表与列列表不匹配:1136 列计数与值计数不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有这个 PHP-MySQL 插入代码:

                  I have this PHP-MySQL insert code:

                  $sqlTeeth = "INSERT INTO teeth (id_logged, patient_id, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eightteen, nineteen, twenty, twone, twtwo, twthree, twfour, twfive, twsix, twseven, tweight, twnine, thirty, thone, thtwo, date_now) VALUES (:id_logged, :patient_id, :one, :two, :three, :four, :five, :six, :seven, :eight, :nine, :ten, :eleven, :twelve, :thirteen,
                              :fourteen, :fifteen, :sixteen, :lone, :ltwo, :lthree, :lfour, :lfive, :lsix, :lseven, :leight, :lnine, :lten, :leleven, :ltwelve, :lthirteen,
                              :lfourteen, :lfifteen, :lsixteen)";
                          $sqlTeethStmt = $conn->prepare($sqlTeeth);
                          $sqlTeethStmt->bindValue(":id_logged", $id_logged);
                          $sqlTeethStmt->bindValue(":patient_id", $patient_id);
                          $sqlTeethStmt->bindValue(":one", $one);
                          $sqlTeethStmt->bindValue(":two", $two);
                          $sqlTeethStmt->bindValue(":three", $three);
                          $sqlTeethStmt->bindValue(":four", $four);
                          $sqlTeethStmt->bindValue(":five", $five);
                          $sqlTeethStmt->bindValue(":six", $six);
                          $sqlTeethStmt->bindValue(":seven", $seven);
                          $sqlTeethStmt->bindValue(":eight", $eight);
                          $sqlTeethStmt->bindValue(":nine", $nine);
                          $sqlTeethStmt->bindValue(":ten", $ten);
                          $sqlTeethStmt->bindValue(":eleven", $eleven);
                          $sqlTeethStmt->bindValue(":twelve", $twelve);
                          $sqlTeethStmt->bindValue(":thirteen", $thirteen);
                          $sqlTeethStmt->bindValue(":fourteen", $fourteen);
                          $sqlTeethStmt->bindValue(":fifteen", $fifteen);
                          $sqlTeethStmt->bindValue(":sixteen", $sixteen);
                  
                          $sqlTeethStmt->bindValue(":lone", $lone);
                          $sqlTeethStmt->bindValue(":ltwo", $ltwo);
                          $sqlTeethStmt->bindValue(":lthree", $lthree);
                          $sqlTeethStmt->bindValue(":lfour", $lfour);
                          $sqlTeethStmt->bindValue(":lfive", $lfive);
                          $sqlTeethStmt->bindValue(":lsix", $lsix);
                          $sqlTeethStmt->bindValue(":lseven", $lseven);
                          $sqlTeethStmt->bindValue(":leight", $leight);
                          $sqlTeethStmt->bindValue(":lnine", $lnine);
                          $sqlTeethStmt->bindValue(":lten", $lten);
                          $sqlTeethStmt->bindValue(":leleven", $leleven);
                          $sqlTeethStmt->bindValue(":ltwelve", $ltwelve);
                          $sqlTeethStmt->bindValue(":lthirteen", $lthirteen);
                          $sqlTeethStmt->bindValue(":lfourteen", $lfourteen);
                          $sqlTeethStmt->bindValue(":lfifteen", $lfifteen);
                          $sqlTeethStmt->bindValue(":lsixteen", $lsixteen);
                  
                          $sqlTeethStmt->execute();
                  

                  当我向数据库添加内容时,出现此错误:

                  When I add something to database, I got this error:

                  SQLSTATE[21S01]:插入值列表与列列表不匹配:1136列数与第 1 行的值数不匹配

                  SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1

                  感谢任何帮助.

                  推荐答案

                  你的数据库表有 35 列

                  Your database table has 35 columns

                  id_logged, patient_id, one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eightteen, nineteen, twenty, twone, twtwo, twthree, twfour, twfive, twsix, twseven, tweight, twnine, thirty, thone, thtwo, date_now
                  

                  您传递的值是 34 列

                  Where as the values you are passing are 34 columns

                  VALUES (:id_logged, :patient_id, :one, :two, :three, :four, :five, :six, :seven, :eight, :nine, :ten, :eleven, :twelve, :thirteen,
                          :fourteen, :fifteen, :sixteen, :lone, :ltwo, :lthree, :lfour, :lfive, :lsix, :lseven, :leight, :lnine, :lten, :leleven, :ltwelve, :lthirteen, :lfourteen, :lfifteen, :lsixteen)
                  

                  这种不匹配的列会给您带来错误.

                  This mismatch of columns is giving you the error.

                  您忘记传递 date_now 列的值.一旦你通过它错误将被解决

                  You forgot to pass the value for date_now column. once you pass it error will be resolved

                  这篇关于插入值列表与列列表不匹配:1136 列计数与值计数不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:“服务器发送客户端未知的字符集(255)"将 M 下一篇:致命错误:调用未定义的方法 Database::prepare()

                  相关文章

                  最新文章

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

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

                      <tfoot id='rag4V'></tfoot>
                    1. <legend id='rag4V'><style id='rag4V'><dir id='rag4V'><q id='rag4V'></q></dir></style></legend>