<bdo id='cNUHj'></bdo><ul id='cNUHj'></ul>
    <legend id='cNUHj'><style id='cNUHj'><dir id='cNUHj'><q id='cNUHj'></q></dir></style></legend>
  • <tfoot id='cNUHj'></tfoot>

    1. <small id='cNUHj'></small><noframes id='cNUHj'>

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

        PDO 参数化查询 - 重用命名占位符?

        时间:2023-09-20

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

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

                  本文介绍了PDO 参数化查询 - 重用命名占位符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  本质上,我有一个值,我必须在我的 SQL 查询中调用几次.因此,是否可以在语句中重用相同的命名占位符,例如SELECT :Param FROM Table WHERE Column = :Param,然后简单的 bindValue(":Param"),并且有两个 :Params 的值?

                  In essence, I have a value that I have to call a couple times in my SQL query. Thus, is it possible to reuse the same named placeholder in the statement e.g. SELECT :Param FROM Table WHERE Column = :Param, then simply bindValue(":Param"), and have the value be there for both :Params?

                  推荐答案

                  PDO::prepare 指出您不能在准备好的语句中两次使用同名的命名参数标记",所以我想那是不行的.

                  PDO::prepare states that "you cannot use a named parameter marker of the same name twice in a prepared statement", so I guess that's a no then.

                  这篇关于PDO 参数化查询 - 重用命名占位符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:占位符的 PDO 有效字符 下一篇:PHP PDO - 绑定表名?

                  相关文章

                  最新文章

                2. <legend id='cAbiE'><style id='cAbiE'><dir id='cAbiE'><q id='cAbiE'></q></dir></style></legend>

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

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

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