{"id":1845,"date":"2020-10-27T17:02:56","date_gmt":"2020-10-27T09:02:56","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=1845"},"modified":"2021-01-25T10:01:39","modified_gmt":"2021-01-25T02:01:39","slug":"gbase-8a%e6%9f%a5%e7%9c%8b%e8%a1%a8%e7%9a%84tableid","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/1845","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u67e5\u770b\u8868\u7684tableId"},"content":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u4e24\u79cd\u65b9\u6848\u67e5\u770b\u67d0\u8868\u7684tableID\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-6a2af83f3cae7\" 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-6a2af83f3cae7\"  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\/1845\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/1845\/#%E8%81%94%E6%9C%BA%E7%9A%84tables%E8%A1%A8\" >\u8054\u673a\u7684tables\u8868<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/1845\/#%E7%A6%BB%E7%BA%BF%E9%80%9A%E8%BF%87metadump\" >\u79bb\u7ebf\u901a\u8fc7metadump<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/3696\/\">GBase 8a\u67e5\u770b\u548c\u4fee\u6539\u8868\u7684\u62e5\u6709\u8005UID<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/97\/\">GBase8a \u96c6\u7fa4\u67e5\u770b\u5efa\u8868\u7ed3\u6784\uff0c\u5b58\u50a8\u8fc7\u7a0b\u7684\u8bed\u53e5<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/2436\/\">GBase 8a\u7684show\u547d\u4ee4\u5217\u8868\u548c\u4f7f\u7528<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%81%94%E6%9C%BA%E7%9A%84tables%E8%A1%A8\"><\/span>\u8054\u673a\u7684tables\u8868<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u67e5\u770binformation_schema.table\u8868\u53ef\u4ee5\u83b7\u5f97tableid\u3002\u5982\u4e0b\u4f8b\u5b50\u662f9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase&gt; use information_schema;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\n\ngbase&gt; select * from tables where table_name='tmpab'\\G\n*************************** 1. row ***************************\n              TABLE_CATALOG: NULL\n               TABLE_SCHEMA: testdb\n                 TABLE_NAME: tmpab\n                 TABLE_TYPE: BASE TABLE\n                     ENGINE: EXPRESS\n                    VERSION: 10\n                 ROW_FORMAT: Compressed\n                 TABLE_ROWS: 0\n             AVG_ROW_LENGTH: 0\n                DATA_LENGTH: 0\n            MAX_DATA_LENGTH: 0\n               INDEX_LENGTH: 0\n                  DATA_FREE: 0\n             AUTO_INCREMENT: NULL\n                CREATE_TIME: 2020-10-27 15:44:38\n                UPDATE_TIME: 2020-10-27 15:49:21\n                 CHECK_TIME: NULL\n            TABLE_COLLATION: utf8_general_ci\n                   CHECKSUM: NULL\n             CREATE_OPTIONS: avg_row_length=307\n   TABLE_LIMIT_STORAGE_SIZE: 0\n         TABLE_STORAGE_SIZE: 770\n            TABLE_DATA_SIZE: 0\n              TABLE_COMMENT:\n LOCAL_HASH_INDEX_FILE_SIZE: 0\nGLOBAL_HASH_INDEX_FILE_SIZE: 0\n                        SCN: 26\n                   TABLE_ID: 9\n                  OWNER_UID: 1\n1 row in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%A6%BB%E7%BA%BF%E9%80%9A%E8%BF%87metadump\"><\/span>\u79bb\u7ebf\u901a\u8fc7metadump<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u901a\u8fc7metadump table.desc.A\/B\uff0c \u6216\u8005V95\u7248\u672c\u7684table.info.A\/B\u67e5\u770b\uff0c\u5176\u4e2d\u7684t_num\u5c31\u662ftableid\u3002\u5982\u4e0b\u4f8b\u5b50\u540c\u6837\u7684\u8868\u662f9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@rh6-1 t1_n1.GED]$ metadump \/opt\/gcluster\/userdata\/gcluster\/testdb\/metadata\/tmpab.GED\/table.des.B\nThis tool is designed for use at GBase internally,and is unsupported externally.\nGBase makes no claims and holds no liability regarding the external use of this tool.\nThis tool is copyrighted and his redistribution is restricted.\n\/opt\/gcluster\/userdata\/gcluster\/testdb\/metadata\/tmpab.GED\/table.des.B\n+----------------------+-----------------+\n| storage_version      | GEHV7           |\n| encrypt              | 0               |\n| shrinked_rowid       | 0               |\n| no_attr              | 2               |\n| attr_nums&#91;0]         | 0               |\n| attr_nums&#91;1]         | 1               |\n| no_attr_cnt          | 2               |\n| no_attr&#91;0]           | 1               |\n| no_attr&#91;1]           | 1               |\n| t_name               | tmpab           |\n| t_desc::false        |                 |\n| offset               | 54              |\n| length               | 14              |\n| block type           | 1               |\n| next                 | 0               |\n| t_num                | 9               |\n| limit_storage_size   | 0               |\n| storage_size         | 0               |\n| scn                  | 26              |\n| compress_flag_num    | 4294967295      |\n| compress_flag_str    | 4294967295      |\n| extend_size          | 0               |\n| autoextend_flag      | 0               |\n| tab_data_size        | 0               |\n| durability           | 0               |\n+----------------------+-----------------+\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u67e5\u770b\u8868\u7684tableId<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1845","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1845","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=1845"}],"version-history":[{"count":5,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1845\/revisions"}],"predecessor-version":[{"id":3701,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1845\/revisions\/3701"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=1845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=1845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=1845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}