1. <legend id='8CD62'><style id='8CD62'><dir id='8CD62'><q id='8CD62'></q></dir></style></legend>
        <bdo id='8CD62'></bdo><ul id='8CD62'></ul>

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

      1. <small id='8CD62'></small><noframes id='8CD62'>

        默认情况下,PDO 是否总是使用模拟准备好的语句

        时间:2023-10-05

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

        <small id='3K4dS'></small><noframes id='3K4dS'>

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

                  <bdo id='3K4dS'></bdo><ul id='3K4dS'></ul>

                • 本文介绍了默认情况下,PDO 是否总是使用模拟准备好的语句?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  PDO 有选项 PDO::ATTR_EMULATE_PREPARES 控制是否准备好仅当数据库不支持或始终不支持时才应模拟语句.但是,它没有提到它是否总是默认模拟它们.

                  PDO has the option PDO::ATTR_EMULATE_PREPARES which controls if prepared statements should be emulated only if not supported by the DB or always. However, it does not mention if it always emulates them by default or not.

                  通常人们会假设仅在必要时才使用仿真,但由于它是 PHP,因此不能仅仅因为它是健全的就假设......

                  Usually one would assume that emulation is only used if necessary but since it's PHP nothing can be assumed just because it's sane...

                  推荐答案

                  取决于数据库驱动程序.它们总是默认模拟对于 MySql(当然您可以手动关闭该选项);在 Postgres 中,正确的默认设置是 动态检测.

                  Depends on the database driver. They are always emulated by default for MySql (although of course you can turn the option off manually); in Postgres the proper default setting is detected dynamically.

                  这篇关于默认情况下,PDO 是否总是使用模拟准备好的语句?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 PDO 获取一行 下一篇:使用 PDO 将大量变量插入表中

                  相关文章

                  最新文章

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

                      <legend id='H8s3p'><style id='H8s3p'><dir id='H8s3p'><q id='H8s3p'></q></dir></style></legend>
                    1. <small id='H8s3p'></small><noframes id='H8s3p'>

                    2. <tfoot id='H8s3p'></tfoot>