久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

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

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

      1. 從 PDO 準備好的語句中檢索(或模擬)完整查詢

        Retrieve (or simulate) full query from PDO prepared statement(從 PDO 準備好的語句中檢索(或模擬)完整查詢)

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

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

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

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

                  本文介紹了從 PDO 準備好的語句中檢索(或模擬)完整查詢的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在兩年前偶然發現了這個問題.

                  I stumbled upon this question from two years ago.

                  有沒有辦法在準備好的語句上調用 PDOStatement::execute() 時執行原始 SQL 字符串?出于調試目的,這將非常有用.

                  Is there a way to get the raw SQL string executed when calling PDOStatement::execute() on a prepared statement? For debugging purposes this would be extremely useful.

                  獲勝答案指出

                  [...] 你也可以得到你想要的設置 PDO 屬性PDO::ATTR_EMULATE_PREPARES.在這模式,PDO 將參數插入到SQL查詢并發送整個執行時查詢.

                  [...] You can also get what you want if you set the PDO attribute PDO::ATTR_EMULATE_PREPARES. In this mode, PDO interpolate parameters into the SQL query and sends the whole query when you execute().

                  但它沒有提到如何獲取結果查詢字符串.我知道在性能方面這是一個壞主意,但這在調試模式下不會打擾我.有人知道怎么做嗎?

                  But it doesn't mention how to get the resulting query string. I know it's a bad idea performance wise but that doesn't bother me in debug mode. Does anybody know how to do this?

                  PS 如果有什么辦法可以讓我重新打開/引起人們對原來兩年前的話題的關注而不是打開一個新話題,請告訴我.

                  推薦答案

                  我相信這是在這個問題中引用的原始問題中提到的.然而實際上應該有一種方法來檢索這些數據.

                  I believe this is mentioned in the original question that was reference in this one. However there is actually supposed to be a method for retrieving this data.

                  PDOStatement::debugDumpParams

                  然而,它目前并沒有按照文檔工作.這里有一個錯誤報告和補丁提交給它http://bugs.php.net/bug.php?id=52384 以防有人對它感興趣.在修復之前,您似乎只能使用查詢日志記錄或使用 PDO::ATTR_STATEMENT_CLASS 屬性設置自定義語句類.

                  However it isn't currently working as documented. There is a bug report and patch submitted for it here http://bugs.php.net/bug.php?id=52384 in case anyone is interested in voting on it. Until it's fixed it seems like you are left to use query logging or setting a custom statement class using the PDO::ATTR_STATEMENT_CLASS attribute.

                  這篇關于從 PDO 準備好的語句中檢索(或模擬)完整查詢的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準備好的語句amp;foreach 循環)
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個服務器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個參數)
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“localhost的訪問被拒絕)
                    <tfoot id='Fpd2H'></tfoot>
                      <tbody id='Fpd2H'></tbody>
                    • <legend id='Fpd2H'><style id='Fpd2H'><dir id='Fpd2H'><q id='Fpd2H'></q></dir></style></legend>

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

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

                          • 主站蜘蛛池模板: 天天爱av | 久久久亚洲成人 | 99re6在线视频精品免费 | 99久久99 | 一区二区成人 | 91在线免费视频 | 中文字幕一区二区三区乱码图片 | 久久精品国产99国产精品亚洲 | 精品三区 | 中文字幕啪啪 | 一区二区三区电影网 | 999re5这里只有精品 | 国产精品人人做人人爽 | 天天曰夜夜操 | 日韩一区二区视频 | 久久综合成人精品亚洲另类欧美 | 成人精品一区二区三区 | 亚洲黄色成人网 | 国产一区二区三区在线视频 | 精品国产乱码久久久久久图片 | 一本在线| 九九热久久免费视频 | 欧美黄色精品 | www.888www看片 | 久久久夜夜夜 | 成人免费在线观看 | h视频在线免费 | 午夜亚洲 | 中文成人在线 | www.黄色网 | 在线久草 | 天天草视频 | 我要看免费一级毛片 | av一二三四 | 国产一二三区精品视频 | 欧美精品福利视频 | 国产精品18hdxxxⅹ在线 | 人人干人人玩 | 日韩精品免费一区二区在线观看 | 日韩精品免费 | 欧美视频精品 |