{"id":93754,"date":"2024-10-19T16:38:17","date_gmt":"2024-10-19T08:38:17","guid":{"rendered":"https:\/\/server.hk\/cnblog\/93754\/"},"modified":"2024-10-19T16:38:18","modified_gmt":"2024-10-19T08:38:18","slug":"oracle-10g-%e5%a6%82%e4%bd%95%e7%94%a8-firall-%e4%be%86%e8%99%95%e7%90%86%e9%9d%9e%e9%80%a3%e7%ba%8c%e6%95%b8%e7%b5%84","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/93754\/","title":{"rendered":"Oracle 10g \u5982\u4f55\u7528 FIRALL \u4f86\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44"},"content":{"rendered":"<h1 id=\"oracle-10g-%e5%a6%82%e4%bd%95%e7%94%a8-firall-%e4%be%86%e8%99%95%e7%90%86%e9%9d%9e%e9%80%a3%e7%ba%8c%e6%95%b8%e7%b5%84-tLSXDCvxUX\">Oracle 10g \u5982\u4f55\u7528 FIRALL \u4f86\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0cOracle 10g \u63d0\u4f9b\u4e86\u591a\u7a2e\u5f37\u5927\u7684\u529f\u80fd\u4f86\u8655\u7406\u6578\u64da\u3002\u7279\u5225\u662f\u5728\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44\u6642\uff0cFIRALL \u51fd\u6578\u662f\u4e00\u500b\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e FIRALL \u51fd\u6578\u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u5176\u5728 Oracle 10g \u4e2d\u7684\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-firall-%e5%87%bd%e6%95%b8%ef%bc%9f-tLSXDCvxUX\">\u4ec0\u9ebc\u662f FIRALL \u51fd\u6578\uff1f<\/h2>\n<p>FIRALL \u51fd\u6578\u662f\u4e00\u500b\u805a\u5408\u51fd\u6578\uff0c\u4e3b\u8981\u7528\u65bc\u5c07\u591a\u500b\u884c\u7684\u6578\u64da\u5408\u4f75\u70ba\u4e00\u500b\u5b57\u7b26\u4e32\u3002\u9019\u5728\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44\u6642\u7279\u5225\u6709\u7528\uff0c\u56e0\u70ba\u5b83\u53ef\u4ee5\u5e6b\u52a9\u6211\u5011\u5c07\u5206\u6563\u7684\u6578\u64da\u6574\u5408\u5728\u4e00\u8d77\uff0c\u4fbf\u65bc\u9032\u884c\u9032\u4e00\u6b65\u7684\u5206\u6790\u548c\u8655\u7406\u3002<\/p>\n<h2 id=\"%e9%9d%9e%e9%80%a3%e7%ba%8c%e6%95%b8%e7%b5%84%e7%9a%84%e6%a6%82%e5%bf%b5-tLSXDCvxUX\">\u975e\u9023\u7e8c\u6578\u7d44\u7684\u6982\u5ff5<\/h2>\n<p>\u5728\u6578\u64da\u5eab\u4e2d\uff0c\u975e\u9023\u7e8c\u6578\u7d44\u6307\u7684\u662f\u90a3\u4e9b\u4e0d\u9023\u7e8c\u7684\u6578\u64da\u96c6\u5408\u3002\u9019\u4e9b\u6578\u64da\u53ef\u80fd\u4f86\u81ea\u4e0d\u540c\u7684\u884c\u6216\u5217\uff0c\u4e26\u4e14\u5728\u908f\u8f2f\u4e0a\u4e26\u4e0d\u76f8\u9023\u3002\u8209\u4f8b\u4f86\u8aaa\uff0c\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u5b78\u751f\u8868\uff0c\u5176\u4e2d\u5305\u542b\u5b78\u751f\u7684\u59d3\u540d\u548c\u4ed6\u5011\u7684\u9078\u4fee\u8ab2\u7a0b\u3002\u5982\u679c\u67d0\u4e9b\u5b78\u751f\u9078\u4fee\u7684\u8ab2\u7a0b\u4e0d\u76f8\u540c\uff0c\u90a3\u9ebc\u9019\u4e9b\u8ab2\u7a0b\u5c31\u5f62\u6210\u4e86\u4e00\u500b\u975e\u9023\u7e8c\u6578\u7d44\u3002<\/p>\n<h2 id=\"%e4%bd%bf%e7%94%a8-firall-%e5%87%bd%e6%95%b8%e7%9a%84%e5%9f%ba%e6%9c%ac%e8%aa%9e%e6%b3%95-tLSXDCvxUX\">\u4f7f\u7528 FIRALL \u51fd\u6578\u7684\u57fa\u672c\u8a9e\u6cd5<\/h2>\n<pre><code>FIRALL (expression [, separator])<\/code><\/pre>\n<p>\u5728\u9019\u88e1\uff0c<code>expression<\/code> \u662f\u8981\u5408\u4f75\u7684\u6578\u64da\uff0c\u800c <code>separator<\/code> \u662f\u7528\u65bc\u5206\u9694\u5408\u4f75\u5f8c\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\uff08\u53ef\u9078\uff09\u3002<\/p>\n<h2 id=\"firall-%e5%87%bd%e6%95%b8%e7%9a%84%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8-tLSXDCvxUX\">FIRALL \u51fd\u6578\u7684\u5be6\u969b\u61c9\u7528<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u500b\u4f7f\u7528 FIRALL \u51fd\u6578\u7684\u793a\u4f8b\uff0c\u5047\u8a2d\u6211\u5011\u6709\u4e00\u500b\u540d\u70ba <code>students<\/code> \u7684\u8868\uff0c\u7d50\u69cb\u5982\u4e0b\uff1a<\/p>\n<pre><code>CREATE TABLE students (\n    id NUMBER,\n    name VARCHAR2(50),\n    course VARCHAR2(50)\n);\n<\/code><\/pre>\n<p>\u6211\u5011\u53ef\u4ee5\u63d2\u5165\u4e00\u4e9b\u6578\u64da\uff1a<\/p>\n<pre><code>INSERT INTO students (id, name, course) VALUES (1, '\u5c0f\u660e', '\u6578\u5b78');\nINSERT INTO students (id, name, course) VALUES (2, '\u5c0f\u83ef', '\u7269\u7406');\nINSERT INTO students (id, name, course) VALUES (3, '\u5c0f\u660e', '\u5316\u5b78');\nINSERT INTO students (id, name, course) VALUES (4, '\u5c0f\u83ef', '\u6578\u5b78');\n<\/code><\/pre>\n<p>\u73fe\u5728\uff0c\u6211\u5011\u60f3\u8981\u67e5\u8a62\u6bcf\u4f4d\u5b78\u751f\u6240\u9078\u4fee\u7684\u6240\u6709\u8ab2\u7a0b\uff0c\u53ef\u4ee5\u4f7f\u7528 FIRALL \u51fd\u6578\u4f86\u5be6\u73fe\uff1a<\/p>\n<pre><code>SELECT name, \n       FIRALL(course, ', ') AS courses\nFROM students\nGROUP BY name;\n<\/code><\/pre>\n<p>\u9019\u6a23\u7684\u67e5\u8a62\u5c07\u8fd4\u56de\u6bcf\u4f4d\u5b78\u751f\u7684\u59d3\u540d\u53ca\u5176\u9078\u4fee\u7684\u6240\u6709\u8ab2\u7a0b\uff0c\u8ab2\u7a0b\u4e4b\u9593\u7528\u9017\u865f\u5206\u9694\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-tLSXDCvxUX\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<ul>\n<li>FIRALL \u51fd\u6578\u50c5\u9069\u7528\u65bc Oracle 10g \u53ca\u4ee5\u4e0a\u7248\u672c\u3002<\/li>\n<li>\u5728\u4f7f\u7528 FIRALL \u51fd\u6578\u6642\uff0c\u78ba\u4fdd <code>expression<\/code> \u7684\u6578\u64da\u985e\u578b\u4e00\u81f4\u3002<\/li>\n<li>\u904e\u591a\u7684\u6578\u64da\u5408\u4f75\u53ef\u80fd\u6703\u5c0e\u81f4\u6027\u80fd\u554f\u984c\uff0c\u56e0\u6b64\u5728\u4f7f\u7528\u6642\u9700\u8b39\u614e\u8003\u91cf\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-tLSXDCvxUX\">\u7e3d\u7d50<\/h2>\n<p>FIRALL \u51fd\u6578\u5728 Oracle 10g \u4e2d\u662f\u4e00\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u80fd\u5920\u6709\u6548\u5730\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44\uff0c\u5e6b\u52a9\u7528\u6236\u6574\u5408\u548c\u5206\u6790\u6578\u64da\u3002\u901a\u904e\u672c\u6587\u7684\u4ecb\u7d39\uff0c\u5e0c\u671b\u8b80\u8005\u80fd\u5920\u66f4\u597d\u5730\u7406\u89e3 FIRALL \u51fd\u6578\u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u5176\u5728\u5be6\u969b\u61c9\u7528\u4e2d\u7684\u50f9\u503c\u3002\u5982\u679c\u60a8\u5c0d\u65bc\u6578\u64da\u5eab\u7ba1\u7406\u6709\u66f4\u6df1\u5165\u7684\u9700\u6c42\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u4f86\u642d\u5efa\u60a8\u7684\u6578\u64da\u5eab\u74b0\u5883\uff0c\u4eab\u53d7\u66f4\u9ad8\u6548\u7684\u6578\u64da\u8655\u7406\u9ad4\u9a57\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 Oracle 10g \u4e2d\u4f7f\u7528 FIRALL \u51fd\u6578\u6709\u6548\u8655\u7406\u975e\u9023\u7e8c\u6578\u7d44\uff0c\u63d0\u5347\u6578\u64da\u8655\u7406\u6548\u7387\u8207\u6e96\u78ba\u6027\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-93754","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93754","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"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=93754"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93754\/revisions"}],"predecessor-version":[{"id":93755,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93754\/revisions\/93755"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=93754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=93754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=93754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}