{"id":59413,"date":"2024-10-12T21:51:14","date_gmt":"2024-10-12T13:51:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/59413\/"},"modified":"2024-10-12T21:51:14","modified_gmt":"2024-10-12T13:51:14","slug":"asp%e5%af%a6%e7%8f%be%e6%95%b8%e6%93%9a%e5%ba%ab%e5%80%bc%e7%9b%b8%e5%8a%a0%e7%9a%84%e6%96%b9%e6%b3%95-asp%e6%95%b8%e6%93%9a%e5%ba%ab%e5%80%bc%e7%9b%b8%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/59413\/","title":{"rendered":"ASP\u5be6\u73fe\u6578\u64da\u5eab\u503c\u76f8\u52a0\u7684\u65b9\u6cd5 (asp\u6578\u64da\u5eab\u503c\u76f8\u52a0)"},"content":{"rendered":"<h1 id=\"asp%e5%af%a6%e7%8f%be%e6%95%b8%e6%93%9a%e5%ba%ab%e5%80%bc%e7%9b%b8%e5%8a%a0%e7%9a%84%e6%96%b9%e6%b3%95-asp%e6%95%b8%e6%93%9a%e5%ba%ab%e5%80%bc%e7%9b%b8%e5%8a%a0-rnWGKKXWGH\">ASP\u5be6\u73fe\u6578\u64da\u5eab\u503c\u76f8\u52a0\u7684\u65b9\u6cd5 (asp\u6578\u64da\u5eab\u503c\u76f8\u52a0)<\/h1>\n<p>\u5728\u7db2\u9801\u958b\u767c\u4e2d\uff0cASP\uff08Active Server Pages\uff09\u662f\u4e00\u7a2e\u5e38\u7528\u7684\u4f3a\u670d\u5668\u7aef\u8173\u672c\u8a9e\u8a00\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u6578\u64da\u5eab\u64cd\u4f5c\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u4f7f\u7528ASP\u4f86\u5be6\u73fe\u6578\u64da\u5eab\u4e2d\u503c\u7684\u76f8\u52a0\uff0c\u4e26\u63d0\u4f9b\u76f8\u95dc\u7684\u7bc4\u4f8b\u4ee3\u78bc\uff0c\u5e6b\u52a9\u958b\u767c\u8005\u66f4\u597d\u5730\u7406\u89e3\u9019\u4e00\u904e\u7a0b\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e8%a8%ad%e7%bd%ae-rnWGKKXWGH\">\u6578\u64da\u5eab\u8a2d\u7f6e<\/h2>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u5df2\u7d93\u8a2d\u7f6e\u597d\u6578\u64da\u5eab\u3002\u9019\u88e1\u4ee5Microsoft Access\u70ba\u4f8b\uff0c\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u540d\u70ba\u201cSales\u201d\u7684\u8868\u683c\uff0c\u8a72\u8868\u683c\u5305\u542b\u4ee5\u4e0b\u5b57\u6bb5\uff1a<\/p>\n<ul>\n<li><strong>id<\/strong> &#8211; \u552f\u4e00\u6a19\u8b58\u7b26<\/li>\n<li><strong>amount<\/strong> &#8211; \u92b7\u552e\u91d1\u984d<\/li>\n<\/ul>\n<p>\u8868\u683c\u7684\u6578\u64da\u53ef\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>\n| id | amount |\n|----|--------|\n| 1  | 100    |\n| 2  | 200    |\n| 3  | 150    |\n<\/pre>\n<h2 id=\"%e4%bd%bf%e7%94%a8asp%e9%80%b2%e8%a1%8c%e6%95%b8%e6%93%9a%e5%ba%ab%e6%9f%a5%e8%a9%a2-rnWGKKXWGH\">\u4f7f\u7528ASP\u9032\u884c\u6578\u64da\u5eab\u67e5\u8a62<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u5c07\u4f7f\u7528ASP\u4f86\u67e5\u8a62\u201cSales\u201d\u8868\u683c\u4e2d\u7684\u6240\u6709\u91d1\u984d\u4e26\u9032\u884c\u76f8\u52a0\u3002\u4ee5\u4e0b\u662f\u5be6\u73fe\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e9%80%a3%e6%8e%a5%e6%95%b8%e6%93%9a%e5%ba%ab-rnWGKKXWGH\">1. \u9023\u63a5\u6578\u64da\u5eab<\/h3>\n<p>\u9996\u5148\uff0c\u6211\u5011\u9700\u8981\u5efa\u7acb\u8207\u6578\u64da\u5eab\u7684\u9023\u63a5\u3002\u4ee5\u4e0b\u662f\u9023\u63a5Access\u6578\u64da\u5eab\u7684\u4ee3\u78bc\uff1a<\/p>\n<pre><code>\n\n<\/code><\/pre>\n<h3 id=\"2-%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a%e4%b8%a6%e8%a8%88%e7%ae%97%e7%b8%bd%e5%92%8c-rnWGKKXWGH\">2. \u67e5\u8a62\u6578\u64da\u4e26\u8a08\u7b97\u7e3d\u548c<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u5c07\u57f7\u884cSQL\u67e5\u8a62\u4ee5\u7372\u53d6\u6240\u6709\u91d1\u984d\u7684\u7e3d\u548c\uff1a<\/p>\n<pre><code>\n\n<\/code><\/pre>\n<h2 id=\"%e4%bb%a3%e7%a2%bc%e8%a7%a3%e9%87%8b-rnWGKKXWGH\">\u4ee3\u78bc\u89e3\u91cb<\/h2>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u78bc\u4e2d\uff0c\u6211\u5011\u9996\u5148\u5275\u5efa\u4e86\u4e00\u500bADODB.Connection\u5c0d\u8c61\u4f86\u9023\u63a5\u6578\u64da\u5eab\u3002\u7136\u5f8c\uff0c\u6211\u5011\u4f7f\u7528SQL\u8a9e\u53e5\u201cSELECT SUM(amount) AS TotalAmount FROM Sales\u201d\u4f86\u8a08\u7b97\u201camount\u201d\u5b57\u6bb5\u7684\u7e3d\u548c\u3002\u6700\u5f8c\uff0c\u6211\u5011\u6aa2\u67e5\u7d50\u679c\u96c6\u662f\u5426\u70ba\u7a7a\uff0c\u4e26\u5c07\u7e3d\u91d1\u984d\u8f38\u51fa\u5230\u7db2\u9801\u4e0a\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-rnWGKKXWGH\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5728\u5be6\u969b\u61c9\u7528\u4e2d\uff0c\u958b\u767c\u8005\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u8def\u5f91\u6b63\u78ba\uff0c\u4e26\u4e14\u6709\u9069\u7576\u7684\u8a2a\u554f\u6b0a\u9650\u3002<\/li>\n<li>\u5728\u8655\u7406\u6578\u64da\u5eab\u64cd\u4f5c\u6642\uff0c\u61c9\u8003\u616e\u5230\u932f\u8aa4\u8655\u7406\uff0c\u4ee5\u907f\u514d\u56e0\u70ba\u6578\u64da\u5eab\u9023\u63a5\u5931\u6557\u800c\u5c0e\u81f4\u7684\u61c9\u7528\u5d29\u6f70\u3002<\/li>\n<li>\u5c0d\u65bc\u5927\u578b\u6578\u64da\u96c6\uff0c\u5efa\u8b70\u4f7f\u7528\u5206\u9801\u6280\u8853\u4f86\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-rnWGKKXWGH\">\u7e3d\u7d50<\/h2>\n<p>\u672c\u6587\u4ecb\u7d39\u4e86\u5982\u4f55\u4f7f\u7528ASP\u5be6\u73fe\u6578\u64da\u5eab\u4e2d\u503c\u7684\u76f8\u52a0\uff0c\u4e26\u63d0\u4f9b\u4e86\u5177\u9ad4\u7684\u4ee3\u78bc\u7bc4\u4f8b\u3002\u9019\u4e00\u6280\u8853\u5728\u8a31\u591a\u61c9\u7528\u4e2d\u90fd\u975e\u5e38\u5be6\u7528\uff0c\u7279\u5225\u662f\u5728\u9700\u8981\u9032\u884c\u6578\u64da\u7d71\u8a08\u548c\u5831\u544a\u7684\u60c5\u6cc1\u4e0b\u3002\u82e5\u60a8\u5c0d\u65bc\u4f3a\u670d\u5668\u548c\u6578\u64da\u5eab\u7684\u7ba1\u7406\u6709\u9032\u4e00\u6b65\u7684\u9700\u6c42\uff0c\u5efa\u8b70\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u4ee5\u7372\u5f97\u66f4\u9ad8\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5728ASP\u4e2d\u5be6\u73fe\u6578\u64da\u5eab\u503c\u76f8\u52a0\u7684\u65b9\u6cd5\uff0c\u7c21\u5316\u6578\u64da\u8655\u7406\uff0c\u63d0\u5347\u61c9\u7528\u6548\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-59413","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=59413"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59413\/revisions"}],"predecessor-version":[{"id":59414,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59413\/revisions\/59414"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=59413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=59413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=59413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}