{"id":730480,"date":"2024-12-03T10:21:52","date_gmt":"2024-12-03T02:21:52","guid":{"rendered":"https:\/\/www.youtupa.com\/gonglue\/730480.html"},"modified":"2024-12-04T00:10:06","modified_gmt":"2024-12-03T16:10:06","slug":"%e5%9c%a8%e7%ba%bf%e6%97%85%e6%b8%b8%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f%e5%85%a8%e5%9b%bd%e6%97%85%e6%b8%b8%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f%e5%b9%b3%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/www.youtupa.com\/gonglue\/730480.html","title":{"rendered":"\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf(\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0)"},"content":{"rendered":"
\"\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf(\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0)\"<\/figure>\n

\u5927\u5bb6\u597d\uff0c\u5173\u4e8e\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5f88\u591a\u670b\u53cb\u90fd\u8fd8\u4e0d\u592a\u660e\u767d\uff0c\u4eca\u5929\u5c0f\u7f16\u5c31\u6765\u4e3a\u5927\u5bb6\u5206\u4eab\u5173\u4e8e\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0\u7684\u77e5\u8bc6\uff0c\u5e0c\u671b\u5bf9\u5404\u4f4d\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n

\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0<\/h3>\n

\u5168\u56fd\u65c5\u6e38\u76d1\u7ba1\u670d\u52a1\u5e73\u53f0\u7f51\u5740\u4e3a\uff0c\u662f\u4e00\u4e2a\u96c6\u6210\u5927\u6570\u636e\u76d1\u7ba1\u4e0e\u5f00\u653e\u5f0f\u670d\u52a1\u7684\u653f\u52a1\u5e73\u53f0\u3002\u8be5\u5e73\u53f0\u7684\u7279\u70b9\u5305\u62ec\u6295\u8bc9\u5ba1\u6279\u6d41\u7a0b\u987a\u7545\u9ad8\u6548\u3001\u4e8b\u4e2d\u4e8b\u540e\u76d1\u7ba1\u667a\u80fd\u5316\u4ee5\u53ca\u4fe1\u606f\u4e92\u8054\u4e92\u901a\u3002\u901a\u8fc7\u5bf9\u884c\u653f\u5ba1\u6279\u548c\u4e8b\u4e2d\u4e8b\u540e\u76d1\u7ba1\u4ea7\u751f\u7684\u5927\u6570\u636e\u8fdb\u884c\u6574\u5408\uff0c\u5b9e\u73b0\u4e86\u6570\u636e\u7684\u4e92\u901a\u4e92\u8054\u3001\u96c6\u6210\u5171\u4eab\uff0c\u4ece\u800c\u4fc3\u8fdb\u5e02\u573a\u76d1\u7ba1\u7684\u5e38\u6001\u5206\u6790\u548c\u79d1\u5b66\u51b3\u7b56\uff0c\u5b9e\u65f6\u628a\u63e1\u65c5\u6e38\u7ecf\u6d4e\u7684\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n

[1]\u5728\u5168\u56fd\u65c5\u6e38\u76d1\u7ba1\u670d\u52a1\u5e73\u53f0\u4e0a\uff0c\u65c5\u884c\u793e\u5728\u7ebf\u5ba1\u6279\u7ba1\u7406\u7cfb\u7edf\u5b9e\u73b0\u4e86\u5907\u6848\u3001\u5ba1\u6279\u7684\u4e00\u952e\u5f0f\u53d7\u7406\u3001\u4fe1\u606f\u5171\u4eab\u548c\u5168\u7a0b\u53ef\u89c6\u5316\u3002\u6295\u8bc9\u6848\u4ef6\u7ba1\u7406\u7cfb\u7edf\u5219\u5f62\u6210\u4e86\u6e38\u5ba2\u6295\u8bc9\u4e3e\u62a5\u7684\u53ca\u65f6\u53d7\u7406\u3001\u5feb\u901f\u5904\u7406\u3001\u9650\u65f6\u53cd\u9988\u548c\u51c6\u65f6\u8ddf\u8e2a\u7684\u95ed\u73af\uff0c\u5b9e\u73b0\u4e86\u201c\u8ba9\u7fa4\u4f17\u5c11\u8dd1\u817f\uff0c\u8ba9\u4fe1\u606f\u591a\u8dd1\u8def\u201d\u7684\u76ee\u6807\u3002\u7535\u5b50\u5bfc\u6e38\u8bc1\u548c\u5bfc\u6e38APP\u7684\u4f7f\u7528\uff0c\u65b9\u4fbf\u6e38\u5ba2\u4e86\u89e3\u548c\u8bc4\u4ef7\u5bfc\u6e38\u7684\u6267\u4e1a\u60c5\u51b5\uff0c\u540c\u65f6\u4f7f\u6267\u6cd5\u90e8\u95e8\u80fd\u591f\u5b9e\u65f6\u76d1\u63a7\u65c5\u6e38\u56e2\u7684\u6d3b\u52a8\u8f68\u8ff9\uff0c\u9884\u8b66\u5bfc\u6e38\u64c5\u81ea\u53d8\u66f4\u884c\u7a0b\u7684\u884c\u4e3a\u3002\u7535\u5b50\u5408\u540c\u63d0\u4f9b\u4e86\u7535\u5b50\u5546\u52a1\u8ba4\u8bc1\u4e2d\u5fc3\u7684\u8ba4\u8bc1\u548c\u9a8c\u771f\u529f\u80fd\uff0c\u901a\u8fc7\u5408\u540c\u4ef7\u683c\u7684\u76d1\u6d4b\uff0c\u9884\u9632\u4e86\u201c\u4e0d\u5408\u7406\u4f4e\u4ef7\u6e38\u201d\u7684\u73b0\u8c61\u3002<\/p>\n

\u81ea2016\u5e746\u6708\u542f\u52a8\u5efa\u8bbe\u4ee5\u6765\uff0c\u5168\u56fd\u65c5\u6e38\u76d1\u7ba1\u670d\u52a1\u5e73\u53f0\u5df2\u7ecf\u5efa\u7acb\u4e86\u65c5\u884c\u793e\u8d44\u8d28\u3001\u5bfc\u6e38\u7ba1\u7406\u3001\u56e2\u961f\u7ba1\u7406\u3001\u7535\u5b50\u5408\u540c\u3001\u6295\u8bc9\u4e3e\u62a5\u3001\u6848\u4ef6\u7ba1\u7406\u548c\u6743\u9650\u7ba1\u7406\u7b49\u4e03\u5927\u529f\u80fd\u6a21\u5757\uff0c\u5e76\u5c06\u7ee7\u7eed\u5efa\u8bbe\u7edf\u8ba1\u6a21\u5757\u3001\u4fe1\u7528\u7ba1\u7406\u6a21\u5757\u7b49\uff0c\u4ee5\u8fdb\u4e00\u6b65\u5b8c\u5584\u670d\u52a1\u3002<\/p>\n

TourEx\u65c5\u6e38\u7f51\u7ad9\u7ba1\u7406\u7cfb\u7edf\u7684\u529f\u80fd\u7279\u70b9<\/h3>\n

\u7b80\u5355\u6613\u7528\u7684\u6a21\u677f\u5f15\u64ce\uff0c\u7f51\u7ad9\u754c\u9762\u60f3\u6362\u5c31\u6362<\/p>\n

TourEx\u7684\u6a21\u677f\u5f15\u64ce\u7b80\u5355\u3001\u6613\u7528\uff0c\u91c7\u7528\u4e86XML\u6807\u8bb0\u98ce\u683c\uff0c\u53ea\u8981\u61c2HTML\u5c31\u53ef\u4ee5\u4fee\u6539\u5236\u4f5c\u6a21\u677f\u3002\u5f88\u591a\u7684\u7528\u6237\u90fd\u4e3a\u6bcf\u6b21\u7f51\u7ad9\u6539\u7248\u8d39\u5c3d\u82e6\u5fc3\uff0c\u56e0\u4e3a\u6309\u7167\u8001\u5f0f\u7684\u7f51\u7ad9\u5236\u4f5c\u6d41\u7a0b\uff0c\u6539\u7248\u9700\u8981\u4fee\u6539\u7684\u4e0d\u5355\u5355\u662f\u4e00\u4e2a\u754c\u9762\uff0c\u8fd8\u8981\u6d89\u53ca\u5230\u7a0b\u5e8f\u4fee\u6539\u3002\u6700\u540e\u6210\u4e86\u4e00\u6b21\u6539\u7248\uff0c\u51e0\u4e4e\u7b49\u4e8e\u7f51\u7ad9\u91cd\u6784\u3002TourEx\u5c31\u89e3\u51b3\u4e86\u8fd9\u4e00\u7cfb\u5217\u7684\u70e6\u607c\uff0c\u53ea\u9700\u8981\u4e86\u89e3\u4e00\u4e9bTourEx\u7684\u6a21\u677f\u6807\u8bb0\uff0c\u53ea\u8981\u61c2HTML\uff0c\u5c31\u80fd\u968f\u610f\u5bf9\u6a21\u677f\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff0c\u800c\u4e14\u6bcf\u6b21\u5347\u7ea7\u53ea\u9700\u8981\u66f4\u65b0\u6a21\u677f\u6587\u4ef6\u5373\u53ef\uff0c\u505a\u5230\u4e86\u7a0b\u5e8f\u548c\u9875\u9762\u5f88\u5927\u7a0b\u5ea6\u4e0a\u7684\u5206\u79bb\u3002<\/p>\n

\u7075\u6d3b\u7684\u5546\u4e1a\u8fd0\u8425\u6a21\u5f0f<\/p>\n

TourEx\u63d0\u4f9b\u4e86\u5b8c\u5584\u7684\u5546\u4e1a\u8fd0\u8425\u6a21\u5f0f\uff0c\u4f1a\u5458\u901a\u8fc7\u5728\u7ebf\u9884\u8ba2\u9152\u5e97\u3001\u666f\u70b9\u3001\u65c5\u6e38\u5ea6\u5047\u7ebf\u8def\u6210\u529f\u540e\uff0c\u7528\u6237\u53d1\u8868\u70b9\u8bc4\u6216\u4e0a\u4f20\u56fe\u7247\u53ef\u83b7\u5f97\u70b9\u8bc4\u5956\u91d1\uff0c\u540c\u65f6\u8fbe\u5230\u4e00\u5b9a\u6570\u91cf\u7684\u70b9\u8bc4\u5956\u91d1\uff0c\u4f1a\u5458\u53ef\u7533\u8bf7\u81ea\u52a9\u63d0\u73b0\u3002<\/p>\n

\u5b8c\u5584\u7684\u5728\u7ebf\u9884\u8ba2\u529f\u80fd<\/p>\n

\u7cfb\u7edf\u652f\u6301\u9152\u5e97\u3001\u666f\u70b9\u3001\u65c5\u6e38\u5ea6\u5047\u7ebf\u8def\u5728\u7ebf\u9884\u8ba2\uff0c\u540c\u65f6\u652f\u6301\u4f1a\u5458\u9884\u8ba2\u548c\u975e\u4f1a\u5458\u9884\u8ba2\u3002\u9884\u8ba2\u6210\u529f\u540e\uff0c\u7cfb\u7edf\u81ea\u52a8\u751f\u6210\u8ba2\u5355\u5e76\u53d1\u9001\u201c\u624b\u673a\u77ed\u4fe1\u201d\u548c\u201cE-Mail\u201d\u901a\u77e5\u4f1a\u5458\u8ba2\u5355\u72b6\u6001\u3002\u4ed8\u6b3e\u65b9\u5f0f\u62e5\u6709\u5728\u7ebf\u652f\u4ed8\u548c\u524d\u53f0\u73b0\u4ed8\u4e8c\u79cd\u6a21\u5f0f\uff0c\u53ef\u540e\u53f0\u81ea\u7531\u8bbe\u7f6e\u3002<\/p>\n

\u5f3a\u5927\u7684\u70b9\u8bc4\u6a21\u5757<\/p>\n

\u7cfb\u7edf\u62e5\u6709\u5f3a\u5927\u7684\u70b9\u8bc4\u6a21\u5757\uff0c\u4f1a\u5458\u6210\u529f\u9884\u8ba2\u9152\u5e97\u3001\u666f\u70b9\u3001\u65c5\u6e38\u5ea6\u5047\u540e\u5bf9\u5176\u8fdb\u884c\u70b9\u8bc4\uff0c\u53ef\u83b7\u5f97\u70b9\u8bc4\u5956\u91d1\u3002\u70b9\u8bc4\u683c\u5f0f\u6709\uff1a\u70b9\u8bc4\u5370\u8c61\u3001\u70b9\u8bc4\u661f\u7ea7\u3001\u56fe\u7247\u4e0a\u4f20\u3001\u70b9\u8bc4\u5185\u5bb9\u63cf\u8ff0\u3001\u70b9\u8bc4\u5956\u91d1\u3002<\/p>\n

\u5b8c\u5584\u7684\u4f1a\u5458\u7cfb\u7edf<\/p>\n

\u5728\u7ebf\u9884\u8ba2\uff1a\u4f1a\u5458\u9884\u8ba2\u9152\u5e97\u3001\u666f\u70b9\u3001\u65c5\u6e38\u5ea6\u5047\u5373\u65f6\u751f\u6210\u8ba2\u5355\uff1b\u5728\u7ebf\u652f\u4ed8\u4e0e\u5145\u503c\u7cfb\u7edf\uff1a\u652f\u6301\u201c\u652f\u4ed8\u5b9d\u201d\u3001\u201c\u7f51\u94f6\u201d\u7b49\u591a\u79cd\u5728\u7ebf\u652f\u4ed8\u65b9\u5f0f\uff0c\u64cd\u4f5c\u5168\u81ea\u52a8\u65e0\u9700\u4eba\u5de5\u5e72\u9884\uff1b\u7ad9\u5185\u4fe1\u606f\u529f\u80fd\uff1a\u4f1a\u5458\u53ef\u62e5\u6709\u81ea\u5df1\u7684\u201c\u6536\u4ef6\u7bb1\u201d\u3001\u201c\u53d1\u4ef6\u7bb1\u201d\uff0c\u5e76\u4e14\u53ef\u5411\u5404\u4f1a\u5458\u8fdb\u884c\u4fe1\u606f\u53d1\u9001\u4e0e\u76f8\u4e92\u4ea4\u6d41\uff1b\u6536\u85cf\u5939\u529f\u80fd\uff1a\u4f1a\u5458\u53ef\u5bf9\u7f51\u7ad9\u7684\u6240\u6709\u9152\u5e97\u3001\u666f\u70b9\u3001\u65c5\u6e38\u5ea6\u5047\u4fe1\u606f\u8fdb\u884c\u6536\u85cf\u3002<\/p>\n

\u4ea7\u54c1\u591a\u6837\u6027\u7684\u4ef7\u683c\u8bbe\u7f6e<\/p>\n

\u65c5\u6e38\u4ea7\u54c1\u4ef7\u683c\u591a\u6837\u5316\uff0c\u56e0\u4e0d\u540c\u5b63\u8282\u3001\u4e0d\u540c\u8282\u5047\u65e5\u90fd\u6709\u4e0d\u540c\u7684\u4ef7\u683c\u6807\u51c6\uff0c\u4e3a\u6b64TourEx\u4e13\u95e8\u7814\u53d1\u4e86\u591a\u79cd\u4ef7\u683c\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u5982\u65c5\u6e38\u5ea6\u5047\uff1a\u6309\u661f\u671f\u6307\u5b9a\u4ea7\u54c1\u4ef7\u683c\u3001\u6309\u8282\u5047\u65e5\u6307\u5b9a\u4ef7\u683c\u3001\u6309\u7279\u6b8a\u65e5\u671f\u6307\u5b9a\u4ef7\u683c\u3001\u6309\u9884\u8ba2\u6570\u91cf\u6307\u5b9a\u4ef7\u683c\u3002\u62e5\u6709\u5f3a\u5927\u7684\u4ef7\u683c\u8bbe\u7f6e\u4f53\u7cfb\u53ef\u8ba9\u60a8\u7684\u7f51\u7ad9\u771f\u6b63\u5b9e\u73b0\u7535\u5b50\u5546\u52a1\uff0c\u4e0d\u4f1a\u56e0\u5ba2\u6237\u4e0b\u4e86\u8ba2\u5355\u800c\u56e0\u4ef7\u683c\u4e0d\u540c\u64cd\u6210\u8ba2\u5355\u6d41\u5931\u3002\u540c\u65f6\u9152\u5e97\u3001\u666f\u70b9\u4e5f\u6709\u4e0d\u540c\u7684\u4ef7\u683c\u4f53\u7cfb\u8bbe\u7f6e\u3002<\/p>\n

\u5f3a\u5927\u7684\u56fe\u7247\u88c1\u526a\u529f\u80fd<\/p>\n

\u7cfb\u7edf\u62e5\u6709\u5f3a\u5927\u7684\u56fe\u7247\u88c1\u526a\u6a21\u5757\uff0c\u53ef\u8bbe\u7f6e\u88c1\u526a\u56fe\u7247\u7684\u5927\u5c0f\u5c3a\u5bf8\u3001\u6570\u91cf\uff0c\u88c1\u526a\u751f\u6210\u4e0d\u540c\u56fe\u7247\u5c3a\u5bf8\u3002\u56fe\u7247\u7684\u88c1\u526a\u529f\u80fd\uff0c\u8ba9\u7f51\u7ad9\u8f7d\u5165\u4e0d\u540c\u89c4\u683c\u5c3a\u5bf8\u7684\u56fe\u7247\u5927\u5927\u8282\u7ea6\u4e86\u4e3b\u673a\u7684\u8d44\u6e90\uff0c\u5f88\u5927\u7a0b\u5ea6\u4e0a\u63d0\u9ad8\u4e86\u7528\u6237\u8bbf\u95ee\u7684\u6548\u7387\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u7f51\u7ad9\u90fd\u514d\u53bb\u4e86\u56e0\u4e3a\u5927\u91cf\u56fe\u7247\u8bbf\u95ee\u901f\u7387\u4e0b\u964d\u7684\u540e\u987e\u4e4b\u5fe7\u3002<\/p>\n

\u9762\u5411\u641c\u7d22\u5f15\u64ce\u4f2a\u5168\u9759\u6001\u6280\u672f<\/p>\n

\u501f\u52a9\u5168\u4f2a\u9759\u6001\u6280\u672f\uff0c\u60a8\u7684\u7f51\u7ad9\u51fa\u73b0\u5728\u641c\u7d22\u5f15\u64ce\u4e2d\u7684\u51e0\u7387\u5927\u5927\u589e\u9ad8\uff1b\u5168\u4f2a\u9759\u6001\u5904\u7406\u6280\u672f\u662f\u4f5c\u4e3a\u6784\u5efa\u5927\u578b\u7ad9\u70b9\u7684\u5fc5\u8981\u6761\u4ef6\u3002\u9664\u6b64\u4ee5\u5916\uff0cTourEx\u8fd8\u4e13\u95e8\u5728\u7f51\u7ad9\u7ed3\u6784\u4ee5\u53ca\u9875\u9762URL\u5730\u5740\u94fe\u63a5\u7b49\u65b9\u9762\u5bf9\u641c\u7d22\u5f15\u64ce\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u4e13\u4e3a\u641c\u7d22\u5f15\u64ce\u4f18\u5316\uff08SEO\uff09\u5f00\u53d1\u4e86\u529f\u80fd\u6a21\u5757\u3002<\/p>\n

\u6d41\u7545\u4e13\u4e1a\u754c\u9762\u8bbe\u8ba1\uff0c\u826f\u597d\u7684\u7528\u6237\u4f53\u9a8c<\/p>\n

TourEx\u7684\u754c\u9762\u8bbe\u8ba1\u9075\u5faa\u56fd\u9645\u6700\u65b0W3C\u7f51\u9875\u8bbe\u8ba1\u6807\u51c6\uff0c\u5728\u5f00\u53d1\u65f6\u671f\uff0c\u6211\u4eec\u7ecf\u8fc7IE6\u3001IE7\u3001\u706b\u72d0\u3001Opera\u7b49\u4e3b\u6d41\u6d4f\u89c8\u5668\u4e0a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u90fd\u80fd\u591f\u4fdd\u8bc1\u60a8\u7f51\u7ad9\u6d4f\u89c8\u7684\u6d41\u7545\u3001\u5b8c\u6574\uff0cTourEx\u9875\u9762\u8bbe\u8ba1\u9075\u5faa\u6807\u51c6\u60c5\u51b5\u4e0b\u5c3d\u91cf\u7684\u51cf\u5c11\u4e86\u5404\u4e2a\u6d4f\u89c8\u5668\u4e2d\u5b58\u5728\u7684\u5dee\u5f02\uff0c\u7cfb\u7edf\u4e0d\u4f1a\u56e0\u4e3a\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u53d7\u5230\u9650\u5236\u3002\u6211\u4eec\u4f18\u79c0\u7684\u9875\u9762\u8bbe\u8ba1\u5e08\u80fd\u591f\u8ba9\u7f51\u7ad9\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u53ca\u7f51\u7ad9\u4eb2\u548c\u529b\u3002<\/p>\n

\u4f17\u591a\u4e13\u4e1a\u800c\u5b9e\u7528\u7684\u529f\u80fd\u6a21\u5757<\/p>\n

TourEx\u63d0\u4f9b\u4e86\u4f17\u591a\u7684\u5b9e\u7528\u529f\u80fd\uff0c\u5982\u7f51\u7ad9\u57fa\u672c\u8bbe\u7f6e\u3001\u5173\u4e8e\u6211\u4eec\u3001\u65b0\u95fb\u3001\u7559\u8a00\u53cd\u9988\u3001\u53cb\u60c5\u94fe\u63a5\u3001\u70b9\u8bc4\u3001\u79ef\u5206\u3001\u8fd4\u5229\u3001\u5e7f\u544a\u3001\u5e2e\u52a9\u7b49\uff1b\u7f51\u7ad9\u53ef\u80fd\u9700\u8981\u7684\u5927\u90e8\u5206\u529f\u80fd\u90fd\u5df2\u7ecf\u96c6\u6210\u5728\u7cfb\u7edf\u4e2d\uff0c\u540c\u65f6\u901a\u8fc7\u5927\u91cf\u7684\u4f18\u5316\u8c03\u6574\uff0c\u6211\u4eec\u80fd\u591f\u4fdd\u8bc1\u6240\u63d0\u4f9b\u7684\u529f\u80fd\u7684\u6548\u7387\u4e0e\u5b89\u5168\u6027\u3002<\/p>\n

\u5f3a\u5927\u9ad8\u6548\u7684\u540e\u53f0\u7ba1\u7406<\/p>\n

\u9ad8\u5ea6\u96c6\u6210\u7684\u7f51\u7ad9\u7ba1\u7406\u540e\u53f0\uff0c\u4e3a\u7ba1\u7406\u5458\u63d0\u4f9b\u5f3a\u5927\u3001\u5feb\u6377\u7684\u6574\u7ad9\u529f\u80fd\u8bbe\u7f6e\u3002\u7f51\u7ad9\u57fa\u672c\u8bbe\u7f6e\u3001\u4f1a\u5458\u7ba1\u7406\u3001\u8ba2\u5355\u7ba1\u7406\u3001\u70b9\u8bc4\u7ba1\u7406\u3001\u95ee\u7b54\u7ba1\u7406\u3001\u65b0\u95fb\u7ba1\u7406\u3001\u5e2e\u52a9\u7ba1\u7406\u3001\u7ad9\u5185\u77ed\u4fe1\u7b49\u4f17\u591a\u51fa\u8272\u529f\u80fd\u3002<\/p>\n

\u591a\u7ea7\u7528\u6237\u6743\u9650\u4e0e\u5185\u5bb9\u7ba1\u7406\u652f\u6301<\/p>\n

\u540e\u53f0\u603b\u7ba1\u7406\u5458\u53ef\u4ee5\u7ed9\u4e0d\u540c\u7684\u7ba1\u7406\u7528\u6237\u5206\u914d\u4e0d\u540c\u7684\u7ba1\u7406\u6743\u9650\uff0c\u53ef\u81ea\u7531\u8bbe\u7f6e\u7ba1\u7406\u7528\u6237\u7684\u7ba1\u7406\u8be6\u7ec6\u9879\u76ee\u5185\u5bb9\u3002\u540c\u65f6\u603b\u7ba1\u7406\u5458\u53ef\u8bbe\u7f6e\u6dfb\u52a0\u3001\u7f16\u8f91\u3001\u5220\u9664\u6743\u9650\u5206\u914d\uff0c\u7ba1\u7406\u7528\u6237\u4e5f\u53ef\u4ee5\u76f4\u63a5\u540e\u53f0\u589e\u52a0\/\u4fee\u6539\/\u5220\u9664\u7b49\u5185\u5bb9\u3002<\/p>\n

\u5f3a\u5927\u7684\u5e7f\u544a\u7ba1\u7406\u63d2\u4ef6<\/p>\n

\u652f\u6301\u5e7f\u544a\u7c7b\u578b\uff1a\u56fe\u7247\u5e7f\u544a\u3001FLASH\u5e7f\u544a\u3001\u6587\u5b57\u5e7f\u544a\u3001HTML\u4ee3\u7801\u5e7f\u544a\uff1b\u5e7f\u544a\u6548\u679c\uff1a\u666e\u901a\u663e\u793a\u3001\u6ee1\u5c4f\u6d6e\u52a8\u663e\u793a\u3001\u4e0a\u4e0b\u6d6e\u52a8\u663e\u793a\uff08\u5de6\/\u53f3\uff09\u3001\u5168\u5c4f\u5e55\u6e10\u9690\u6d88\u5931\u3001\u53ef\u79fb\u52a8\u5bf9\u8bdd\u6846\u3001\u5bf9\u8054\u5f0f\u5e7f\u544a\u7b49\u3002<\/p>\n

\u591a\u63a5\u53e3\u6574\u5408<\/p>\n

\u76ee\u524dTourEx\u6574\u5408\u4e86\u652f\u4ed8\u5b9d\u53ca\u7f51\u94f6\u5728\u7ebf\u652f\u4ed8\u63a5\u53e3\u3001\u8ba2\u5355\u72b6\u6001\u624b\u673a\u77ed\u4fe1\/E-Mail\u901a\u77e5\u3001\u7535\u5b50\u5730\u56fe\u7b49\u63a5\u53e3\u3002\u540e\u671f\u8fd8\u4f1a\u5bf9DZ\u8bba\u575b\u8fdb\u884c\u4f1a\u5458\u63a5\u53e3\u6574\u5408\u3002<\/p>\n

\u5168\u9762\u4f18\u5316\u7684\u7a0b\u5e8f\u6027\u80fd<\/p>\n

TourEx\u7cfb\u7edf\u62e5\u6709\u5feb\u901f\uff0c\u7a33\u5b9a\uff0c\u5b89\u5168\u7684\u6027\u80fd\u8fd0\u884c\u5bf9\u4e8e\u4fdd\u969c\u7f51\u7ad9\u8fd0\u884c\u6765\u8bf4\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u7ecf\u8fc7\u53cd\u590d\u4e0d\u95f4\u65ad\u5b8c\u5584\u4ee5\u53ca\u5b9e\u9645\u9879\u76ee\u7684\u538b\u529b\u53ca\u6027\u80fd\u6d4b\u8bd5\uff0cTourEx\u80fd\u591f\u4fdd\u969c\u7f51\u7ad9\u7684\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n

\u964d\u4f4e\u7f51\u7ad9\u5f00\u53d1\u7ef4\u62a4\u6210\u672c<\/p>\n

\u7531\u4e8e\u65c5\u6e38\u7535\u5b50\u5546\u52a1\u7cfb\u7edf\u5728\u4e2d\u56fd\u7684\u53d1\u5c55\u8fd8\u5728\u8d77\u6b65\u9636\u6bb5\uff0c\u5f88\u591a\u4f01\u4e1a\u6216\u5355\u4f4d\u5f00\u53d1\u4e00\u4e2a\u7f51\u7ad9\u9700\u8981\u52a8\u7528\u5927\u91cf\u7684\u8d22\u529b\u7269\u529b\uff0c\u4e0d\u5355\u5355\u627e\u7f51\u7ad9\u516c\u53f8\u5f00\u53d1\u65f6\u9700\u8981\u8017\u8d39\uff0c\u540e\u671f\u7ef4\u62a4\u5347\u7ea7\u4e5f\u9700\u8981\u3002TourEx\u7684\u95ee\u4e16\u6539\u53d8\u4e86\u4f20\u7edf\u7684\u7f51\u7ad9\u5efa\u8bbe\u6d41\u7a0b\uff0c\u901a\u8fc7\u5b89\u88c5TourEx\uff0c\u4efb\u4f55\u7528\u6237\u90fd\u53ef\u4ee5\u8f7b\u677e\u7684\u67b6\u8bbe\u81ea\u5df1\u9700\u8981\u7684\u7f51\u7ad9\u3002\u5728\u7ed9\u7528\u6237\u9ad8\u6548\u7b80\u5355\u5efa\u7ad9\u7684\u540c\u65f6\u8fd8\u51cf\u5c11\u4e86\u603b\u6210\u672c\u3002<\/p>\n

\u5468\u5bc6\u7684\u5b89\u5168\u7b56\u7565\u548c\u653b\u51fb\u9632\u62a4<\/p>\n

\u5bf9SQL\u6ce8\u5165\u653b\u51fb\u8fdb\u884c\u8fc7\u6ee4\u3001\u5bf9\u5bc6\u7801\u8fdb\u884c\u4e86\u4e0d\u53ef\u9006\u52a0\u5bc6\u5904\u7406\uff0c\u63d0\u4f9b\u6570\u636e\u5e93\u5907\u4efd\u529f\u80fd\u3001\u5bf9\u7ba1\u7406\u5458\u6743\u9650\u7684\u81ea\u7531\u5206\u914d\uff0c\u5728\u65b9\u65b9\u9762\u9762\u4fdd\u8bc1\u4e86\u7cfb\u7edf\u7684\u5b89\u5168\u548c\u7a33\u5b9a\u3002<\/p>\n

\u65c5\u6e38\u4fe1\u606f\u7ba1\u7406\u7cfb\u7edf \u6570\u636e\u5e93<\/h3>\n

\u524d\u9636\u6bb5\u505a\u7684ATM\u673a\u7684,\u697c\u4e3b\u8981\u4e0d\u4fee\u6539\u4e0b\u5427,\u5475\u5475!<\/p>\n

\u6709\u4e24\u4e2a\u5c0f\u6b65\u9aa4\u6ca1\u505a\u5b8c,\u697c\u4e3b\u81ea\u5df1\u770b\u4e00\u4e0b!<\/p>\n

use master<\/p>\n

if exists(select* from sysdatabases where name=’bankDB’)<\/p>\n

drop database bankDB<\/p>\n

GO<\/p>\n

—\u5efa\u5e93bankDB<\/p>\n

create database bankDB<\/p>\n

on<\/p>\n

(<\/p>\n

name=’bankDB’,<\/p>\n

filename=’D:bankbankDB.mdf’,<\/p>\n

filegrowth=15%<\/p>\n

)<\/p>\n

use bankDB<\/p>\n

GO<\/p>\n

—\u521b\u5efa\u7528\u6237\u4fe1\u606f\u8868(userInfo)<\/p>\n

create table userInfo<\/p>\n

(<\/p>\n

customerID INT IDENTITY(1,1),<\/p>\n

customerName VARCHAR(10) NOT NULL,<\/p>\n

PID NUMERIC(18,0) NOT NULL,<\/p>\n

telephone VARCHAR(15) NOT NULL,<\/p>\n

address VARCHAR(30)<\/p>\n

)<\/p>\n

GO<\/p>\n

—\u521b\u5efa\u4fe1\u606f\u8868\u7684\u7ea6\u675f<\/p>\n

ALTER TABLE userInfo ADD<\/p>\n

CONSTRAINT PK_custonerID PRIMARY KEY(customerID),<\/p>\n

CONSTRAINT CK_PID CHECK(len(PID)=18 or len(PID)=15),<\/p>\n

CONSTRAINT UQ_PID UNIQUE(PID),<\/p>\n

CONSTRAINT CK_telephone CHECK(telephone LIKE'[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]’ OR telephone LIKE'[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]’ OR telephone LIKE'[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]’)<\/p>\n

—\u521b\u5efa\u94f6\u884c\u5361\u4fe1\u606f\u8868(cardInfo)<\/p>\n

CREATE TABLE cardInfo<\/p>\n

(<\/p>\n

cardID VARCHAR(20) NOT NULL,<\/p>\n

curType VARCHAR(6) NOT NULL,<\/p>\n

savingType VARCHAR(8),<\/p>\n

openDate DATETIME NOT NULL,<\/p>\n

openMoney MONEY NOT NULL,<\/p>\n

balance MONEY NOT NULL,<\/p>\n

pass VARCHAR(6) NOT NULL,<\/p>\n

isReportLoss BIT NOT NULL,<\/p>\n

customerID INT NOT NULL<\/p>\n

)<\/p>\n

GO<\/p>\n

—\u521b\u5efa\u94f6\u884c\u5361\u4fe1\u606f\u8868\u7684\u7ea6\u675f<\/p>\n

ALTER TABLE cardInfo ADD<\/p>\n

CONSTRAINT PK_cardID PRIMARY KEY(cardID),<\/p>\n

CONSTRAINT CK_cardID CHECK(cardID like’1010 3576 [0-9][0-9][0-9][0-9] [0-9][0-9][0-9][0-9]’),<\/p>\n

CONSTRAINT DF_curType DEFAULT’RMB’ FOR curType,<\/p>\n

CONSTRAINT CK_savingType CHECK(savingType IN(‘\u6d3b\u671f’,’\u5b9a\u6d3b\u4e24\u4fbf’,’\u5b9a\u671f’)),<\/p>\n

CONSTRAINT DF_openDate DEFAULT GETDATE() FOR openDate,<\/p>\n

CONSTRAINT CK_openMoney CHECK(openMoney>=1),<\/p>\n

CONSTRAINT CK_balance CHECK(balance>=1),<\/p>\n

CONSTRAINT CK_pass CHECK(LEN(pass)=6),<\/p>\n

CONSTRAINT DF_pass DEFAULT’888888′ FOR pass,<\/p>\n

CONSTRAINT DF_isReportLoss DEFAULT’0′ FOR isReportLoss,<\/p>\n

CONSTRAINT FK_customerID FOREIGN KEY(customerID) REFERENCES userInfo(customerID)<\/p>\n

GO<\/p>\n

—\u521b\u5efa\u4ea4\u6613\u4fe1\u606f\u8868(transInfo)<\/p>\n

CREATE TABLE transInfo<\/p>\n

(<\/p>\n

transDate DATETIME NOT NULL,<\/p>\n

cardID VARCHAR(20) NOT NULL,<\/p>\n

transType VARCHAR(4) NOT NULL,<\/p>\n

transMoney MONEY NOT NULL,<\/p>\n

remark NTEXT<\/p>\n

)<\/p>\n

GO<\/p>\n

—\u521b\u5efa\u4ea4\u6613\u4fe1\u606f\u8868\u7684\u7ea6\u675f<\/p>\n

ALTER TABLE transInfo ADD<\/p>\n

CONSTRAINT DF_transDate DEFAULT GETDATE() FOR transDate,<\/p>\n

CONSTRAINT FK_cardID FOREIGN KEY(cardID) REFERENCES cardInfo(cardID),<\/p>\n

CONSTRAINT CK_transType CHECK(transType=’\u5b58\u5165’ or transType=’\u652f\u53d6’),<\/p>\n

CONSTRAINT CK_transMoney CHECK(transMoney>0)<\/p>\n

—-\u6d4b\u8bd5\u63d2\u5165\u6570\u636e<\/p>\n

insert into userInfo values(‘\u5f20\u4e09’,’123456789012340′,’010-67898978′,’\u5317\u4eac\u6d77\u6dc0’)<\/p>\n

insert into userInfo values(‘\u674e\u56db’,’320504198607221250′,’0512-65331652′,’\u6c5f\u82cf\u82cf\u5dde’)<\/p>\n

insert into userInfo values(‘\u738b\u4e94’,’320504198607223333′,’0512-65323442′,’\u6c5f\u82cf\u5357\u4eac’)<\/p>\n

insert into userInfo values(‘\u8d75\u516d’,’320504198607131313′,’0512-65331643′,’\u6c5f\u82cf\u82cf\u5dde’)<\/p>\n

insert into userInfo values(‘\u65b9\u516d’,’320504194407131543′,’0512-65331243′,’\u6c5f\u82cf\u76d0\u57ce’)<\/p>\n

insert into cardInfo values(‘1010 3576 1212 1134′,’RMB’,’\u6d3b\u671f’,’2006-10-01′,1.0000,1.0000,’888888′,”,’1′)<\/p>\n

insert into cardInfo values(‘1010 3576 1212 5555′,’RMB’,’\u6d3b\u671f’,’2006-10-01′,1000.0000,1000.0000,’888888′,”,’2′)<\/p>\n

insert into cardInfo values(‘1010 3576 2323 3343′,’RMB’,’\u6d3b\u671f’,’2006-12-01′,15345.0000,1000.0000,’888888′,”,’3′)<\/p>\n

insert into cardInfo values(‘1010 3576 1456 3454′,’RMB’,’\u6d3b\u671f’,’2006-11-28′,2343.0000,1000.0000,’888888′,”,’4′)<\/p>\n

insert into cardInfo values(‘1010 3576 1356 3554′,’RMB’,’\u6d3b\u671f’,’2006-12-05′,22143.0000,10020.0000,’888888′,”,’8′)<\/p>\n

—-\u63d2\u5165\u8fdd\u80cc\u7ea6\u675f\u8bed\u53e5<\/p>\n

insert into userInfo values(‘\u6c88\u975e’,’123456789′,’0512-67998978′,’\u6c5f\u82cf\u82cf\u5dde’)—\u8fdd\u80cc\u8eab\u4efd\u8bc1\u957f\u5ea6\u7684CHECK\u7ea6\u675f<\/p>\n

insert into userInfo values(‘\u6c88\u5927’,’320504198607131313′,’0512-67998979′,’\u6c5f\u82cf\u82cf\u5dde’)—\u8fdd\u80cc\u8eab\u4efd\u8bc1\u7684\u552f\u4e00\u7ea6\u675f<\/p>\n

insert into cardInfo values(‘1010 3576 1456 3424′,’RMB’,’\u6d3b\u671f’,’2006-11-28′,0.0000,0,’888888′,”,’5′)—\u8fdd\u80cc\u5f00\u6237\u91d1\u989d\u4e0d\u80fd<1\u7684CHECK\u7ea6\u675f<\/p>\n

insert into transInfo values(”,’1010 3576 1456 3424′,’\u652f\u53d6’,1000,”)—\u8fdd\u80cc\u4e3b\u5916\u952e\u7ea6\u675f,\u4ea4\u6613\u5361\u53f7\u5fc5\u987b\u5b58\u5728\u4e8ecardInfo\u4e2d<\/p>\n

—\u67e5\u770b\u6240\u6709\u8868<\/p>\n

select* from userInfo<\/p>\n

select* from cardInfo<\/p>\n

select* from transInfo<\/p>\n

—\u521b\u5efa\u5b58\u50a8\u8fc7\u7a0b:\u6839\u636e\u5361\u53f7\u4fee\u6539\u5bc6\u7801<\/p>\n

CREATE PROC proc_changePass@incardID VARCHAR(20),@inoldPass VARCHAR(6),@newPass1 VARCHAR(6),@newpass2 VARCHAR(6)<\/p>\n

AS<\/p>\n

DECLARE@oldPass VARCHAR(6)<\/p>\n

IF EXISTS(SELECT* FROM cardInfo WHERE cardID=@incardID)<\/p>\n

BEGIN<\/p>\n

SELECT@oldPass=pass FROM cardInfo WHERE cardID=@incardID<\/p>\n

IF(@oldpass=@inoldPass)<\/p>\n

BEGIN<\/p>\n

IF(@newpass1=@newpass2)<\/p>\n

BEGIN<\/p>\n

UPDATE cardInfo SET pass=@newPass1 WHERE cardID=@incardID<\/p>\n

PRINT’\u5bc6\u7801\u4fee\u6539\u6210\u529f\uff01’<\/p>\n

END<\/p>\n

ELSE<\/p>\n

PRINT’\u8bf7\u786e\u8ba4\u60a8\u7684\u65b0\u5bc6\u7801\uff01’<\/p>\n

END<\/p>\n

ELSE<\/p>\n

PRINT’\u60a8\u8f93\u5165\u7684\u539f\u5bc6\u7801\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01’<\/p>\n

END<\/p>\n

ELSE<\/p>\n

PRINT’\u60a8\u8f93\u5165\u7684\u5361\u53f7\u4e0d\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01’<\/p>\n

—\u6d4b\u8bd5\u4fee\u6539\u5bc6\u7801\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

EXEC proc_changePass’1010 3576 1212 1134′,’888888′,’123456′,’123456′<\/p>\n

—\u521b\u5efa\u6302\u5931\u94f6\u884c\u5361\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

CREATE PROC proc_lossCard@inCustomerName VARCHAR(10),@inPID NUMERIC(18,0),@inTelephone VARCHAR(15),@inAddress VARCHAR(30),@inCardPass VARCHAR(6)<\/p>\n

AS<\/p>\n

DECLARE@customerName VARCHAR(10),@PID NUMERIC(18,0),@telephone VARCHAR(15),@address VARCHAR(30),@cardPass VARCHAR(6)<\/p>\n

SELECT@customerName=customerName,@PID=PID,@telephone=telephone,@address=address FROM userInfo WHERE PID=@inPID<\/p>\n

SELECT@cardPass=pass FROM cardInfo WHERE customerID=(SELECT customerID FROM userInfo WHERE PID=@inPID)<\/p>\n

IF((@customerName=@inCustomerName)AND(@PID=@inPID)AND(@inTelephone=@telephone)AND(@inAddress=@address)AND(@inCardPass=@cardPass))<\/p>\n

BEGIN<\/p>\n

UPDATE cardInfo SET isReportLoss=1 WHERE customerID=(SELECT customerID FROM userInfo WHERE PID=@inPID)<\/p>\n

END<\/p>\n

ELSE<\/p>\n

PRINT’\u60a8\u7684\u4fe1\u606f\u6709\u8bef\uff0c\u8bf7\u6838\u5bf9\u540e\u91cd\u65b0\u8f93\u5165\uff01’<\/p>\n

—-\u6d4b\u8bd5\u6302\u5931\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

EXEC proc_lossCard’\u738b\u4e94’,’320504198607223333′,’0512-65323442′,’\u6c5f\u82cf\u5357\u4eac’,’888888′<\/p>\n

—\u7edf\u8ba1\u94f6\u884c\u6d41\u901a\u91d1\u989d<\/p>\n

DECLARE@inMoney MONEY,@outMoney MONEY<\/p>\n

SELECT@inMoney=sum(transMoney) from transInfo where transType=’\u5b58\u5165’<\/p>\n

SELECT@outMoney=sum(transMoney) from transInfo where transType=’\u652f\u53d6’<\/p>\n

PRINT’\u94f6\u884c\u6d41\u901a\u603b\u989d\u4e3a:’+ convert(varchar(20),@inMoney-@outMoney)+’ RMB’<\/p>\n

PRINT’\u76c8\u5229\u7ed3\u7b97\u4e3a:’+convert(varchar(20),@outMoney*0.008-@inMoney*0.003)+’ RMB’<\/p>\n

GO<\/p>\n

—\u67e5\u8be2\u6708\u4ea4\u6613\u51a0\u519b\u7684\u94f6\u884c\u5361\u4fe1\u606f<\/p>\n

SELECT* FROM transInfo WHERE<\/p>\n

print CONVERT(VARCHAR(20),@money)<\/p>\n

SELECT* FROM cardInfo WHERE<\/p>\n

—\u67e5\u8be2\u534a\u5e74\u672a\u4ea4\u6613\u7684\u5361\u4fe1\u606f<\/p>\n

SELECT* FROM cardInfo WHERE cardID NOT IN(SELECT cardID FROM transInfo WHERE DATEDIFF(mm,transDate,getdate())>7)\/\/\/\/\/\/\/\/\/\/<\/p>\n

—\u67e5\u8be2\u672c\u5468\u5f00\u6237\u7684\u5e10\u53f7<\/p>\n

SELECT* FROM cardInfo where DATEDIFF(WEEK,openDate,getdate())<1<\/p>\n

—\u67e5\u8be2\u6302\u5931\u5e10\u53f7\u7684\u5ba2\u6237\u4fe1\u606f<\/p>\n

SELECT* FROM userInfo where customerID IN(SELECT customerID FROM cardInfo where isReportLoss=1)<\/p>\n

—\u50ac\u6b3e\u63d0\u9192\u4e1a\u52a1<\/p>\n

SELECT customerName AS\u5ba2\u6237\u59d3\u540d,telephone AS\u8054\u7cfb\u7535\u8bdd,balance AS\u4f59\u989d FROM<\/p>\n

userInfo INNER join cardInfo ON userInfo.customerID=cardInfo.customerID WHERE balance<200 AND datepart(day,getdate())>=28<\/p>\n

—\u7ed9transInfo\u8868\u7684cardID\u5b57\u6bb5\u6dfb\u52a0\u975e\u805a\u96c6\u7d22\u5f15<\/p>\n

CREATE NONCLUSTERED INDEX IX_transInfo_cardID ON transInfo(cardID) WITH FILLFACTOR=70<\/p>\n

—\u6d4b\u8bd5\u7d22\u5f15<\/p>\n

SELECT* FROM transInfo(INDEX=IX_transInfo_cardID) WHERE cardID=’1010 3576 1212 1134′<\/p>\n

—\u521b\u5efa\u89c6\u56fe<\/p>\n

CREATE VIEW view_userInfo<\/p>\n

AS<\/p>\n

SELECT customerID AS\u5ba2\u6237\u7f16\u53f7,customerName AS\u5ba2\u6237\u59d3\u540d,PID AS\u8eab\u4efd\u8bc1\u53f7,telephone AS\u7535\u8bdd\u53f7\u7801,address AS\u8054\u7cfb\u5730\u5740 FROM userInfo<\/p>\n

CREATE VIEW view_cardInfo<\/p>\n

AS<\/p>\n

SELECT cardId AS\u5361\u53f7,curType AS\u8d27\u5e01\u79cd\u7c7b,savingType AS\u5b58\u6b3e\u7c7b\u578b,openDate AS\u5f00\u6237\u65e5\u671f,openMoney AS\u5f00\u6237\u91d1\u989d,balance AS\u5e10\u6237\u4f59\u989d,pass AS\u5bc6\u7801,isReportLoss AS\u662f\u5426\u6302\u5931,customerID AS\u987e\u5ba2\u7f16\u53f7 FROM cardInfo<\/p>\n

CREATE VIEW view_transInfo<\/p>\n

AS<\/p>\n

SELECT transDate AS\u4ea4\u6613\u65e5\u671f,cardID AS\u5361\u53f7,transType AS\u4ea4\u6613\u7c7b\u578b,transMoney AS\u4ea4\u6613\u91d1\u989d,remark AS\u5907\u6ce8 FROM transInfo<\/p>\n

—\u67e5\u770b\u89c6\u56fe<\/p>\n

SELECT* FROM view_userInfo<\/p>\n

SELECT* FROM view_cardInfo<\/p>\n

SELECT* FROM view_transInfo<\/p>\n

—\u521b\u5efa\u89e6\u53d1\u5668<\/p>\n

CREATE TRIGGER trig_trans<\/p>\n

ON transInfo<\/p>\n

FOR INSERT<\/p>\n

DECLARE@transType VARCHAR(4)<\/p>\n

—\u521b\u5efa\u89e6\u53d1\u5668trig_trans<\/p>\n

drop trigger trig_trans<\/p>\n

CREATE TRIGGER trig_trans ON transInfo<\/p>\n

FOR INSERT<\/p>\n

AS<\/p>\n<\/p>\n

DECLARE@transType VARCHAR(4),@transMoney MONEY,@cardID VARCHAR(20),@balance MONEY,@customerName VARCHAR(10)<\/p>\n

SELECT@transType=transType,@transMoney=transMoney,@cardID=cardID FROM inserted<\/p>\n

SELECT@balance=balance FROM cardInfo WHERE cardID=@cardID<\/p>\n

SELECT@customerName=customerName FROM userInfo WHERE customerID=(SELECT customerID FROM cardInfo WHERE cardID=@cardID)<\/p>\n

BEGIN TRAN<\/p>\n

IF(@transType=’\u652f\u53d6’)<\/p>\n

BEGIN<\/p>\n

IF(@balance-@transMoney<1)—\u5982\u679c\u53d6\u6b3e\u540e\u4f59\u989d\u4e0d\u8db31\u5143<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\uff0c\u8bf7\u7a0d\u7b49….’<\/p>\n

ROLLBACK TRAN—\u53d6\u6d88\u4ea4\u6613\uff0c\u56de\u6eda<\/p>\n

PRINT’\u4f59\u989d\u4e0d\u8db3\uff0c\u4ea4\u6613\u5931\u8d25\uff01’<\/p>\n

END<\/p>\n<\/p>\n

ELSE<\/p>\n<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\uff0c\u8bf7\u7a0d\u7b49…’<\/p>\n

COMMIT TRAN—\u4ea4\u6613\u6210\u529f<\/p>\n

UPDATE cardInfo SET balance=@balance-@transMoney WHERE cardID=@cardID<\/p>\n

PRINT’\u4ea4\u6613\u6210\u529f,’+CONVERT(VARCHAR(10),@customerName)+’\u60a8\u8fdb\u884c\u7684\u662f\u53d6\u6b3e\u64cd\u4f5c,\u5f53\u524d\u7684\u4f59\u989d\u4e3a:’+CONVERT(VARCHAR(20),@balance-@transMoney)+’ RMB’<\/p>\n

END<\/p>\n

END<\/p>\n<\/p>\n

ELSE<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\uff0c\u8bf7\u7a0d\u7b49…’<\/p>\n

COMMIT TRAN<\/p>\n

UPDATE cardInfo SET balance=@balance+@transMoney WHERE cardID=@cardID<\/p>\n

PRINT’\u4ea4\u6613\u6210\u529f,’+CONVERT(VARCHAR(10),@customerName)+’\u60a8\u8fdb\u884c\u7684\u662f\u5b58\u6b3e\u64cd\u4f5c,\u5f53\u524d\u7684\u4f59\u989d\u4e3a:’+CONVERT(VARCHAR(20),@balance+@transMoney)+’ RMB’<\/p>\n

END<\/p>\n

INSERT INTO transInfo VALUES(”,’1010 3576 1212 5555′,’\u652f\u53d6’,999,’aa’)<\/p>\n

—-\u521b\u5efa\u5b58\u5165\u4e0e\u652f\u53d6\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

drop proc proc_transInfo<\/p>\n

CREATE PROC proc_transInfo@customerName VARCHAR(10),@transMoney MONEY,@transType VARCHAR(4),@pass VARCHAR(6)=”<\/p>\n

AS<\/p>\n

DECLARE@pwd VARCHAR(6)<\/p>\n

DECLARE@cardID VARCHAR(20)<\/p>\n

SELECT@pwd=pass,@cardID=cardID FROM cardInfo WHERE customerID=(SELECT customerID FROM userInfo WHERE customerName=@customerName)—\u7531userInfo\u59d3\u540d\u5b57\u6bb5\u67e5\u8be2\u5f97\u7528\u6237\u7684\u5361\u53f7\u548c\u5bc6\u7801<\/p>\n

PRINT’\u60a8\u7684\u5361\u53f7\u4e3a\uff1a’+CONVERT(VARCHAR(20),@cardID)—\u5c06\u7528\u6237\u7684\u5361\u53f7\u8f93\u51fa<\/p>\n

IF(@transType=’\u5b58\u5165’)<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\uff0c\u8bf7\u7a0d\u7b49…’<\/p>\n

INSERT INTO transInfo VALUES(”,@cardID,@transType,@transMoney,”)<\/p>\n

PRINT’\u4ea4\u6613\u6210\u529f,\u60a8\u6210\u529f\u4ece\u5361\u4e0a\u5b58\u5165\u4e86’+CONVERT(VARCHAR(20),@transMoney)<\/p>\n

END<\/p>\n

ELSE<\/p>\n

BEGIN<\/p>\n

IF(@pwd=@pass)<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\uff0c\u8bf7\u7a0d\u7b49…’<\/p>\n

INSERT INTO transInfo VALUES(”,@cardID,@transType,@transMoney,”)<\/p>\n

PRINT’\u652f\u53d6\u6210\u529f,\u60a8\u6210\u529f\u4ece\u5361\u4e0a\u652f\u53d6\u4e86’+CONVERT(VARCHAR(20),@transMoney)<\/p>\n

END<\/p>\n

ELSE<\/p>\n

BEGIN<\/p>\n

PRINT’\u5bc6\u7801\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01’<\/p>\n

END<\/p>\n

END<\/p>\n

GO<\/p>\n

EXEC proc_transInfo’\u738b\u4e94’,100,’\u652f\u53d6’,’888888′—-\u6a21\u62df\u5b58\u5165\u4e0e\u652f\u53d6<\/p>\n

—-\u521b\u5efa\u4ea7\u751f\u968f\u673a\u5361\u53f7\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

CREATE PROC proc_RANDcardID@mycardID VARCHAR(20) OUTPUT<\/p>\n

AS<\/p>\n

DECLARE@rand NUMERIC(15,8)<\/p>\n

DECLARE@randcardID VARCHAR(10)<\/p>\n

SELECT@rand=RAND(CONVERT(INT,DATEPART(mm,GETDATE())* 100000)+<\/p>\n

CONVERT(INT,DATEPART(ss,GETDATE())* 1000)+<\/p>\n

CONVERT(INT,DATEPART(ms,GETDATE())))<\/p>\n

SET@randcardID=SUBSTRING(CONVERT(VARCHAR(10),@rand),3,4)+”+SUBSTRING(CONVERT(VARCHAR(10),@rand),7,4)<\/p>\n

SET@mycardID=’1010 3576’+”+@randcardID<\/p>\n

GO<\/p>\n

—-\u8c03\u7528\u968f\u673a\u5361\u53f7\u751f\u6210\u5b58\u50a8\u8fc7\u7a0b\uff0c\u4ea7\u751f\u968f\u673a\u5361\u53f7<\/p>\n

DECLARE@mycardID VARCHAR(20)<\/p>\n

EXEC proc_RANDcardID@mycardID OUTPUT<\/p>\n

PRINT’\u4ea7\u751f\u7684\u968f\u673a\u5361\u53f7\u4e3a:’+@mycardID<\/p>\n

—-\u521b\u5efa\u5f00\u6237\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

drop proc proc_openAccount<\/p>\n

CREATE PROC proc_openAccount@customerName VARCHAR(10),@PID NUMERIC(18,0),@telephone VARCHAR(15),@openMoney MONEY,@savingType VARCHAR(8),@address VARCHAR(30)<\/p>\n

AS<\/p>\n

WHILE(1=1)<\/p>\n

BEGIN<\/p>\n

DECLARE@mycardID VARCHAR(20)<\/p>\n

EXEC proc_RANDcardID@mycardID OUTPUT<\/p>\n

IF NOT EXISTS(SELECT cardID FROM cardInfo WHERE cardID=@mycardID)<\/p>\n

BEGIN<\/p>\n

INSERT INTO userInfo VALUES(@customerName,@PID,@telephone,@address)<\/p>\n

DECLARE@customerID INT<\/p>\n

SELECT@customerID=customerID FROM userInfo WHERE PID=@PID<\/p>\n

INSERT INTO cardInfo(cardID,savingType,openMoney,balance,customerID) VALUES(@mycardID,@savingType,@openMoney,@openMoney,@customerID)<\/p>\n

PRINT’\u5f00\u59cb\u5f00\u6237\uff0c\u8bf7\u7a0d\u7b49….’<\/p>\n

PRINT’\u5f00\u6237\u6210\u529f!\u60a8\u7684\u5361\u53f7\u4e3a\uff1a’+@mycardID<\/p>\n

PRINT’\u5f00\u6237\u65e5\u671f:’+CONVERT(VARCHAR(20),GETDATE())<\/p>\n

PRINT’\u5f00\u6237\u91d1\u989d\u4e3a:’+CONVERT(VARCHAR(20),@openMoney)<\/p>\n

BREAK<\/p>\n

END<\/p>\n

END<\/p>\n

GO<\/p>\n

—\u6a21\u62df\u5f00\u6237\uff0c\u8c03\u7528\u5b58\u50a8\u8fc7\u7a0bproc_openAccount<\/p>\n

EXEC proc_openAccount’\u6c88\u975e’,’320504198607221447′,’13914048959′,3999,’\u6d3b\u671f’,’\u82cf\u5dde\u804c\u4e1a\u5927\u5b66’<\/p>\n

—\u521b\u5efa\u5e10\u6237\u95f4\u8f6c\u5e10\u7684\u5b58\u50a8\u8fc7\u7a0b<\/p>\n

drop proc proc_trans<\/p>\n

CREATE PROC proc_trans@outcardID VARCHAR(20),@incardID VARCHAR(20),@transMoney MONEY<\/p>\n

AS<\/p>\n

DECLARE@outbalance MONEY,@inbalance MONEY,@isReportLoss1 BIT,@isReportLoss2 BIT<\/p>\n

SELECT@outbalance=balance FROM cardInfo WHERE cardID=@outcardID<\/p>\n

SELECT@inbalance=balance FROM cardInfo WHERE cardID=@incardID<\/p>\n

SELECT@isReportLoss1=isReportLoss FROM cardInfo WHERE cardID=@outcardID<\/p>\n

SELECT@isReportLoss2=isReportLoss FROM cardInfo WHERE cardID=@incardID<\/p>\n

IF(@isReportLoss1=0 AND@isReportLoss2=0)<\/p>\n

BEGIN<\/p>\n

IF(@outbalance-@transMoney<1)<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\u4e2d\uff0c\u8bf7\u7a0d\u7b49….’<\/p>\n

PRINT’\u4ea4\u6613\u5931\u8d25\uff0c\u4f59\u989d\u4e0d\u8db3\uff0c\u65e0\u6cd5\u8f6c\u5e10!’<\/p>\n

PRINT’\u60a8\u7684\u4f59\u989d\u4e3a:’+CONVERT(VARCHAR(20),@outbalance)+’ RMB’<\/p>\n

END<\/p>\n

ELSE<\/p>\n

BEGIN<\/p>\n

PRINT’\u6b63\u5728\u4ea4\u6613\u4e2d\uff0c\u8bf7\u7a0d\u7b49….’<\/p>\n

INSERT INTO transInfo(cardID,transType,transMoney) VALUES(@outcardID,’\u652f\u53d6’,@transMoney)<\/p>\n

INSERT INTO transInfo(cardID,transType,transMoney) VALUES(@incardID,’\u5b58\u5165’,@transMoney)<\/p>\n

UPDATE cardInfo SET balance=@outbalance-@transMoney WHERE cardID=@outcardID<\/p>\n

UPDATE cardInfo SET balance=@inbalance+@transMoney WHERE cardID=@incardID<\/p>\n

PRINT’\u8f6c\u5e10\u6210\u529f!’<\/p>\n

PRINT<\/p>\n

END<\/p>\n

END<\/p>\n

ELSE<\/p>\n

PRINT’\u6709\u4e00\u65b9\u5361\u5df2\u7ecf\u6302\u5931\uff0c\u8bf7\u4e3b\u52a8\u6295\u6848\u81ea\u9996\uff01\u4ea4\u6613\u5931\u8d25’<\/p>\n

—-\u6a21\u62df\u8f6c\u5e10<\/p>\n

EXEC proc_trans’1010 3576 1356 3554′,’1010 3576 1212 1134′,1000<\/p>\n

—\u6dfb\u52a0\u767b\u9646\u5e10\u6237<\/p>\n

EXEC SP_ADDLOGIN’philip’,’65331652′<\/p>\n

—\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237<\/p>\n

EXEC SP_GRANTDBACCESS’philip’<\/p>\n

—\u8d4b\u4e88\u4e09\u5f20\u8868\u7684\u589e\u5220\u6539\u67e5\u6743\u9650<\/p>\n

GRANT SELECT,INSERT,DELETE,UPDATE ON userInfo TO philip<\/p>\n

GRANT SELECT,INSERT,DELETE,UPDATE ON cardInfo TO philip<\/p>\n

GRANT SELECT,INSERT,DELETE,UPDATE ON transInfo TO philip<\/p>\n

—\u8d4b\u4e88\u5b58\u50a8\u8fc7\u7a0b\u7684\u6267\u884c\u6743\u9650<\/p>\n

GRANT EXEC ON proc_changePass TO philip<\/p>\n

GRANT EXEC ON proc_lossCard TO philip<\/p>\n

GRANT EXEC ON proc_transInfo TO philip<\/p>\n

GRANT EXEC ON proc_RANDcardID TO philip<\/p>\n

GRANT EXEC ON proc_openAccount TO philip<\/p>\n

GRANT EXEC ON proc_trans TO philip<\/p>\n

\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u7684\u4ecb\u7ecd\u5c31\u804a\u5230\u8fd9\u91cc\u5427\uff0c\u611f\u8c22\u4f60\u82b1\u65f6\u95f4\u9605\u8bfb\u672c\u7ad9\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8e\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0\u3001\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u7684\u4fe1\u606f\u522b\u5fd8\u4e86\u5728\u672c\u7ad9\u8fdb\u884c\u67e5\u627e\u54e6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5927\u5bb6\u597d\uff0c\u5173\u4e8e\u5728\u7ebf\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5f88\u591a\u670b\u53cb\u90fd\u8fd8\u4e0d\u592a\u660e\u767d\uff0c\u4eca\u5929\u5c0f\u7f16\u5c31\u6765\u4e3a\u5927\u5bb6\u5206\u4eab\u5173\u4e8e\u5168\u56fd\u65c5\u6e38\u7ba1\u7406\u7cfb\u7edf\u5e73\u53f0\u7684\u77e5\u8bc6\uff0c\u5e0c\u671b\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":734667,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-730480","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gonglue"],"_links":{"self":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/730480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/comments?post=730480"}],"version-history":[{"count":1,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/730480\/revisions"}],"predecessor-version":[{"id":734668,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/730480\/revisions\/734668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/media\/734667"}],"wp:attachment":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/media?parent=730480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/categories?post=730480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/tags?post=730480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}