{"id":201065,"date":"2025-05-06T08:01:03","date_gmt":"2025-05-06T00:01:03","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201065\/"},"modified":"2025-05-06T08:01:03","modified_gmt":"2025-05-06T00:01:03","slug":"mysql%e4%b8%ad%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e4%b8%8d%e4%b8%80%e8%87%b4%e4%b9%9f%e8%83%bd%e6%9f%a5%e8%af%a2%e6%88%90%e5%8a%9f%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201065\/","title":{"rendered":"MySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5\u8be2\u6210\u529f\uff1a\u4e3a\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>MySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5\u8be2\u6210\u529f\uff1a\u4e3a\u4ec0\u4e48\uff1f<\/h1>\n<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5206\u4eab\u300aMySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5\u8be2\u6210\u529f\uff1a\u4e3a\u4ec0\u4e48\uff1f\u300b\uff0c\u8986\u76d6\u4e86\u6570\u636e\u5e93\u7684\u5e38\u89c1\u57fa\u7840\u77e5\u8bc6\uff0c\u5176\u5b9e\u4e00\u4e2a\u8bed\u8a00\u7684\u5168\u90e8\u77e5\u8bc6\u70b9\u4e00\u7bc7\u6587\u7ae0\u662f\u4e0d\u53ef\u80fd\u8bf4\u5b8c\u7684\uff0c\u4f46\u5e0c\u671b\u901a\u8fc7\u8fd9\u4e9b\u95ee\u9898\uff0c\u8ba9\u8bfb\u8005\u5bf9\u81ea\u5df1\u7684\u638c\u63e1\u7a0b\u5ea6\u6709\u4e00\u5b9a\u7684\u8ba4\u8bc6(B \u6570)\uff0c\u4ece\u800c\u5f25\u8865\u81ea\u5df1\u7684\u4e0d\u8db3\uff0c\u66f4\u597d\u7684\u638c\u63e1\u5b83\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241129\/17328420546749124674711.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>MySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5\u8be2\u6210\u529f\uff1a\u9690\u5f0f\u8f6c\u6362<\/strong><\/p>\n<p>\u5728\u95ee\u9898\u4e2d\uff0cstudents\u8868\u4e2d\u7684gender\u5217\u4e3aint\u7c7b\u578b\uff0c\u5374\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u201cM\u201d\u8fdb\u884c\u67e5\u8be2\uff0c\u8fd9\u662f\u56e0\u4e3aMySQL\u4e2d\u4f1a\u53d1\u751f\u6570\u636e\u7c7b\u578b\u7684\u9690\u5f0f\u8f6c\u6362\u3002<\/p>\n<p>\u5f53\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u65f6\uff0cMySQL\u4f1a\u5c06\u8f83\u4f4e\u7cbe\u5ea6\u7684\u6570\u636e\u9690\u5f0f\u8f6c\u6362\u4e3a\u9ad8\u7cbe\u5ea6\u7684\u6570\u636e\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u5728\u95ee\u9898\u4e2d\uff0cint\u7c7b\u578b\u7684gender\u5217\u4f1a\u88ab\u9690\u5f0f\u8f6c\u6362\u4e3avarchar\u6570\u636e\u7c7b\u578b\uff0c\u4ee5\u5339\u914dwhere\u6761\u4ef6\u4e2d\u5b57\u7b26\u4e32\u201cM\u201d\u3002<\/p>\n<p>\u8fd9\u79cd\u9690\u5f0f\u8f6c\u6362\u662f\u4e3a\u4e86\u786e\u4fdd\u67e5\u8be2\u7684\u7075\u6d3b\u6027\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b83\u4e5f\u53ef\u80fd\u5bfc\u81f4\u610f\u5916\u7684\u7ed3\u679c\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5e94\u5c3d\u91cf\u4f7f\u7528\u4e00\u81f4\u7684\u6570\u636e\u7c7b\u578b\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u9690\u5f0f\u8f6c\u6362\u3002<\/p>\n<p>\u6587\u4e2d\u5173\u4e8e\u7684\u77e5\u8bc6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u5bf9\u4f60\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01\u82e5\u662f\u53d7\u76ca\u532a\u6d45\uff0c\u90a3\u5c31\u52a8\u52a8\u9f20\u6807\u6536\u85cf\u8fd9\u7bc7\u300aMySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5\u8be2\u6210\u529f\uff1a\u4e3a\u4ec0\u4e48\uff1f\u300b\u6587\u7ae0\u5427\uff0c\u4e5f\u53ef\u5173\u6ce8\u4e3b\u673a\u5b9d\u8d1d\u516c\u4f17\u53f7\u4e86\u89e3\u76f8\u5173\u6280\u672f\u6587\u7ae0\u3002<\/p>\n<dl>\n<dt>\n <\/dt>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u4e2d\u6570\u636e\u7c7b\u578b\u4e0d\u4e00\u81f4\u4e5f\u80fd\u67e5&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-201065","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=201065"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201065\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}