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

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

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

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

      使用 PDO 從 PHP 調用存儲過程到使用 INPUT 參數的

      Calling stored procedure from PHP using PDO to MSSQL Server using INPUT Paramters(使用 PDO 從 PHP 調用存儲過程到使用 INPUT 參數的 MSSQL Server)
      <tfoot id='4uPL4'></tfoot>

      <small id='4uPL4'></small><noframes id='4uPL4'>

            <tbody id='4uPL4'></tbody>

          1. <i id='4uPL4'><tr id='4uPL4'><dt id='4uPL4'><q id='4uPL4'><span id='4uPL4'><b id='4uPL4'><form id='4uPL4'><ins id='4uPL4'></ins><ul id='4uPL4'></ul><sub id='4uPL4'></sub></form><legend id='4uPL4'></legend><bdo id='4uPL4'><pre id='4uPL4'><center id='4uPL4'></center></pre></bdo></b><th id='4uPL4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4uPL4'><tfoot id='4uPL4'></tfoot><dl id='4uPL4'><fieldset id='4uPL4'></fieldset></dl></div>
          2. <legend id='4uPL4'><style id='4uPL4'><dir id='4uPL4'><q id='4uPL4'></q></dir></style></legend>
                <bdo id='4uPL4'></bdo><ul id='4uPL4'></ul>
                本文介紹了使用 PDO 從 PHP 調用存儲過程到使用 INPUT 參數的 MSSQL Server的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                這不起作用:

                  $dbh = new PDO("dblib:host=xxxx;dbname=xxx", "xxxxx", "xxxxx");
                
                  $sth = $dbh->prepare("{exec wcweb_UserInfo(?)}");
                  $sth->bindParam(1, $name);
                  $sth->execute();
                
                  while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
                    var_dump($result);
                  }
                

                這也不起作用:

                  $dbh = new PDO("dblib:host=xxxxx;dbname=xxxx", "xxxxx", "xxxx");
                
                  $sth = $dbh->prepare("{call wcweb_UserInfo(?)}");
                  $sth->bindParam(1, $name);
                  $sth->execute();
                
                  while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
                    var_dump($result);
                  }
                

                這確實有效:

                  $dbh = new PDO("dblib:host=xxxxx;dbname=xxxx", "xxxxx", "xxxx");
                
                  $sth = $dbh->prepare("exec wcweb_UserInfo @userid=?");
                  $sth->bindParam(1, $name);
                  $sth->execute();
                
                  while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
                    var_dump($result);
                  }
                

                我使用 2 嘗試了上面的方法,不管有沒有大括號,等等.我知道有些人會說,好吧,就按照它的工作方式來做吧?.. 問題是我正在使用 sqlsrv_query 庫將現有應用程序從 IIS 服務器移植到 Linux 服務器.

                I tried the above using 2 that did not work with and without the curly brackets, etc. I know some would say, well just do it the way it works? .. The problem is I am porting an exising application from an IIS Server using the sqlsrv_query library to a Linux server.

                應用程序中的所有數據庫調用都是用使用此方法的函數編寫的:{call wcweb_UserInfo(?)} .. 沒有指定任何參數名稱,因此我必須修改每個數據庫調用以包含參數名稱.我的印象是 PHP5 的 PDO 庫可以執行相同類型的調用?

                All of the database calls in the app are written in functions that use this method: {call wcweb_UserInfo(?)} .. None of the parameter names are specified, so I would have to modify every database call to include the parameter names. I was under the impression that the PDO library for PHP5 can do those same kind of calls?

                幫助!是我做錯了什么還是只是 PDO 無法進行這些類型的調用?

                Help! Is there something I am doing wrong or is it just that PDO can't make those kinds of calls?

                推薦答案

                出于某種原因,這有效:

                For some reason this works:

                  $sth = $dbh->prepare("exec wcweb_UserInfo ?");
                  $sth->bindParam(1, $name);
                  $sth->execute();
                
                  while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
                    var_dump($result);
                  }
                

                我也許可以忍受這個.有誰知道為什么其他方法不起作用?圖書館有區別嗎?

                I might be able to live with this. Anyone know why the other methods do not work? Is it a difference in the libraries?

                這篇關于使用 PDO 從 PHP 調用存儲過程到使用 INPUT 參數的 MSSQL Server的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                PHP PDO ODBC connection(PHP PDO ODBC 連接)
                Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                  <tfoot id='z6C5D'></tfoot>
                    <legend id='z6C5D'><style id='z6C5D'><dir id='z6C5D'><q id='z6C5D'></q></dir></style></legend>

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

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

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

                        • 主站蜘蛛池模板: 极品久久| 激情黄色在线观看 | 天堂男人av | av在线免费网站 | 日韩综合在线 | 888久久久 | 羞羞视频免费观 | 亚洲精品视频在线播放 | 看亚洲a级一级毛片 | xxxcom在线观看 | 中文字幕在线观看第一页 | 亚洲二区在线观看 | 国产真实乱全部视频 | 日韩久久精品 | 久久久国产一区 | 久久网站免费视频 | 日本a在线| 国产精品久久久久久久久久免费看 | av高清毛片 | 在线观看成人小视频 | 老司机深夜福利网站 | 日本免费一区二区三区四区 | 高清成人av| 草草视频在线观看 | 欧美精品久久久 | 国产成人亚洲精品自产在线 | 成人3d动漫一区二区三区91 | 日一区二区三区 | 中文字幕一区二区三区精彩视频 | 日韩一区二区久久 | 亚洲精品电影网在线观看 | 日韩a级片 | 99精品视频免费在线观看 | 久久免费小视频 | 欧洲亚洲视频 | 在线看h | 91热在线 | 国内精品视频在线观看 | 日本在线你懂的 | 久久精品亚洲一区二区三区浴池 | 成人在线视频免费观看 |