{"id":236,"date":"2020-06-12T11:25:29","date_gmt":"2020-06-12T03:25:29","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=236"},"modified":"2026-02-14T09:19:27","modified_gmt":"2026-02-14T01:19:27","slug":"gbase-8a%e9%9b%86%e7%be%a4%e7%bb%9f%e4%b8%80%e5%ad%97%e6%ae%b5%e5%88%97%e5%90%8d%e5%a4%a7%e5%b0%8f%e5%86%99","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/236","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4\u7edf\u4e00\u5b57\u6bb5\u5217\u540d\u5927\u5c0f\u5199\u7684\u53c2\u6570\u548c\u4f8b\u5b50"},"content":{"rendered":"<p>GBase 8a\u63d0\u4f9b\u4e862\u7c7b\u573a\u666f\u6765\u652f\u6301\u5927\u5c0f\u5199\uff1a\u7b2c\u4e00\u662f\u67e5\u770b\u8868\u7ed3\u6784\uff0c\u652f\u6301\u9ed8\u8ba4\uff0c\u5168\u6539\u5c0f\u5199\uff0c\u5168\u6539\u5927\u5199\u7684\u8f93\u51fa\uff1b\u7b2c\u4e8c\u662f\u67e5\u8be2\u5e26\u8868\u5934\u7684\u5bfc\u51fawith head, \u652f\u6301\u662f\u5426\u5927\u5c0f\u5199\u654f\u611f\uff0c\u9ed8\u8ba4\u8f93\u51fa\u5c0f\u5199\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2adbf49c8de\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2adbf49c8de\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E6%9F%A5%E7%9C%8B%E8%A1%A8%E7%BB%93%E6%9E%84\" >\u67e5\u770b\u8868\u7ed3\u6784<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E5%8F%82%E6%95%B0\" >\u53c2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E5%BD%B1%E5%93%8D%E8%8C%83%E5%9B%B4\" >\u5f71\u54cd\u8303\u56f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E6%A0%B7%E4%BE%8B\" >\u6837\u4f8b<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E6%9F%A5%E8%AF%A2%E5%AF%BC%E5%87%BA%E7%9A%84%E6%A0%87%E9%A2%98\" >\u67e5\u8be2\u5bfc\u51fa\u7684\u6807\u9898<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E5%8F%82%E6%95%B0-2\" >\u53c2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/236\/#%E6%A0%B7%E4%BE%8B-2\" >\u6837\u4f8b<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E8%A1%A8%E7%BB%93%E6%9E%84\"><\/span>\u67e5\u770b\u8868\u7ed3\u6784<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E6%95%B0\"><\/span>\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u901a\u8fc7\u53c2\u6570gbase_show_ident_case_sensitive\u63a7\u5236<br>0 = \u9ed8\u8ba4\uff0c \u521b\u5efa\u65f6\u6307\u5b9a\u7684\u4e00\u81f4<br>1 = \u5c0f\u5199\uff0c \u6240\u6709\u5217\u540d\u8f93\u51fa\u5c0f\u5199<br>2 = \u5927\u5199\uff0c \u6240\u6709\u5217\u540d\u8f93\u51fa\u5927\u5199<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BD%B1%E5%93%8D%E8%8C%83%E5%9B%B4\"><\/span>\u5f71\u54cd\u8303\u56f4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>show create table\/view<br>desc table_name<br>show column<br>show index<br>columns\u5143\u6570\u636e\u8868<br>gcdump\u5bfc\u51fa\u8868\u7ed3\u6784\u65f6<\/p>\n\n\n\n<p>\u6d89\u53ca\u7248\u672c\uff1a8.6.2Build43R20<br>\u6d4b\u8bd5\u7248\u672c:V9.5.2.23<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"688\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/06\/image-59.png\" alt=\"\" class=\"wp-image-237\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A0%B7%E4%BE%8B\"><\/span>\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>gbase&gt; set global gbase_show_ident_case_sensitive=2;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\n\ngbase&gt;\ngbase&gt;\ngbase&gt; select * from colors;\n+----------+-------------+\n| color_id | color_value |\n+----------+-------------+\n| c001     | Red         |\n| c002     | Yellow      |\n| c003     | Green       |\n| c004     | Black       |\n| c005     | White       |\n+----------+-------------+\n5 rows in set (Elapsed: 00:00:00.01)\n\ngbase&gt;\ngbase&gt;\ngbase&gt;\ngbase&gt; desc colors;\n+-------------+--------------+------+-----+---------+-------+\n| Field       | Type         | Null | Key | Default | Extra |\n+-------------+--------------+------+-----+---------+-------+\n| COLOR_ID    | varchar(100) | YES  |     | NULL    |       |\n| COLOR_VALUE | varchar(100) | YES  |     | NULL    |       |\n+-------------+--------------+------+-----+---------+-------+\n2 rows in set (Elapsed: 00:00:00.01)\n\ngbase&gt; show create table colors;\n+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| Table  | Create Table                                                                                                                                                                |\n+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n| colors | CREATE TABLE \"colors\" (\n  \"COLOR_ID\" varchar(100) DEFAULT NULL,\n  \"COLOR_VALUE\" varchar(100) DEFAULT NULL\n) ENGINE=EXPRESS DEFAULT CHARSET=utf8 TABLESPACE='sys_tablespace' |\n+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n1 row in set (Elapsed: 00:00:00.01)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E8%AF%A2%E5%AF%BC%E5%87%BA%E7%9A%84%E6%A0%87%E9%A2%98\"><\/span>\u67e5\u8be2\u5bfc\u51fa\u7684\u6807\u9898<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E6%95%B0-2\"><\/span>\u53c2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5bfc\u51fa\u6587\u4ef6\u8868\u5934\u5927\u5c0f\u5199\u654f\u611f\u529f\u80fd\u5f00\u5173\u3002<\/p>\n\n\n\n<p>1=\u654f\u611f\u3002\u5982\u679c\u7528\u7684*,\u5219\u4e0e\u8868\u7ed3\u6784\u4fdd\u6301\u4e00\u81f4\u3002<br>0=\u4e0d\u654f\u611f\uff0c\u6539\u6210\u5c0f\u5199\u3002\u9ed8\u8ba4\u503c<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>_gcluster_support_outfile_with_table_head_case_sensitive<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A0%B7%E4%BE%8B-2\"><\/span>\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5982\u4e0b\u901a\u8fc7\u53c2\u6570\uff0c\u5c06MB\u548cMb\u505a\u4e86\u5bfc\u51fa\u6587\u4ef6\u7684\u8868\u5934\u533a\u5206\u3002 select into outfile with head<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>gbase> show variables like '%sensitive%';\n+----------------------------------------------------------+-------+\n| Variable_name                                            | Value |\n+----------------------------------------------------------+-------+\n| _gcluster_support_outfile_with_table_head_case_sensitive | 0     |\n| gbase_show_ident_case_sensitive                          | 0     |\n| gcluster_dblink_orcl_case_sensitive                      | 0     |\n+----------------------------------------------------------+-------+\n3 rows in set (Elapsed: 00:00:00.00)\n\ngbase> set _gcluster_support_outfile_with_table_head_case_sensitive=1;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\n\ngbase>\ngbase> select 123 as MB,456 as Mb from dual into outfile '\/home\/gbase\/t1.txt' with head writemode by overwrites;\nQuery OK, 1 row affected (Elapsed: 00:00:00.00)\n\ngbase> system cat \/home\/gbase\/t1.txt\/t1.txt\nMB      Mb\n123     456\ngbase><\/code><\/pre>\n\n\n\n<p>\u4e0e\u8868\u7ed3\u6784\u4fdd\u6301\u4e00\u81f4<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>gbase> desc t1;\r\n+-------+--------------+------+-----+---------+-------+\r\n| Field | Type         | Null | Key | Default | Extra |\r\n+-------+--------------+------+-----+---------+-------+\r\n| id    | int(11)      | YES  |     | NULL    |       |\r\n| Name  | varchar(100) | YES  |     | NULL    |       |\r\n+-------+--------------+------+-----+---------+-------+\r\n2 rows in set (Elapsed: 00:00:00.00)\r\ngbase> select * from t1 into outfile '\/home\/gbase\/t1_1_star.txt' writemode by overwrites with head;\r\nQuery OK, 4 rows affected (Elapsed: 00:00:00.02)\r\ngbase> system cat \/home\/gbase\/t1_1_star.txt\r\nid      Name\r\n1       \\N\r\n2       \\N\r\n4       \\N\r\n8       \\N\r\ngbase><\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u63d0\u4f9b\u4e862\u7c7b\u573a\u666f\u6765\u652f\u6301\u5927\u5c0f\u5199\uff1a\u7b2c\u4e00\u662f\u67e5\u770b\u8868\u7ed3\u6784\uff0c\u652f\u6301\u9ed8\u8ba4\uff0c\u5168\u6539\u5c0f\u5199\uff0c\u5168\u6539\u5927\u5199\u7684\u8f93\u51fa\uff1b\u7b2c\u4e8c\u662f\u67e5\u8be2\u5e26\u8868\u5934\u7684\u5bfc\u51fawith head, \u652f\u6301\u662f\u5426\u5927\u5c0f\u5199\u654f\u611f\uff0c\u9ed8\u8ba4\u8f93\u51fa\u5c0f\u5199\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":10,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"predecessor-version":[{"id":13211,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/236\/revisions\/13211"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}