{"id":48884,"date":"2024-12-02T12:28:59","date_gmt":"2024-12-02T04:28:59","guid":{"rendered":"https:\/\/fwq.ai\/blog\/48884\/"},"modified":"2024-12-02T12:28:59","modified_gmt":"2024-12-02T04:28:59","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-php-%e8%bf%9e%e6%8e%a5%e5%88%b0-sql-server-%e6%95%b0%e6%8d%ae%e5%ba%93%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/48884\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f<\/h1>\n<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5206\u4eab\u300a\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u300b\uff0c\u8986\u76d6\u4e86\u6587\u7ae0\u7684\u5e38\u89c1\u57fa\u7840\u77e5\u8bc6\uff0c\u5176\u5b9e\u4e00\u4e2a\u8bed\u8a00\u7684\u5168\u90e8\u77e5\u8bc6\u70b9\u4e00\u7bc7\u6587\u7ae0\u662f\u4e0d\u53ef\u80fd\u8bf4\u5b8c\u7684\uff0c\u4f46\u5e0c\u671b\u901a\u8fc7\u8fd9\u4e9b\u95ee\u9898\uff0c\u8ba9\u8bfb\u8005\u5bf9\u81ea\u5df1\u7684\u638c\u63e1\u7a0b\u5ea6\u6709\u4e00\u5b9a\u7684\u8ba4\u8bc6(B \u6570)\uff0c\u4ece\u800c\u5f25\u8865\u81ea\u5df1\u7684\u4e0d\u8db3\uff0c\u66f4\u597d\u7684\u638c\u63e1\u5b83\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241102\/17305394706725efcedbc54.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u8c01\u4f1a\u7528PHP\u8fde\u63a5SQL Server\uff1f<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>\u6709\u6ca1\u6709\u4eba\u77e5\u9053\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f<\/p>\n<p><strong>\u7b54\u6848\uff1a<\/strong><\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e9b\u8d44\u6e90\u53ef\u4ee5\u5e2e\u52a9\u60a8\uff1a<\/p>\n<ul>\n<li>[\u5728 Windows \u4e0b\u7684 PHP \u8fde\u63a5\u5230 Microsoft SQL Server](http:\/\/www.cnblogs.com\/my-php\/archive\/2011\/08\/23\/2151085.html)<\/li>\n<li>[\u4f7f\u7528 PHP 7 \u8fde\u63a5 SQL Server](https:\/\/docs.microsoft.com\/zh-cn\/sql\/connect\/php\/using-php-to-connect-to-sql)<\/li>\n<li>[PHP \u8fde\u63a5 SQL Server \u6559\u7a0b](https:\/\/www.w3schools.com\/php\/php_mysql_connect.asp)<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u8d44\u6e90\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6b65\u9aa4\uff0c\u8bf4\u660e\u4e86\u5982\u4f55\u5efa\u7acb PHP \u548c SQL Server \u4e4b\u95f4\u7684\u8fde\u63a5\u3002\u5b83\u4eec\u8fd8\u63d0\u4f9b\u4e86\u793a\u4f8b\u4ee3\u7801\u6765\u5e2e\u52a9\u60a8\u5feb\u901f\u5165\u95e8\u3002<\/p>\n<p>\u672c\u7bc7\u5173\u4e8e\u300a\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f \u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5206\u4eab\u300a\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u300b\uff0c\u8986\u76d6\u4e86\u6587\u7ae0\u7684\u5e38\u89c1\u57fa\u7840\u77e5\u8bc6\uff0c\u5176\u5b9e\u4e00\u4e2a\u8bed\u8a00\u7684\u5168\u90e8\u77e5\u8bc6\u70b9\u4e00\u7bc7\u6587\u7ae0\u662f\u4e0d\u53ef\u80fd\u8bf4\u5b8c\u7684\uff0c\u4f46\u5e0c\u671b\u901a\u8fc7\u8fd9\u4e9b\u95ee\u9898\uff0c\u8ba9\u8bfb\u8005\u5bf9\u81ea\u5df1\u7684\u638c\u63e1\u7a0b\u5ea6\u6709\u4e00\u5b9a\u7684\u8ba4\u8bc6(B \u6570)\uff0c\u4ece\u800c\u5f25\u8865\u81ea\u5df1\u7684\u4e0d\u8db3\uff0c\u66f4\u597d\u7684\u638c\u63e1\u5b83\u3002 \u8c01\u4f1a\u7528PHP\u8fde\u63a5SQL Server\uff1f \u95ee\u9898\uff1a \u6709\u6ca1\u6709\u4eba\u77e5\u9053\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f \u7b54\u6848\uff1a \u8fd9\u91cc\u6709\u4e00\u4e9b\u8d44\u6e90\u53ef\u4ee5\u5e2e\u52a9\u60a8\uff1a [\u5728 Windows \u4e0b\u7684 PHP \u8fde\u63a5\u5230 Microsoft SQL Server](http:\/\/www.cnblogs.com\/my-php\/archive\/2011\/08\/23\/2151085.html) [\u4f7f\u7528 PHP 7 \u8fde\u63a5 SQL Server](https:\/\/docs.microsoft.com\/zh-cn\/sql\/connect\/php\/using-php-to-connect-to-sql) [PHP \u8fde\u63a5 SQL Server \u6559\u7a0b](https:\/\/www.w3schools.com\/php\/php_mysql_connect.asp) \u8fd9\u4e9b\u8d44\u6e90\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6b65\u9aa4\uff0c\u8bf4\u660e\u4e86\u5982\u4f55\u5efa\u7acb PHP \u548c SQL Server \u4e4b\u95f4\u7684\u8fde\u63a5\u3002\u5b83\u4eec\u8fd8\u63d0\u4f9b\u4e86\u793a\u4f8b\u4ee3\u7801\u6765\u5e2e\u52a9\u60a8\u5feb\u901f\u5165\u95e8\u3002 \u672c\u7bc7\u5173\u4e8e\u300a\u5982\u4f55\u4f7f\u7528 PHP \u8fde\u63a5\u5230 SQL Server \u6570\u636e\u5e93\uff1f\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-48884","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=48884"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48884\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=48884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=48884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=48884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}