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

      • <bdo id='3RyTb'></bdo><ul id='3RyTb'></ul>

    1. <small id='3RyTb'></small><noframes id='3RyTb'>

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

        SQLSRV 驱动程序与用于 PHP 和 MS SQL Server 的 PDO 驱动

        时间:2023-10-05

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

          • <small id='RA5cD'></small><noframes id='RA5cD'>

              • <bdo id='RA5cD'></bdo><ul id='RA5cD'></ul>
                <tfoot id='RA5cD'></tfoot>
                    <tbody id='RA5cD'></tbody>

                1. 本文介绍了SQLSRV 驱动程序与用于 PHP 和 MS SQL Server 的 PDO 驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  在 SQLSRV 驱动程序与 PDO 驱动程序之间进行选择时,我应该考虑哪些因素(对于带有 MS SQL 服务器的 PHP)?

                  What considerations should I take into account when choosing between SQLSRV driver vs. PDO driver (for PHP with MS SQL server)?

                  我看到了之前的 Stackoverflow 帖子(在 Windows 上使用 PHP 时,哪个更好(1)SQL Server 的本机驱动程序或(2)PDO 驱动程序? )但答案似乎有点缺乏并且没有没有提到 这篇文章.

                  I saw this previous Stackoverflow post ( When using PHP on Windows, what is better (1) the native driver for SQL Server or (2) the PDO driver? ) but the answer seems a bit lacking and doesn't mention all the benefits of using the SQLSRV driver as mentioned in this article.

                  我正在寻找一个全面的和最新的(例如,SQLSRV 驱动程序是否仍然只适用于 Windows?)答案,程序员可以将其称为资源.

                  I'm looking for a comprehensive and up-to-date (eg. is it still the case that SQLSRV driver is only available for Windows?) answer that programmers can refer to as a resource.

                  推荐答案

                  PDO 允许您编写合理的 DB 中立的代码.

                  PDO allows you to write you code to be reasonably DB-neutral.

                  如果你想要真正的数据库中立,你会想要使用一个完整的数据库抽象层,比如 NotORM-- 使用普通 PDO,您仍然需要注意 SQL 语法差异,但至少您的基本 PHP 代码将与 DB 无关.

                  If you want truly DB-neutral, you'd want to use a full DB abstraction layer like NotORM -- with plain PDO, you'd still need to be careful about SQL syntax difference, but at least your basic PHP code would be DB-neutral.

                  DB 中立现在似乎并不重要——如果你使用 SQL Server,那么你可能被告知这是必需的,没有别的——但是你无法预测事情会如何改变未来,所以如果选择是在 DB 中立驱动程序和 DB 特定驱动程序之间,并且您没有任何其他理由偏爱,那么选择中性驱动程序......它会让生活变得很多如果您的公司被接管并且新老板想使用 Oracle 作为数据库,则更容易!

                  Being DB-neutral may not seem important now -- if you're using SQL Server, then you've probably been told that's what is required and nothing else -- but you can't predict how things will change in the future, so if the choice is between a DB-neutral driver and a DB-specific driver, and you don't have any other reason for a preference, then go with the neutral one.... it'll make life a lot easier if your company gets taken over and the new boss wants to use Oracle as the DB!

                  此外,因为它是 DB 中立的,所以 PDO 在 PHP 社区中更标准且更广为人知.与使用 MSSQL 驱动程序相比,您将从在线站点(如本站点)获得更多有关 PDO 的帮助.

                  Also, because it's DB neutral, PDO is more standard and more well-known in the PHP community. You'll get a lot more help with PDO from sites online (like this one) than with the MSSQL driver.

                  这篇关于SQLSRV 驱动程序与用于 PHP 和 MS SQL Server 的 PDO 驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:什么是 PDO 可滚动游标? 下一篇:将 PHP while 循环转换为使用 PDO

                  相关文章

                  最新文章

                2. <small id='dXYn7'></small><noframes id='dXYn7'>

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

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