{"id":5382,"date":"2020-07-30T00:04:14","date_gmt":"2020-07-29T16:04:14","guid":{"rendered":"http:\/\/39.97.231.10\/?p=5382"},"modified":"2020-07-30T00:04:14","modified_gmt":"2020-07-29T16:04:14","slug":"mysql-8-0-%e6%96%b0%e5%a2%9e%e7%9a%84%e5%85%b3%e9%94%ae%e5%ad%97keywords%e5%92%8c%e4%bf%9d%e7%95%99%e5%ad%97reserved-words","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=5382","title":{"rendered":"MySQL 8.0 \u65b0\u589e\u7684\u5173\u952e\u5b57(Keywords)\u548c\u4fdd\u7559\u5b57(Reserved Words)"},"content":{"rendered":"<div>\nMySQL \u5173\u952e\u5b57\u548c\u4fdd\u7559\u5b57\u901a\u5e38\u5728SQL\u8bed\u53e5\u4e2d\u6709\u7279\u6b8a\u7684\u610f\u4e49\uff0c\u6bd4\u5982SELECT\uff0cDELETE\uff0cBIGINT\u7b49\u7b49\uff0c\u5982\u679c\u8981\u4f7f\u7528\u8fd9\u4e9b\u5173\u952e\u5b57\u6216\u8005\u4fdd\u7559\u5b57\u4f5c\u4e3a\u8868\u540d\u3001\u5b57\u6bb5\u540d\uff0c\u9700\u8981\u4f7f\u7528\u5f15\u53f7\u6765\u6807\u8bc6\uff0c\u5426\u5219\u5c06\u4f1a\u62a5\u9519\u3002\n<\/div>\n<div>\n<div>\n<pre>mysql&gt; CREATE TABLE interval (begin INT, end INT);\nERROR 1064 (42000): You have an error in your SQL syntax ... near \\'interval (begin INT, end INT)\\'\nmysql&gt; CREATE TABLE `interval` (begin INT, end INT);\nQuery OK, 0 rows affected (0.01 sec)\n<\/pre>\n<h5>\u4e00\u3001MySQL 8.0 \u65b0\u589e\u7684\u5173\u952e\u5b57\u548c\u4fdd\u7559\u5b57<\/h5>\n<p>\u5e26(R)\u6807\u8bc6\u7684\u4e3a\u4fdd\u7559\u5b57\u3002<\/p>\n<ul>\n<li>ACTIVE<\/li>\n<li>ADMIN<\/li>\n<li>ARRAY<\/li>\n<li>ATTRIBUTE<\/li>\n<li>BUCKETS<\/li>\n<li>CLONE<\/li>\n<li>COMPONENT<\/li>\n<li>CUME_DIST\u00a0(R)<\/li>\n<li>DEFINITION<\/li>\n<li>DENSE_RANK\u00a0(R)<\/li>\n<li>DESCRIPTION<\/li>\n<li>EMPTY\u00a0(R)<\/li>\n<li>ENFORCED<\/li>\n<li>ENGINE_ATTRIBUTE<\/li>\n<li>EXCEPT\u00a0(R)<\/li>\n<li>EXCLUDE<\/li>\n<li>FAILED_LOGIN_ATTEMPTS<\/li>\n<li>FIRST_VALUE\u00a0(R)<\/li>\n<li>FOLLOWING<\/li>\n<li>GEOMCOLLECTION<\/li>\n<li>GET_MASTER_PUBLIC_KEY<\/li>\n<li>GROUPING\u00a0(R)<\/li>\n<li>GROUPS\u00a0(R)<\/li>\n<li>HISTOGRAM<\/li>\n<li>HISTORY<\/li>\n<li>INACTIVE<\/li>\n<li>INVISIBLE<\/li>\n<li>JSON_TABLE\u00a0(R)<\/li>\n<li>JSON_VALUE<\/li>\n<li>LAG\u00a0(R)<\/li>\n<li>LAST_VALUE\u00a0(R)<\/li>\n<li>LATERAL\u00a0(R)<\/li>\n<li>LEAD\u00a0(R)<\/li>\n<li>LOCKED<\/li>\n<li>MANAGED<\/li>\n<li>MASTER_COMPRESSION_ALGORITH<\/li>\n<li>MSMASTER_PUBLIC_KEY_PATH<\/li>\n<li>MASTER_TLS_CIPHERSUITES<\/li>\n<li>MASTER_ZSTD_COMPRESSION_LEVEL<\/li>\n<li>MEMBER<\/li>\n<li>NESTED<\/li>\n<li>NETWORK_NAMESPACE<\/li>\n<li>NOWAIT<\/li>\n<li>NTH_VALUE\u00a0(R)<\/li>\n<li>NTILE\u00a0(R)<\/li>\n<li>NULLS<\/li>\n<li>OF\u00a0(R)<\/li>\n<li>OFF<\/li>\n<li>OJ<\/li>\n<li>OLD<\/li>\n<li>OPTIONAL<\/li>\n<li>ORDINALITY<\/li>\n<li>ORGANIZATION<\/li>\n<li>OTHERS<\/li>\n<li>OVER\u00a0(R)<\/li>\n<li>PASSWORD_LOCK_TIME<\/li>\n<li>PATH<\/li>\n<li>PERCENT_RANK\u00a0(R)<\/li>\n<li>PERSIST<\/li>\n<li>PERSIST_ONLY<\/li>\n<li>PRECEDING<\/li>\n<li>PRIVILEGE_CHECKS_USER<\/li>\n<li>PROCESS<\/li>\n<li>RANDOM<\/li>\n<li>RANK\u00a0(R)<\/li>\n<li>RECURSIVE\u00a0(R)<\/li>\n<li>REFERENCE<\/li>\n<li>REQUIRE_ROW_FORMAT<\/li>\n<li>RESOURCE<\/li>\n<li>RESPECT<\/li>\n<li>RESTART<\/li>\n<li>RETAIN<\/li>\n<li>RETURNING<\/li>\n<li>REUSE<\/li>\n<li>ROLE<\/li>\n<li>ROW_NUMBER\u00a0(R)<\/li>\n<li>SECONDARY<\/li>\n<li>SECONDARY_ENGINE<\/li>\n<li>SECONDARY_ENGINE_ATTRIBUTE<\/li>\n<li>SECONDARY_LOAD<\/li>\n<li>SECONDARY_UNLOAD<\/li>\n<li>SKIP<\/li>\n<li>SRID<\/li>\n<li>STREAM<\/li>\n<li>SYSTEM\u00a0(R)<\/li>\n<li>THREAD_PRIORITY<\/li>\n<li>TIES<\/li>\n<li>TLS<\/li>\n<li>UNBOUNDED<\/li>\n<li>VCPU<\/li>\n<li>VISIBLE<\/li>\n<li>WINDOW\u00a0(R)<\/li>\n<\/ul>\n<h5>\u4e8c\u3001MySQL 8.0 \u79fb\u9664\u7684\u5173\u952e\u5b57\u548c\u4fdd\u7559\u5b57<\/h5>\n<ul>\n<li>ANALYSE<\/li>\n<li>DES_KEY_FILE<\/li>\n<li>PARSE_GCOL_EXPR<\/li>\n<li>REDOFILE<\/li>\n<li>SQL_CACHE<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u5173\u952e\u5b57\u548c\u4fdd\u7559\u5b57\u901a\u5e38\u5728SQL\u8bed\u53e5\u4e2d\u6709\u7279\u6b8a\u7684\u610f\u4e49\uff0c\u6bd4\u5982SELECT\uff0cDELETE\uff0cBIGINT\u7b49\u7b49\uff0c\u5982 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=5382\"> <span class=\"screen-reader-text\">MySQL 8.0 \u65b0\u589e\u7684\u5173\u952e\u5b57(Keywords)\u548c\u4fdd\u7559\u5b57(Reserved Words)<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[90,88],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"MySQL \u5173\u952e\u5b57\u548c\u4fdd\u7559\u5b57\u901a\u5e38\u5728SQL\u8bed\u53e5\u4e2d\u6709\u7279\u6b8a\u7684\u610f\u4e49\uff0c\u6bd4\u5982SELECT\uff0cDELETE\uff0cBIGINT\u7b49\u7b49\uff0c\u5982&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5382"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5382"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/5382\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5382"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}