{"id":5147,"date":"2021-03-19T11:09:36","date_gmt":"2021-03-19T03:09:36","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=5147"},"modified":"2021-03-19T11:17:17","modified_gmt":"2021-03-19T03:17:17","slug":"gbase-8a%e6%8a%a5%e9%94%99this-version-of-gbase-doesnt-yet-support-alter-column-definition-except-increasing-length-of-varchar","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/5147","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u62a5\u9519This version of GBase doesn't yet support 'ALTER column definition except increasing length of varchar"},"content":{"rendered":"<p>GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u4e0d\u652f\u6301\u6539\u52a8\u5b57\u6bb5\u7684\u5b9a\u4e49\uff0c\u9664\u4e86\u53ef\u4ee5\u589e\u52a0varchar\u7684\u957f\u5ea6\uff0c\u5176\u5b83\u7684\u64cd\u4f5c\u90fd\u4f1a\u62a5\u5982\u4e0b\u7684\u9519\u8bef\uff1aERROR 1702 (HY000): gcluster table error: This version of GBase doesn't yet support 'ALTER column definition except increasing length of varchar'.<\/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-6a2ab6464d191\" 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-6a2ab6464d191\"  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\/5147\/#%E5%8E%9F%E5%9B%A0\" >\u539f\u56e0<\/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\/5147\/#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\" >Solution<\/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\/5147\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8E%9F%E5%9B%A0\"><\/span>\u539f\u56e0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u9664\u4e86varchar\u589e\u52a0\u957f\u5ea6\u5916\u7684\u6539\u52a8\u5b57\u6bb5\u5b9a\u4e49\u7684\u64cd\u4f5c\u3002\u5f53\u7136\u6ce8\u91ca\u662f\u53ef\u4ee5\u968f\u65f6\u4fee\u6539\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\"><\/span>Solution<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u65b0\u5efa\u5217\uff0c\u5c06\u6570\u636eupdate\u8fc7\u53bb\uff0c\u518d\u5c06\u5217\u91cd\u547d\u540d\u3002\u8be6\u60c5\u770b\u8fd9\u4e2a<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u8001\u7d2b\u7af9\u7684\u5bb6 wp-block-embed-\u8001\u7d2b\u7af9\u7684\u5bb6\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"uGQxiAuBMn\"><a href=\"https:\/\/www.gbase8.cn\/en\/1357\/\">GBase 8a\u589e\u52a0\u5b57\u6bb5\u7684\u957f\u5ea6\u6216\u66f4\u6539\u7c7b\u578b\u5b9a\u4e49<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300aGBase 8a\u589e\u52a0\u5b57\u6bb5\u7684\u957f\u5ea6\u6216\u66f4\u6539\u7c7b\u578b\u5b9a\u4e49\u300b\u2014\u8001\u7d2b\u7af9\u7684\u5bb6\" src=\"https:\/\/www.gbase8.cn\/1357\/embed#?secret=uGQxiAuBMn\" data-secret=\"uGQxiAuBMn\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\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<figure class=\"wp-block-embed is-type-wp-embed is-provider-\u8001\u7d2b\u7af9\u7684\u5bb6 wp-block-embed-\u8001\u7d2b\u7af9\u7684\u5bb6\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"63Xk2KkXfL\"><a href=\"https:\/\/www.gbase8.cn\/en\/1739\/\">GBase 8a\u7684\u6ce8\u91cacomment \u529f\u80fd\u4ecb\u7ecd\uff0c\u66f4\u65b0\u6ce8\u91ca\u7684\u65b9\u6cd5\uff0c\u6700\u5927\u957f\u5ea6\u9650\u5236<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u300aGBase 8a\u7684\u6ce8\u91cacomment \u529f\u80fd\u4ecb\u7ecd\uff0c\u66f4\u65b0\u6ce8\u91ca\u7684\u65b9\u6cd5\uff0c\u6700\u5927\u957f\u5ea6\u9650\u5236\u300b\u2014\u8001\u7d2b\u7af9\u7684\u5bb6\" src=\"https:\/\/www.gbase8.cn\/1739\/embed#?secret=63Xk2KkXfL\" data-secret=\"63Xk2KkXfL\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u4e0d\u652f\u6301\u6539\u52a8\u5b57\u6bb5\u7684\u5b9a\u4e49\uff0c\u9664\u4e86\u53ef\u4ee5\u589e\u52a0varchar\u7684\u957f\u5ea6\uff0c\u5176\u5b83\u7684\u64cd\u4f5c\u90fd\u4f1a\u62a5\u5982\u4e0b\u7684\u9519\u8bef\uff1aERROR 1702 (HY000): gcluster table error: This version of GBase doesn't yet support 'ALTER column definition except increasing length of varchar'.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-5147","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5147","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=5147"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5147\/revisions"}],"predecessor-version":[{"id":5155,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5147\/revisions\/5155"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=5147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=5147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=5147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}