{"id":4216,"date":"2019-05-07T16:02:06","date_gmt":"2019-05-07T08:02:06","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=4216"},"modified":"2019-05-07T16:02:06","modified_gmt":"2019-05-07T08:02:06","slug":"mysql-%e4%b8%ad%ef%bc%8c%e4%b8%ba%e4%bb%80%e4%b9%88%e6%9c%89%e4%ba%9b%e6%95%b0%e6%8d%ae%e5%ba%93%e5%9c%a8%e5%8c%b9%e9%85%8d%e5%ad%97%e7%ac%a6%e6%97%b6%e4%b8%8d%e5%8c%ba%e5%88%86%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4216","title":{"rendered":"MySQL \u4e2d\uff0c\u4e3a\u4ec0\u4e48\u6709\u4e9b\u6570\u636e\u5e93\u5728\u5339\u914d\u5b57\u7b26\u65f6\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff1f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8fd9\u5176\u5b9e\u662f\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u4f46\u5c0f\u95ee\u9898\u5f80\u5f80\u662f\u4e00\u4e2a\u9ad8\u9891\u95ee\u9898\u3002\u6211\u6562\u6253\u8d4c\uff0c\u5f88\u591a\u7f51\u7ad9\u7684\u6570\u636e\u5e93\u8bbe\u8ba1\u8005\u53ef\u80fd\u90fd\u6ca1\u6709\u6ce8\u610f\u8fd9\u4e2a\u7ec6\u8282\u3002\u4e0d\u4fe1\uff0c\u4f60\u53bb\u8bd5\u4e00\u8bd5\u5927\u591a\u6570\u7f51\u7ad9\u7684\u767b\u5f55\uff0c\u8d26\u53f7\u5982\u679c\u662f\u90ae\u7bb1\uff0c\u6216\u8005\u662f\u540d\u79f0\u7684\uff0c\u4f60\u53ef\u4ee5\u770b\u770b\u662f\u5426\u533a\u5206\u5927\u5c0f\u5199\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9020\u6210\u8fd9\u4e2a\u95ee\u9898\u7684\u539f\u56e0\u662f\uff0c\u6211\u4eec\u7ecf\u5e38\u518d\u8bb2 select\u3001insert \u4e4b\u7c7b\u7684 SQL \u8bed\u53e5\uff0c\u800c\u5bf9\u4e8e\u521b\u5efa\u6570\u636e\u5e93\uff0c\u8868\u4e4b\u7c7b\u7684\u4e00\u4e9b\u5e38\u89c4\u914d\u7f6e\u9879\u8fd8\u4e0d\u592a\u7406\u89e3\u3002\u901a\u5e38\u4f60\u5728\u770b\u4e66\uff0c\u6216\u8005\u662f\u8001\u5e08\u6559\u4f60\u65f6\uff0c\u5728\u521b\u5efa\u6570\u636e\u5e93\u65f6\uff0c\u76f4\u63a5\u8bf4\u9009\u62e9\u9ed8\u8ba4\u7684\u5c31\u53ef\u4ee5\u3002\u4e00\u7b14\u5e26\u8fc7\uff01<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws4.sinaimg.cn\/large\/8fa5dcfcgy1g2st1lj5jaj20bm04l3yw.jpg\" alt=\"\" \/><figcaption>\u521b\u5efa\u6570\u636e\u5e93<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u719f\u6089\u7684\u964c\u751f\u4eba\uff01\u5f80\u5f80\u662f\u8fd9\u4e2a\u4e00\u7b14\u5e26\u8fc7\u628a\u6211\u4eec\u5e26\u5230\u5751\u91cc\u4e86\u3002\u56e0\u4e3a\u6211\u4eec\u5728\u521b\u5efa\u8868\u6216\u6570\u636e\u5e93\u7684\u65f6\u5019\uff0c\u9ed8\u8ba4\u7684\u6392\u5e8f\u89c4\u5219\u5c31\u662f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">MySQL \u6709\u5f88\u591a\u9ed8\u8ba4\u7684\u6392\u5e8f\u89c4\u5219\u7684\uff0c\u5e76\u4e14\u4e0d\u540c\u7684\u5b57\u7b26\u96c6\u6709\u4e0d\u540c\u7684\u6392\u5e8f\u89c4\u5219\uff0c\u4f46\u5b83\u4eec\u4e5f\u662f\u6709\u89c4\u5f8b\u53ef\u5faa\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684 SQL \u8bed\u53e5\u6765\u67e5\u770b\u5bf9\u5e94\u5b57\u7b26\u96c6\u7684\u9ed8\u8ba4\u6392\u5e8f\u89c4\u5219\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SHOW COLLATION LIKE 'utf8\\_%';<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1g2st2pnpmpj20fu091t9w.jpg\" alt=\"\" \/><figcaption>SHOW COLLATION LIKE &#8216;utf8_%&#8217;;<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a Collation \u5176\u5b9e\u975e\u5e38\u7684\u6709\u89c4\u5f8b\u3002\u7b2c\u4e00\u4e2a\u201c-\u201d\u524d\u9762\u662f\u5bf9\u5e94\u7684\u5b57\u7b26\u96c6\uff1b\u4e2d\u95f4\u662f\u8bed\u8a00\uff0c\u5404\u4e2a\u56fd\u5bb6\u652f\u6301\u7684\u8bed\u8a00\uff1b\u6700\u540e\u9762\u7684\u201dci\u201d\u4ee3\u8868\u6bd4\u8f83\u89c4\u5219\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws4.sinaimg.cn\/large\/8fa5dcfcgy1g2st3soejyj20bb08374u.jpg\" alt=\"\" \/><figcaption>MySQL\u5b57\u7b26\u96c6\u6392\u5e8f\u89c4\u5219<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u9ed8\u8ba4\u9009\u62e9\u7684\u662f utf8_general_ci\uff0c\u6216\u8005\u662f xx_general_ci\uff0c\u90a3\u5b83\u5c31\u4e0d\u4f1a\u533a\u5206\u5927\u5c0f\u5199\u3002\u60f3\u8981\u533a\u5206\u5927\u5c0f\u5199\uff0c\u5c31\u8981\u9009\u62e9\u4ee5\u201d_cs\u201d\u7ed3\u5c3e\u7684\u6392\u5e8f\u89c4\u5219\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\uff0c\u5e0c\u671b\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u89e3\u51b3\u4e00\u4e9b\u5b9e\u9645\u5de5\u4f5c\u4e2d\u7684\u95ee\u9898\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4216\">MySQL \u4e2d\uff0c\u4e3a\u4ec0\u4e48\u6709\u4e9b\u6570\u636e\u5e93\u5728\u5339\u914d\u5b57\u7b26\u65f6\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff1f<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u5176\u5b9e\u662f\u4e00\u4e2a\u5c0f\u95ee\u9898\uff0c\u4f46\u5c0f\u95ee\u9898\u5f80\u5f80\u662f\u4e00\u4e2a\u9ad8\u9891\u95ee\u9898\u3002\u6211\u6562\u6253\u8d4c\uff0c\u5f88\u591a\u7f51\u7ad9\u7684\u6570\u636e\u5e93\u8bbe\u8ba1\u8005\u53ef\u80fd\u90fd\u6ca1\u6709\u6ce8\u610f\u8fd9\u4e2a\u7ec6\u8282\u3002\u4e0d\u4fe1\uff0c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[83,580,447,1154,681],"class_list":["post-4216","post","type-post","status-publish","format-standard","hentry","category-sql","tag-mysql","tag-mysql----dba","tag-nginx","tag-681"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4216"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4216\/revisions"}],"predecessor-version":[{"id":4217,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4216\/revisions\/4217"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}