{"id":1724,"date":"2023-06-19T18:07:44","date_gmt":"2023-06-19T10:07:44","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1724"},"modified":"2023-06-19T18:07:44","modified_gmt":"2023-06-19T10:07:44","slug":"9%e5%a4%a7%e8%a1%a8%e8%ae%be%e8%ae%a1%e4%bc%98%e5%8c%96%e6%96%b9%e6%b3%95%ef%bc%8c%e8%ae%a9-mysql-%e6%80%a7%e8%83%bd%e9%a3%9e%e5%8d%87%ef%bc%81","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/mysql\/9%e5%a4%a7%e8%a1%a8%e8%ae%be%e8%ae%a1%e4%bc%98%e5%8c%96%e6%96%b9%e6%b3%95%ef%bc%8c%e8%ae%a9-mysql-%e6%80%a7%e8%83%bd%e9%a3%9e%e5%8d%87%ef%bc%81\/","title":{"rendered":"9\u5927\u8868\u8bbe\u8ba1\u4f18\u5316\u65b9\u6cd5\uff0c\u8ba9 MySQL \u6027\u80fd\u98de\u5347\uff01"},"content":{"rendered":"<div class='wxsyncmain'>\n<p data-track=\"1\" data-pm-slice=\"0 0 []\"><span style=\"font-size: 16px;\"><strong>\u8868\u8bbe\u8ba1\u4f18\u5316<\/strong>\uff0c\u662f <strong>MySQL \u8c03\u4f18<\/strong>\u4e2d\u81f3\u5173\u91cd\u8981\u7684\u4e00\u4e2a\u73af\u8282\uff0c\u4e5f\u662f<strong>\u5927\u5382\u9ad8\u9891\u9762\u8bd5\u9898<\/strong>\u4e4b\u4e00\u3002<\/span><\/p>\n<p data-track=\"2\"><span style=\"font-size: 16px;\">\u4e00\u4e2a\u4f18\u79c0\u5408\u7406\u7684\u8868\u8bbe\u8ba1\u4f18\u5316\uff0c\u53ef\u4ee5\u6709\u6548\u5730<strong>\u51cf\u5c11\u7ebf\u4e0a\u95ee\u9898<\/strong>\uff0c\u6781\u5927\u5730<strong>\u63d0\u5347 MySQL \u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027<\/strong>\u3002<\/span><\/p>\n<p data-track=\"3\"><span style=\"font-size: 16px;\">\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd 9 \u4e2a\u5e38\u7528\u7684\u4f18\u5316\u8868\u8bbe\u8ba1\u65b9\u6cd5\u3002<\/span><span style=\"font-size: 16px;letter-spacing: 0.034em;\"><\/span><\/p>\n<p data-track=\"261\" style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;background-color: rgb(255, 255, 255);letter-spacing: 0.578px;visibility: visible;\"><strong style=\"outline: 0px;visibility: visible;\"><span style=\"outline: 0px;font-size: 16px;visibility: visible;\">\u6587\u672b\u9001\uff1a<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkzNjQyNTYyMA==&amp;mid=2247484317&amp;idx=1&amp;sn=a6695792e4893901eff2cd7d5363c18a&amp;chksm=c29fa266f5e82b704e1bb67ebbcb7b44ad3cebf307adc767a0e1025d9453ca20233b19c15617&amp;scene=21#wechat_redirect\" textvalue=\"\u300aMySQL \u9762\u8bd5\u8def\u7ebf\u6700\u5168\u6574\u7406\uff08\u9644\u9762\u8bd5\u9898\u7cbe\u9009\u53ca\u7b54\u6848\uff09\u300b\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" class=\"wx_tap_link\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;visibility: visible;\" rel=\"noopener\" rel=\"nofollow\" >\u300aMySQL \u9762\u8bd5\u8def\u7ebf\u6700\u5168\u6574\u7406\uff08\u9644\u9762\u8bd5\u9898\u7cbe\u9009\u53ca\u7b54\u6848\uff09\u300b<\/a><\/span><\/strong><\/p>\n<p data-track=\"261\" style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;background-color: rgb(255, 255, 255);letter-spacing: 0.578px;visibility: visible;\"><span style=\"outline: 0px;font-size: 16px;\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"1.2087378640776698\"  data-type=\"png\" data-w=\"618\" height=\"747\" style=\"outline: 0px;width: 618px !important;visibility: visible !important;\" width=\"618\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.2087378640776698\"  data-type=\"png\" data-w=\"618\" height=\"747\" style=\"outline: 0px;width: 618px !important;visibility: visible !important;\" width=\"618\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png\"  \/><\/noscript><span style=\"font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.034em;\"><\/span><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">01<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u907f\u514d\u6df1\u5206\u9875<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"5\"><span style=\"font-size: 16px;letter-spacing: 0.034em;\">\u4ece MySQL \u4e2d\u67e5\u8be2\u5927\u91cf\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5206\u9875\u6765\u907f\u514d\u4e00\u6b21\u6027\u8fd4\u56de\u5927\u91cf\u7684\u6570\u636e\u3002<\/span><br  \/><\/p>\n<p data-track=\"111\"><span style=\"font-size: 16px;\">\u4f46\u5982\u679c\u5206\u9875\u6df1\u5ea6\u592a\u6df1\uff0c\u5c31\u4f1a\u5f71\u54cd MySQL \u7684\u6027\u80fd\u3002\u56e0\u6b64\uff0c<strong>\u8981\u907f\u514d\u6df1\u5206\u9875\uff0c\u4fdd\u8bc1\u6bcf\u4e00\u9875\u7684\u6570\u636e\u91cf\u4e0d\u8981\u8fc7\u591a\u3002<\/strong><\/span><\/p>\n<p data-track=\"6\"><span style=\"font-size: 16px;\">\u4f8b\u5982\uff1a<\/span><\/p>\n<p data-track=\"7\"><span style=\"font-size: 16px;\">\u6709\u4e00\u4e2a\u7528\u6237\u8868\uff0c\u91cc\u9762\u5b58\u50a8\u4e86 1000 \u4e07\u6761\u7528\u6237\u8bb0\u5f55\u3002<\/span><\/p>\n<p data-track=\"8\"><span style=\"font-size: 16px;\">\u9700\u8981\u5728\u7f51\u9875\u4e0a\u663e\u793a\u7b2c 10000-10020 \u6761\u8bb0\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0bSQL \u67e5\u8be2\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\">SELECT * FROM users LIMIT 10000, 20;<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><\/pre>\n<p data-track=\"10\"><span style=\"font-size: 16px;\">\u9700\u8981\u663e\u793a\u7b2c 9999990-10000010 \u6761\u8bb0\u5f55\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b SQL \u67e5\u8be2\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\">SELECT * FROM users LIMIT 9999990, 20;<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><\/pre>\n<p data-track=\"12\"><span style=\"font-size: 16px;\">\u8fd9\u4e2a\u65f6\u5019\uff0cMySQL \u8981\u626b\u63cf 9999990 \u6761\u8bb0\u5f55\u624d\u80fd\u8fd4\u56de\u7ed3\u679c\uff0c\u8fd9\u5c31\u4e25\u91cd\u5f71\u54cd\u5230\u4e86 MySQL \u7684\u6027\u80fd\u3002<\/span><\/p>\n<p data-track=\"12\"><span style=\"font-size: 16px;\"><br  \/><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">02<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u5355\u8868\u5b57\u6bb5\u4e0d\u8981\u8d85\u8fc730\u4e2a<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"14\"><br  \/><\/p>\n<p data-track=\"14\"><span style=\"font-size: 16px;\"><strong>\u5728\u8bbe\u8ba1\u8868\u7ed3\u6784\u65f6\uff0c\u907f\u514d\u5c06\u8fc7\u591a\u7684\u5b57\u6bb5\u5b58\u50a8\u5728\u5355\u4e2a\u8868\u4e2d\u3002<\/strong><\/span><\/p>\n<p data-track=\"15\"><span style=\"font-size: 16px;\">\u5982\u679c\u4e00\u4e2a\u8868\u4e2d\u7684\u5b57\u6bb5\u592a\u591a\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4 MySQL \u6027\u80fd\u4e0b\u964d\u3001\u5de5\u4f5c\u91cf\u589e\u52a0\u3002<\/span><\/p>\n<blockquote>\n<p data-track=\"16\"><span style=\"font-size: 16px;\">\u4f8b\u5982\uff1a<\/span><\/p>\n<p data-track=\"17\"><span style=\"font-size: 16px;\">\u6709\u4e00\u4e2a\u7528\u6237\u8868\uff0c\u9700\u8981\u5b58\u50a8\u7528\u6237\u7684\u57fa\u672c\u4fe1\u606f\u3001\u8ba2\u5355\u4fe1\u606f\u3001\u6536\u8d27\u5730\u5740\u7b49\u4fe1\u606f\u3002<\/span><\/p>\n<p data-track=\"18\"><span style=\"font-size: 16px;\">\u6211\u4eec\u53ef\u4ee5\u5c06\u7528\u6237\u4fe1\u606f\u3001\u8ba2\u5355\u4fe1\u606f\u3001\u6536\u8d27\u5730\u5740\u4fe1\u606f\u5206\u522b\u5b58\u50a8\u5728 3 \u4e2a\u8868\u4e2d\uff0c\u901a\u8fc7\u5173\u8054\u952e\u8fdb\u884c\u5173\u8054\uff0c\u800c\u4e0d\u662f\u5c06\u8fd9\u4e9b\u4fe1\u606f\u5168\u90e8\u5b58\u50a8\u5728\u4e00\u4e2a\u8868\u4e2d\u3002<\/span><\/p>\n<\/blockquote>\n<h1 spellcheck=\"false\" data-track=\"19\"><\/h1>\n<h1 spellcheck=\"false\" data-track=\"19\"><br  \/><\/h1>\n<p><br  \/><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">03<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u679a\u4e3e\u5b57\u6bb5\u4e0d\u8981\u4f7f\u7528\u5b57\u7b26\u7c7b\u578b<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p data-track=\"20\"><br  \/><\/p>\n<p data-track=\"20\"><span style=\"font-size: 16px;\">\u679a\u4e3e\u5b57\u6bb5\u901a\u5e38\u662f<strong>\u6307\u4e00\u79cd\u5177\u6709\u9884\u5b9a\u4e49\u53d6\u503c\u96c6\u5408\u7684\u5b57\u6bb5\u7c7b\u578b<\/strong>\u3002<\/span><\/p>\n<p data-track=\"21\"><span style=\"font-size: 16px;\">\u5728 MySQL \u4e2d\uff0c\u679a\u4e3e\u5b57\u6bb5\u901a\u5e38\u88ab\u7528\u4e8e\u8868\u793a\u67d0\u4e2a\u5b57\u6bb5\u53ea\u6709\u56fa\u5b9a\u51e0\u4e2a\u503c\u53ef\u9009\u7684\u60c5\u51b5\u3002<\/span><\/p>\n<p data-track=\"112\"><span style=\"font-size: 16px;\">\u5982\u679c\u4f7f\u7528\u5b57\u7b26\u7c7b\u578b\u6765\u4ee3\u66ff\u679a\u4e3e\u7c7b\u578b\u53bb\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u4f1a\u5bfc\u81f4\u5b58\u50a8\u7a7a\u95f4\u6d6a\u8d39\u3001\u67e5\u8be2\u6027\u80fd\u964d\u4f4e\u3002<\/span><\/p>\n<p data-track=\"22\"><span style=\"font-size: 16px;\"><strong>\u4f7f\u7528\u5b57\u7b26\u7c7b\u578b\u5e26\u6765\u7684\u95ee\u9898\uff1a<\/strong><\/span><\/p>\n<p data-track=\"23\"><span style=\"font-size: 16px;\"><strong>1\uff09\u5360\u7528\u66f4\u591a\u7684\u5b58\u50a8\u7a7a\u95f4<\/strong><\/span><\/p>\n<p data-track=\"24\"><span style=\"font-size: 16px;\">\u4f7f\u7528\u5b57\u7b26\u7c7b\u578b\u6765\u5b58\u50a8\u679a\u4e3e\u5b57\u6bb5\u4f1a\u5360\u7528\u66f4\u591a\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u5c24\u5176\u662f\u5728\u8be5\u5b57\u6bb5\u6709\u5927\u91cf\u53d6\u503c\u65f6\u3002<\/span><\/p>\n<p data-track=\"25\"><span style=\"font-size: 16px;\"><strong>2\uff09\u67e5\u8be2\u6548\u7387\u4f4e\u4e0b<\/strong><\/span><\/p>\n<p data-track=\"26\"><span style=\"font-size: 16px;\">\u4f7f\u7528\u5b57\u7b26\u7c7b\u578b\u7684\u679a\u4e3e\u5b57\u6bb5\uff0c\u7531\u4e8e\u9700\u8981\u5bf9\u5b57\u7b26\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\uff0c\u56e0\u6b64\u67e5\u8be2\u6548\u7387\u901a\u5e38\u4f1a\u6bd4\u4f7f\u7528\u771f\u6b63\u7684\u679a\u4e3e\u7c7b\u578b\u8981\u4f4e\u3002<\/span><\/p>\n<p data-track=\"27\"><span style=\"font-size: 16px;\"><strong>\u90a3\u4e48\uff0c\u5982\u4f55\u4f7f\u7528\u771f\u6b63\u7684\u679a\u4e3e\u7c7b\u578b\u5462\uff1f<\/strong><\/span><\/p>\n<p data-track=\"28\"><span style=\"font-size: 16px;\"><strong>1\uff09\u4f7f\u7528 ENUM \u7c7b\u578b<\/strong><\/span><\/p>\n<p data-track=\"29\"><span style=\"font-size: 16px;\">ENUM \u7c7b\u578b\u662f MySQL \u4e2d\u7684\u4e00\u79cd\u5217\u7c7b\u578b\uff0c\u5b83\u5141\u8bb8\u5217\u7684\u503c\u4e3a\u9884\u5b9a\u4e49\u7684\u503c\u4e4b\u4e00\u3002<\/span><\/p>\n<p data-track=\"30\"><span style=\"font-size: 16px;\">\u4f7f\u7528 ENUM \u7c7b\u578b\u53ef\u4ee5\u786e\u4fdd\u5217\u7684\u503c\u53ea\u80fd\u662f\u9884\u5b9a\u4e49\u7684\u503c\uff0c\u800c\u4e14\u5b58\u50a8\u7a7a\u95f4\u6bd4\u5b57\u7b26\u7c7b\u578b\u8981\u5c0f\u3002<\/span><\/p>\n<p data-track=\"31\"><span style=\"font-size: 16px;\"><strong>2\uff09\u907f\u514d\u5b9a\u4e49\u8fc7\u591a\u7684\u53d6\u503c<\/strong><\/span><\/p>\n<p data-track=\"32\"><span style=\"font-size: 16px;\">\u679a\u4e3e\u5b57\u6bb5\u7684\u53d6\u503c\u4e0d\u5e94\u8be5\u592a\u591a\uff0c\u4e00\u822c\u5efa\u8bae\u5728 5 \u4e2a\u4ee5\u5185\u3002\u5426\u5219\uff0c\u679a\u4e3e\u7c7b\u578b\u7684\u6027\u80fd\u4f18\u52bf\u5c31\u4f1a\u4e27\u5931\u3002<\/span><\/p>\n<p data-track=\"33\"><span style=\"font-size: 16px;\"><strong>3\uff09\u907f\u514d\u5728 WHERE \u5b50\u53e5\u4e2d\u4f7f\u7528\u679a\u4e3e\u7c7b\u578b<\/strong><\/span><\/p>\n<p data-track=\"34\"><span style=\"font-size: 16px;\">\u679a\u4e3e\u7c7b\u578b\u5728 WHERE \u5b50\u53e5\u4e2d\u4f7f\u7528\u65f6\uff0c\u9700\u8981\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u6570\u8fdb\u884c\u6bd4\u8f83\uff0c\u8fd9\u4f1a\u5f71\u54cd\u67e5\u8be2\u6548\u7387\u3002<\/span><\/p>\n<p data-track=\"35\"><span style=\"font-size: 16px;\">\u793a\u4f8b\uff1a\u4f7f\u7528 ENUM \u7c7b\u578b\u6765\u5b58\u50a8\u679a\u4e3e\u5b57\u6bb5\u3002<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">CREATE<\/span> <span class=\"code-snippet__keyword\">TABLE<\/span> orders (<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">id<\/span> <span class=\"code-snippet__built_in\">INT<\/span> PRIMARY <span class=\"code-snippet__keyword\">KEY<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">status<\/span> ENUM(<span class=\"code-snippet__string\">'pending'<\/span>, <span class=\"code-snippet__string\">'approved'<\/span>, <span class=\"code-snippet__string\">'rejected'<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    customer_id <span class=\"code-snippet__built_in\">INT<\/span> <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    order_date <span class=\"code-snippet__built_in\">DATE<\/span> <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">    amount <span class=\"code-snippet__built_in\">DECIMAL<\/span>(<span class=\"code-snippet__number\">10<\/span>,<span class=\"code-snippet__number\">2<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">);<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><\/span><\/code><\/pre>\n<p data-track=\"37\"><span style=\"font-size: 16px;\">\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0corders \u8868\u4e2d\u7684 status \u5217\u53ea\u80fd\u53d6\u4e09\u4e2a\u503c\u4e4b\u4e00\uff1apending\u3001approved\u3001rejected\u3002<\/span><\/p>\n<p data-track=\"38\"><span style=\"font-size: 16px;\">\u4f7f\u7528ENUM\u7c7b\u578b\uff0c\u53ef\u786e\u4fdd\u5217\u7684\u503c\u53ea\u80fd\u662f\u9884\u5b9a\u4e49\u7684\u503c\u4e4b\u4e00\uff0c\u5b58\u50a8\u7a7a\u95f4\u4e5f\u8981\u6bd4\u5b57\u7b26\u7c7b\u578b\u5c0f\u3002<\/span><\/p>\n<p data-track=\"39\"><span style=\"font-size: 16px;\">\u7efc\u4e0a\u6240\u8ff0\uff1a<\/span><\/p>\n<p data-track=\"40\"><span style=\"font-size: 16px;\"><strong>\u5f53\u9700\u8981\u4f7f\u7528\u679a\u4e3e\u7c7b\u578b\u65f6\uff0c\u5c3d\u53ef\u80fd\u4f7f\u7528 ENUM \u7c7b\u578b<\/strong>\u3002\u8fd9\u6837\u65e2\u907f\u514d\u4e86\u5b58\u50a8\u7a7a\u95f4\u7684\u6d6a\u8d39\uff0c\u540c\u65f6\u53c8\u63d0\u9ad8\u4e86\u67e5\u8be2\u6027\u80fd\u3002<\/span><\/p>\n<p data-track=\"40\"><span style=\"font-size: 16px;\"><br  \/><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">04<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u5c0f\u6570\u7c7b\u578b\u7981\u6b62\u4f7f\u7528 float \u548c double&nbsp;<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"42\"><span style=\"font-size: 16px;\">\u5728 MySQL \u4e2d\uff0c<strong>\u5c0f\u6570\u7c7b\u578b<\/strong>\u5305\u62ec float\u3001double\u3001decimal\u3002<\/span><\/p>\n<p data-track=\"43\"><span style=\"font-size: 16px;\">\u867d\u7136 float \u548c double \u53ef\u4ee5\u5b58\u50a8\u6bd4 decimal \u66f4\u5927\u7684\u6570\u503c\uff0c\u4f46\u5b83\u4eec\u7684\u7cbe\u5ea6\u95ee\u9898\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8ba1\u7b97\u7ed3\u679c\u51fa\u9519\u3002<\/span><\/p>\n<p data-track=\"44\"><span style=\"font-size: 16px;\"><strong>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u8ba1\u7b97\u7ed3\u679c\u7684\u7cbe\u5ea6\uff0c\u901a\u5e38\u907f\u514d\u4f7f\u7528 float \u548c double \u7c7b\u578b\uff0c\u5e76\u4e14\u5c3d\u53ef\u80fd\u4f7f\u7528 decimal \u7c7b\u578b\u3002<\/strong><\/span><\/p>\n<p data-track=\"45\"><span style=\"font-size: 16px;\">\u4f8b\u5982\uff1a<\/span><\/p>\n<p data-track=\"46\"><span style=\"font-size: 16px;\">\u5047\u8bbe\u6211\u4eec\u9700\u8981\u8ba1\u7b97\u4e00\u4e2a\u5546\u54c1\u7684\u6298\u6263\u4ef7\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u8bed\u53e5\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">SELECT<\/span> price * discount <span class=\"code-snippet__keyword\">FROM<\/span> product;<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><\/span><\/code><\/pre>\n<p data-track=\"48\"><span style=\"font-size: 16px;\">\u5982\u679c price \u662f float \u7c7b\u578b\uff0cdiscount \u662f double \u7c7b\u578b\uff0c\u90a3\u4e48\u8ba1\u7b97\u7ed3\u679c\u5c31\u53ef\u80fd\u51fa\u9519\u3002<\/span><\/p>\n<p data-track=\"49\"><span style=\"font-size: 16px;\">\u56e0\u6b64\uff0c\u6211\u4eec\u5e94\u8be5\u5c06 price \u548c discount \u90fd\u8bbe\u7f6e\u4e3a decimal \u7c7b\u578b\u3002<\/span><\/p>\n<p data-track=\"49\"><span style=\"font-size: 16px;\"><br  \/><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">05<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u6240\u6709\u5b57\u6bb5\u5fc5\u987b\u8bbe\u7f6e\u9ed8\u8ba4\u503c\u3001\u5e76\u4e14\u4e0d\u5141\u8bb8\u4e3a null<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"51\"><span style=\"font-size: 16px;\">\u5728 MySQL \u4e2d\uff0c\u5b57\u6bb5\u53ef\u4ee5\u8bbe\u7f6e\u9ed8\u8ba4\u503c\u548c\u662f\u5426\u5141\u8bb8\u4e3a null \u3002<\/span><\/p>\n<p data-track=\"52\"><span style=\"font-size: 16px;\">\u5982\u679c\u4e00\u4e2a\u5b57\u6bb5\u6ca1\u6709\u8bbe\u7f6e\u9ed8\u8ba4\u503c\uff0c\u800c\u4e14\u5141\u8bb8\u4e3a null\uff0c\u90a3\u4e48\u5728\u63d2\u5165\u6570\u636e\u65f6\uff0c\u5982\u679c\u4e0d\u663e\u5f0f\u5730\u6307\u5b9a\u8be5\u5b57\u6bb5\u7684\u503c\uff0c\u90a3\u4e48\u8be5\u5b57\u6bb5\u7684\u503c\u5c31\u4f1a\u662f null\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u9519\u8bef\u6216\u903b\u8f91\u6df7\u4e71\u3002<\/span><\/p>\n<p data-track=\"53\"><span style=\"font-size: 16px;\"><strong>\u6b63\u786e\u7684\u64cd\u4f5c\u662f\uff0c\u5c06\u6240\u6709\u7684\u5b57\u6bb5\u90fd\u8bbe\u7f6e\u9ed8\u8ba4\u503c\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u4e3anull\u3002<\/strong><\/span><\/p>\n<p data-track=\"54\"><span style=\"font-size: 16px;\">\u5982\u679c\u4e00\u4e2a\u5b57\u6bb5\u6ca1\u6709\u8bbe\u7f6e\u9ed8\u8ba4\u503c\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u5408\u7406\u7684\u9ed8\u8ba4\u503c\uff0c\u4ee5\u514d\u5728\u63d2\u5165\u6570\u636e\u65f6\u51fa\u73b0\u9519\u8bef\u3002\u5982\u679c\u4e00\u4e2a\u5b57\u6bb5\u5fc5\u987b\u5141\u8bb8\u4e3a null\uff0c\u90a3\u4e48\u5c31\u8981\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u5408\u7406\u7684\u5224\u65ad\uff0c\u907f\u514d\u51fa\u73b0 null \u503c\u3002<\/span><\/p>\n<p data-track=\"55\"><span style=\"font-size: 16px;\">\u4f8b\u5982\uff1a<\/span><\/p>\n<p data-track=\"56\"><span style=\"font-size: 16px;\">\u5047\u8bbe\u6709\u4e00\u4e2a user \u8868\uff0c\u5176\u4e2d\u5305\u62ec id\u3001name \u3001age \u5b57\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u8bed\u53e5\u521b\u5efa\u8be5\u8868\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">CREATE<\/span> <span class=\"code-snippet__keyword\">TABLE<\/span> <span class=\"code-snippet__keyword\">user<\/span> (<\/span><\/code><code><span class=\"code-snippet_outer\">  <span class=\"code-snippet__keyword\">id<\/span> <span class=\"code-snippet__built_in\">INT<\/span> <span class=\"code-snippet__keyword\">UNSIGNED<\/span> <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span> AUTO_INCREMENT PRIMARY <span class=\"code-snippet__keyword\">KEY<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">  <span class=\"code-snippet__keyword\">name<\/span> <span class=\"code-snippet__built_in\">VARCHAR<\/span>(<span class=\"code-snippet__number\">50<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span> <span class=\"code-snippet__keyword\">DEFAULT<\/span> <span class=\"code-snippet__string\">''<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">  age <span class=\"code-snippet__built_in\">TINYINT<\/span> <span class=\"code-snippet__keyword\">UNSIGNED<\/span> <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span> <span class=\"code-snippet__keyword\">DEFAULT<\/span> <span class=\"code-snippet__number\">0<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">) <span class=\"code-snippet__keyword\">ENGINE<\/span>=<span class=\"code-snippet__keyword\">InnoDB<\/span>;<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><\/span><\/code><\/pre>\n<p data-track=\"58\"><span style=\"font-size: 16px;letter-spacing: 0.034em;\">\u5728\u8fd9\u4e2a\u8868\u4e2d\uff1a<\/span><br  \/><\/p>\n<p data-track=\"59\"><span style=\"font-size: 16px;\">id \u5b57\u6bb5\u8bbe\u7f6e\u4e3a\u4e3b\u952e\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u4e3a null \u3002<\/span><\/p>\n<p data-track=\"60\"><span style=\"font-size: 16px;\">name \u5b57\u6bb5\u548c age \u5b57\u6bb5\u90fd\u8bbe\u7f6e\u4e86\u9ed8\u8ba4\u503c\uff0c\u5e76\u4e14\u4e0d\u5141\u8bb8\u4e3a null\u3002<\/span><\/p>\n<p data-track=\"61\"><span style=\"font-size: 16px;\">\u8fd9\u6837\uff0c\u5728\u63d2\u5165\u6570\u636e\u65f6\uff0c\u5982\u679c\u4e0d\u663e\u5f0f\u5730\u6307\u5b9a name \u548c age \u5b57\u6bb5\u7684\u503c\uff0c\u90a3\u4e48\u5b83\u4eec\u7684\u503c\u5c31\u4f1a\u662f\u9ed8\u8ba4\u503c\u3002<\/span><\/p>\n<p data-track=\"61\"><span style=\"font-size: 16px;\"><br  \/><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">06<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u5fc5\u987b\u521b\u5efa\u4e3b\u952e\uff0c\u6700\u597d\u662f\u6709\u5e8f\u6570\u503c\u7c7b\u578b<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 16px;letter-spacing: 0.034em;\"><\/span><\/p>\n<p data-track=\"63\"><span style=\"font-size: 16px;\"><strong>\u4e3b\u952e<\/strong>\u662f\u7528\u6765\u552f\u4e00\u6807\u8bc6\u8868\u4e2d\u6bcf\u884c\u6570\u636e\u7684\u4e00\u5217\u6216\u4e00\u7ec4\u5217\u3002<\/span><\/p>\n<p data-track=\"64\"><span style=\"font-size: 16px;\">\u901a\u8fc7\u4e3b\u952e\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u8fdb\u884c\u6570\u636e\u7684\u589e\u5220\u6539\u67e5\u64cd\u4f5c\uff0c\u540c\u65f6\u63d0\u9ad8\u67e5\u8be2\u6548\u7387\u3002<strong>\u5728\u8bbe\u8ba1\u8868\u7ed3\u6784\u65f6\uff0c\u5e94\u8be5\u4e3a\u6bcf\u4e2a\u8868\u90fd\u5b9a\u4e49\u4e00\u4e2a\u4e3b\u952e\u3002<\/strong><\/span><\/p>\n<p data-track=\"65\"><span style=\"font-size: 16px;\"><strong>\u5728\u9009\u62e9\u4e3b\u952e\u5217\u65f6\uff0c\u5c3d\u91cf\u9009\u62e9\u6709\u5e8f\u6570\u503c\u7c7b\u578b<\/strong>\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u6bcf\u4e2a\u65b0\u63d2\u5165\u7684\u8bb0\u5f55\u7684\u4e3b\u952e\u503c\u662f\u9012\u589e\u7684\uff0c\u8fd9\u79cd\u65b9\u5f0f\u88ab\u79f0\u4e3a<strong>\u81ea\u589e\u4e3b\u952e<\/strong>\u3002<\/span><\/p>\n<p data-track=\"66\"><span style=\"font-size: 16px;\"><strong>\u81ea\u589e\u4e3b\u952e\u7684\u4f18\u70b9<\/strong>\u662f\uff1a\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u63d2\u5165\u65b0\u8bb0\u5f55\u7684\u6548\u7387\uff0c\u5e76\u4e14\u907f\u514d\u4e3b\u952e\u51b2\u7a81\u7684\u95ee\u9898\u3002<\/span><\/p>\n<p data-track=\"67\"><span style=\"font-size: 16px;\">\u793a\u4f8b\uff1a<\/span><\/p>\n<p data-track=\"68\"><span style=\"font-size: 16px;\">\u521b\u5efa\u81ea\u589e\u4e3b\u952e<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">CREATE<\/span> <span class=\"code-snippet__keyword\">TABLE<\/span> <span class=\"code-snippet__keyword\">users<\/span> (<\/span><\/code><code><span class=\"code-snippet_outer\">  <span class=\"code-snippet__keyword\">id<\/span> <span class=\"code-snippet__built_in\">INT<\/span>(<span class=\"code-snippet__number\">11<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span> AUTO_INCREMENT,<\/span><\/code><code><span class=\"code-snippet_outer\">  username <span class=\"code-snippet__built_in\">VARCHAR<\/span>(<span class=\"code-snippet__number\">50<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">  email <span class=\"code-snippet__built_in\">VARCHAR<\/span>(<span class=\"code-snippet__number\">100<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">  <span class=\"code-snippet__keyword\">password<\/span> <span class=\"code-snippet__built_in\">VARCHAR<\/span>(<span class=\"code-snippet__number\">255<\/span>) <span class=\"code-snippet__keyword\">NOT<\/span> <span class=\"code-snippet__literal\">NULL<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">  PRIMARY <span class=\"code-snippet__keyword\">KEY<\/span> (<span class=\"code-snippet__keyword\">id<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">);<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><\/span><\/code><\/pre>\n<p data-track=\"70\"><span style=\"font-size: 16px;\">\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0cid \u5217\u88ab\u8bbe\u7f6e\u4e3a\u81ea\u589e\u4e3b\u952e\uff0c\u5e76\u4e14\u88ab\u5b9a\u4e49\u4e3a\u6574\u6570\u7c7b\u578b\u3002<\/span><\/p>\n<p data-track=\"71\"><span style=\"font-size: 16px;\">\u8fd9\u6837\uff0c\u5728\u6bcf\u6b21\u63d2\u5165\u65b0\u8bb0\u5f55\u65f6\uff0cMySQL \u4f1a\u81ea\u52a8\u4e3a id \u5217\u8d4b\u4e00\u4e2a\u9012\u589e\u7684\u503c\uff0c\u4ece\u800c\u4fdd\u8bc1\u4e86\u6bcf\u4e2a\u65b0\u8bb0\u5f55\u7684\u4e3b\u952e\u503c\u90fd\u662f\u552f\u4e00\u7684\u3002<\/span><\/p>\n<p data-track=\"72\"><span style=\"font-size: 16px;\"><strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a<\/strong><\/span><\/p>\n<ul class=\"list-paddingleft-1\">\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u5728\u521b\u5efa\u8868\u65f6\uff0c\u5e94\u8be5\u59cb\u7ec8\u4e3a\u6bcf\u4e2a\u8868\u5b9a\u4e49\u4e00\u4e2a\u4e3b\u952e\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u5982\u679c\u6ca1\u6709\u663e\u5f0f\u5b9a\u4e49\u4e3b\u952e\uff0cMySQL \u53ef\u80fd\u4f1a\u9009\u62e9\u9ed8\u8ba4\u7684\u4e3b\u952e\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u540c\u65f6\uff0c\u5728\u9009\u62e9\u4e3b\u952e\u5217\u65f6\uff0c\u5e94\u8be5\u9009\u62e9\u7b80\u5355\u3001\u552f\u4e00\u3001\u9012\u589e\u7684\u5217\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p><br  \/><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">07<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">&nbsp;in \u6761\u4ef6\u4e2d\u6570\u91cf\u4e0d\u5b9c\u8fc7\u591a<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"77\"><span style=\"font-size: 16px;\">\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u4f7f\u7528 IN \u8bed\u53e5\u6765\u67e5\u8be2\u591a\u4e2a\u503c\u3002<\/span><\/p>\n<p data-track=\"78\"><strong><span style=\"font-size: 16px;\">\u5728\u4f7f\u7528 IN \u8bed\u53e5\u65f6\uff1a<\/span><\/strong><span style=\"font-size: 16px;\"><\/span><\/p>\n<ul class=\"list-paddingleft-1\">\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\"><strong>\u5c3d\u53ef\u80fd\u51cf\u5c11 IN \u8bed\u53e5\u4e2d\u5305\u542b\u7684\u503c\u7684\u6570\u91cf<\/strong>\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u5982\u679c\u9700\u8981\u67e5\u8be2\u591a\u4e2a\u503c\uff0c\u53ef\u4ee5<strong>\u8003\u8651\u4f7f\u7528\u591a\u4e2a OR \u6761\u4ef6\u6765\u66ff\u4ee3 IN \u8bed\u53e5<\/strong>\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p data-track=\"81\"><span style=\"font-size: 16px;\">\u8fd9\u662f\u56e0\u4e3a\uff1a<\/span><\/p>\n<p data-track=\"82\"><span style=\"font-size: 16px;\">\u5982\u679c IN \u8bed\u53e5\u4e2d\u5305\u542b\u7684\u503c\u8fc7\u591a\uff0cMySQL \u5c06\u8fd9\u4e9b\u503c\u5168\u90e8\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u8fdb\u884c\u5339\u914d\uff0c\u8fd9\u6837\u5c31\u4f1a\u5bfc\u81f4\u67e5\u8be2\u53d8\u6162\u3002\u5982\u679c\u503c\u7684\u6570\u91cf\u5f88\u5927\uff0c\u5185\u5b58\u5360\u7528\u8fc7\u9ad8\uff0c\u4e00\u65e6\u8d85\u51fa\u4e86\u7cfb\u7edf\u7684\u5185\u5b58\u9650\u5236\uff0c\u5c31\u4f1a\u5f15\u53d1\u6570\u636e\u5e93\u5d29\u6e83\u3002<\/span><\/p>\n<p data-track=\"83\"><span style=\"font-size: 16px;\">\u793a\u4f8b\uff1a<\/span><\/p>\n<p data-track=\"84\"><span style=\"font-size: 16px;\">\u4f7f\u7528 IN \u8bed\u53e5\u6765\u67e5\u8be2\u4e00\u7ec4\u7279\u5b9a\u7684\u6570\u636e\uff0c\u4f8b\u5982\u67e5\u8be2\u67d0\u4e2a\u90e8\u95e8\u4e2d\u4e00\u7ec4\u7279\u5b9a\u7684\u5458\u5de5\u4fe1\u606f\u3002<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">SELECT<\/span> * <span class=\"code-snippet__keyword\">FROM<\/span> employees <span class=\"code-snippet__keyword\">WHERE<\/span> department_id <span class=\"code-snippet__keyword\">IN<\/span> (<span class=\"code-snippet__number\">1<\/span>, <span class=\"code-snippet__number\">2<\/span>, <span class=\"code-snippet__number\">3<\/span>, <span class=\"code-snippet__number\">4<\/span>, <span class=\"code-snippet__number\">5<\/span>);<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><\/span><\/code><\/pre>\n<p data-track=\"86\"><span style=\"font-size: 16px;\">\u5f53 IN \u8bed\u53e5\u4e2d\u5305\u542b\u5927\u91cf\u7684\u503c\u65f6\uff0c\u67e5\u8be2\u7684\u6548\u7387\u5c31\u4f1a\u6025\u5267\u4e0b\u964d\uff0c\u8fd9\u662f\u56e0\u4e3a MySQL \u4f1a\u9010\u4e00\u6bd4\u8f83\u6bcf\u4e2a\u503c\uff0c\u6d88\u8017\u5927\u91cf\u7684 CPU \u548c\u5185\u5b58\u8d44\u6e90\uff0c\u9020\u6210\u67e5\u8be2\u53d8\u6162\u3002<\/span><\/p>\n<p data-track=\"87\"><span style=\"font-size: 16px;\">\u6240\u4ee5\uff0c<strong>\u5982\u679c\u5728 IN \u8bed\u53e5\u4e2d\u5305\u542b\u5927\u91cf\u7684\u503c\u65f6\uff0c\u9700\u8981\u8003\u8651\u4f7f\u7528\u5176\u4ed6\u7684\u67e5\u8be2\u65b9\u5f0f\u3002<\/strong><\/span><\/p>\n<p data-track=\"88\"><span style=\"font-size: 16px;\"><strong>\u5e38\u89c1\u7684\u4f18\u5316\u65b9\u6cd5\u662f\u5c06 IN \u8bed\u53e5\u66ff\u6362\u6210 EXISTS \u5b50\u67e5\u8be2\u3002<\/strong>\u4f8b\u5982\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\">XISTS (<span class=\"code-snippet__keyword\">SELECT<\/span> <span class=\"code-snippet__number\">1<\/span> <span class=\"code-snippet__keyword\">FROM<\/span> department d <span class=\"code-snippet__keyword\">WHERE<\/span> e.department_id = d.id <span class=\"code-snippet__keyword\">AND<\/span> d.id <span class=\"code-snippet__keyword\">IN<\/span> (<span class=\"code-snippet__number\">1<\/span>, <span class=\"code-snippet__number\">2<\/span>, <span class=\"code-snippet__number\">3<\/span>, <span class=\"code-snippet__number\">4<\/span>, <span class=\"code-snippet__number\">5<\/span>));<\/span><\/code><\/pre>\n<\/section>\n<pre language=\"javascript\" code_block=\"true\"><code><span style=\"font-size: 16px;\"><br  \/><\/span><\/code><\/pre>\n<p data-track=\"90\"><span style=\"font-size: 16px;\">\u8fd9\u4e2a\u67e5\u8be2\u4f1a\u8fd4\u56de\u4e0e\u4e4b\u524d\u76f8\u540c\u7684\u7ed3\u679c\uff0c\u4f46\u67e5\u8be2\u6548\u7387\u66f4\u9ad8\u4e86\u3002\u8fd9\u662f\u56e0\u4e3a MySQL \u4f1a\u4f18\u5148\u6267\u884c EXISTS \u5b50\u67e5\u8be2\uff0c\u5224\u65ad\u67d0\u4e2a\u90e8\u95e8\u662f\u5426\u5b58\u5728\u4e8e\u6307\u5b9a\u7684 ID \u5217\u8868\u4e2d\uff0c\u5982\u679c\u5b58\u5728\uff0c\u518d\u53bb\u67e5\u8be2\u5458\u5de5\u4fe1\u606f\u3002<\/span><\/p>\n<p data-track=\"91\"><span style=\"font-size: 16px;\">\u9664\u4e86\u4f7f\u7528 EXISTS \u5b50\u67e5\u8be2\u5916\uff0c\u8fd8\u6709<strong>\u5176\u4ed6\u4e00\u4e9b\u4f18\u5316 IN \u8bed\u53e5\u7684\u65b9\u6cd5<\/strong>\uff1a\u5c06 IN \u8bed\u53e5\u4e2d\u7684\u503c\u8f6c\u6362\u4e3a\u4e34\u65f6\u8868\uff0c\u7136\u540e\u8fdb\u884c JOIN \u64cd\u4f5c\uff1b\u53c8\u6216\u8005\u4f7f\u7528\u591a\u4e2a OR \u6761\u4ef6\u66ff\u4ee3 IN \u8bed\u53e5\u3002<\/span><\/p>\n<p data-track=\"92\"><span style=\"font-size: 16px;\">\u4f46\u662f\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u4e0d\u662f\u9002\u7528\u4e8e\u6240\u6709\u60c5\u51b5\uff0c\u8fd8\u662f\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6765\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<h1 spellcheck=\"false\" data-track=\"93\"><br  \/><\/h1>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">08<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u7981\u6b62\u521b\u5efa\u9884\u7559\u5b57\u6bb5<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"94\"><span style=\"font-size: 16px;\">\u5728\u6570\u636e\u5e93\u8bbe\u8ba1\u4e2d\uff0c<strong>\u9884\u7559\u5b57\u6bb5<\/strong>\u662f\u6307\u4e3a\u5c06\u6765\u53ef\u80fd\u9700\u8981\u800c\u8bbe\u7f6e\u7684\u5b57\u6bb5\uff0c\u4f46\u76ee\u524d\u5e76\u6ca1\u6709\u5b9e\u9645\u7528\u9014\u7684\u5b57\u6bb5\u3002<\/span><\/p>\n<p data-track=\"95\"><span style=\"font-size: 16px;\"><strong>\u9884\u7559\u5b57\u6bb5\u7684\u7f3a\u70b9<\/strong>\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-1\">\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u9884\u7559\u5b57\u6bb5\u770b\u8d77\u6765\u6709\u52a9\u4e8e\u6269\u5c55\u6570\u636e\u7ed3\u6784\uff0c\u5b9e\u5219\u589e\u52a0\u4e86\u8868\u7684\u5bbd\u5ea6\uff0c\u6d6a\u8d39\u5b58\u50a8\u7a7a\u95f4\uff0c\u5e76\u964d\u4f4e\u67e5\u8be2\u6027\u80fd\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u9884\u7559\u5b57\u6bb5\u7684\u4f7f\u7528\uff0c\u53ef\u80fd\u589e\u52a0\u4ee3\u7801\u590d\u6742\u6027\uff0c\u5728\u5f00\u53d1\u65f6\u5c31\u8981\u53bb\u8003\u8651\u8fd9\u4e9b\u5b57\u6bb5\u5728\u672a\u6765\u7684\u5e94\u7528\uff0c\u751a\u81f3\u66f4\u6539\u8868\u7ed3\u6784\uff0c\u5c06\u6295\u5165\u5927\u91cf\u65f6\u95f4\u548c\u7cbe\u529b\u6765\u5904\u7406\u6570\u636e\u8fc1\u79fb\u3001\u4ee5\u53ca\u5176\u4ed6\u76f8\u5173\u95ee\u9898\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p data-track=\"98\"><span style=\"font-size: 16px;\">\u56e0\u6b64\uff0c<strong>\u7981\u6b62\u521b\u5efa\u9884\u7559\u5b57\u6bb5\uff0c\u5728\u9700\u8981\u65f6\u518d\u6dfb\u52a0\u65b0\u5b57\u6bb5\uff0c\u8fd9\u6837\u53ef\u4ee5\u66f4\u597d\u5730\u4fdd\u8bc1\u6570\u636e\u5e93\u7684\u6574\u6d01\u548c\u9ad8\u6548\u3002<\/strong><\/span><\/p>\n<h1 spellcheck=\"false\" data-track=\"99\"><br  \/><\/h1>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;transform-style: preserve-3d;\">\n<section style=\"padding-left: 5px;\">\n<section style=\"display: flex;justify-content: flex-start;\">\n<section style=\"display: flex;align-items: flex-end;justify-content: center;\">\n<section style=\"padding-bottom: 4px;\">\n<section style=\"background-color: rgb(233, 246, 254);\">\n<section style=\"font-size: 16px;background-color: rgb(250, 238, 178);width: 35px;height: 35px;line-height: 40px;text-align: center;transform: translate(-5px, 5px);\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">09<\/strong><span data-original-title=\"\" title=\"\"><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"padding-right: 7px;padding-bottom: 5px;padding-left: 7px;font-size: 16px;text-align: center;\"><span data-brushtype=\"text\"><strong itemprop=\"title\" data-brushtype=\"text\" style=\"font-size: 18px;letter-spacing: 0.578px;\">\u5355\u8868\u7d22\u5f15\u6570\u4e0d\u8981\u8d85\u8fc7 5 \u4e2a<\/strong>&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;\"><br  \/><\/p>\n<p data-track=\"100\"><span style=\"font-size: 16px;\"><strong>\u7d22\u5f15<\/strong>\u662f\u4e00\u79cd\u7528\u4e8e\u52a0\u901f\u6570\u636e\u68c0\u7d22\u7684\u6570\u636e\u7ed3\u6784\u3002<\/span><\/p>\n<p data-track=\"101\"><span style=\"font-size: 16px;\">\u5728\u6570\u636e\u5e93\u4e2d\uff0c\u4e3a\u4e86\u63d0\u9ad8\u67e5\u8be2\u6548\u7387\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u5728\u8868\u7684\u5b57\u6bb5\u4e0a\u521b\u5efa\u7d22\u5f15\u3002\u4f46\u662f\uff0c\u7d22\u5f15\u4f1a\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\uff0c\u7ef4\u62a4\u7d22\u5f15\u4e5f\u9700\u8981\u65f6\u95f4\u548c\u8d44\u6e90\u3002<strong>\u5982\u679c\u8fc7\u5ea6\u521b\u5efa\u7d22\u5f15\uff0c\u5c06\u4f1a\u5bfc\u81f4\u67e5\u8be2\u53d8\u6162\u3002<\/strong><\/span><\/p>\n<p data-track=\"102\"><span style=\"font-size: 16px;\"><strong>\u5efa\u8bae\uff1a<\/strong><\/span><\/p>\n<ul class=\"list-paddingleft-1\">\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\"><strong>\u5728\u4e00\u4e2a\u8868\u4e2d\uff0c\u4e0d\u8981\u521b\u5efa\u8d85\u8fc7 5 \u4e2a\u7d22\u5f15<\/strong>\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u5728\u786e\u5b9a\u8981\u521b\u5efa\u54ea\u4e9b\u7d22\u5f15\u65f6\uff0c\u53ef\u4ee5\u4f18\u5148\u8003\u8651<strong>\u5e38\u7528\u7684\u67e5\u8be2\u6761\u4ef6<\/strong>\u548c<strong>\u9700\u8981\u9891\u7e41\u66f4\u65b0\u7684\u5b57\u6bb5<\/strong>\u3002\u4f8b\u5982\uff1a\u5982\u679c\u7ecf\u5e38\u6309\u65e5\u671f\u8303\u56f4\u67e5\u8be2\uff0c\u5219\u53ef\u4ee5\u5728\u65e5\u671f\u5b57\u6bb5\u4e0a\u521b\u5efa\u7d22\u5f15\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\">\u5728\u521b\u5efa\u7d22\u5f15\u65f6\uff0c<strong>\u907f\u514d\u5728\u5177\u6709\u5927\u91cf\u91cd\u590d\u503c\u7684\u5217\u4e0a\u521b\u5efa\u7d22\u5f15<\/strong>\uff0c\u4f1a\u6d6a\u8d39\u78c1\u76d8\u7a7a\u95f4\u3002<\/span><\/p>\n<\/li>\n<li style=\"font-size: 16px;\">\n<p><span style=\"font-size: 16px;\"><strong>\u4f7f\u7528\u7d22\u5f15\u4f18\u5316\u5668\u6765\u786e\u5b9a\u54ea\u4e9b\u7d22\u5f15\u6700\u9002\u5408\u7279\u5b9a\u67e5\u8be2<\/strong>\u3002\u7d22\u5f15\u4f18\u5316\u5668\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u907f\u514d\u521b\u5efa\u4e0d\u5fc5\u8981\u7684\u7d22\u5f15\uff0c\u5e76\u786e\u4fdd\u67e5\u8be2\u6027\u80fd\u7684\u6700\u5927\u5316\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<h1 spellcheck=\"false\" data-track=\"107\"><br  \/><\/h1>\n<h1 spellcheck=\"false\" data-track=\"107\"><br  \/><\/h1>\n<h1 spellcheck=\"false\" data-track=\"107\"><strong><span style=\"font-size: 18px;\">\u603b\u7ed3<\/span><\/strong><\/h1>\n<p data-track=\"108\"><br  \/><\/p>\n<p data-track=\"108\"><span style=\"font-size: 16px;\">\u672c\u6587\u4ece\u6df1\u5206\u9875\u3001\u5b57\u6bb5\u6570\u91cf\u3001\u5b57\u6bb5\u7c7b\u578b\u3001\u9ed8\u8ba4\u503c\u3001\u4e3b\u952e\u8bbe\u8ba1\u3001\u8bb0\u5f55\u5224\u65ad\u3001in\u6761\u4ef6\u3001\u9884\u7559\u5b57\u6bb5\u548c\u7d22\u5f15\u6570\u91cf\u7b49\u591a\u4e2a\u65b9\u9762\uff0c\u5168\u9762\u4ecb\u7ecd\u4e86\u8868\u8bbe\u8ba1\u4f18\u5316\u7684\u6ce8\u610f\u4e8b\u9879\u548c\u5b9e\u7528\u7ecf\u9a8c\u3002<\/span><\/p>\n<p data-track=\"109\"><span style=\"font-size: 16px;\"><strong>\u8868\u8bbe\u8ba1\u4f18\u5316<\/strong>\u662f\u4e00\u4e2a\u7efc\u5408\u6027\u7684\u8fc7\u7a0b\uff0c\u9700\u8981\u4ece\u591a\u4e2a\u89d2\u5ea6\u6765\u8003\u8651\u3002<\/span><\/p>\n<p data-track=\"110\"><span style=\"font-size: 16px;\">\u901a\u8fc7\u5408\u7406\u7684\u8868\u8bbe\u8ba1\u548c\u4f18\u5316\uff0c\u53ef\u4ee5\u51cf\u5c11\u6211\u4eec\u7684\u5f00\u53d1\u5de5\u4f5c\u91cf\u548c\u7ebf\u4e0a\u95ee\u9898\uff0c\u63d0\u5347 MySQL \u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002<\/span><\/p>\n<p data-track=\"110\"><span style=\"font-size: 16px;\">\u4ee5\u4e0a\u3002<\/span><\/p>\n<p data-track=\"357\" style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;\">\u6211\u662f<strong style=\"outline: 0px;\">\u7231\u5206\u4eab\u7684\u7a0b\u5e8f\u5458\u5b9d\u59b9\u513f<\/strong>\uff0c\u8c22\u8c22\u5173\u6ce8&nbsp;<strong style=\"outline: 0px;\">Java\u9762\u8bd5\u9898\u5b9d<\/strong>\u3002<\/span><\/p>\n<p data-track=\"357\" style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;letter-spacing: 0.034em;\">\u5982\u679c\u89c9\u5f97\u4e0d\u9519\uff0c\u8bf7\u4e00\u952e\u4e09\u8fde\u652f\u6301\u4e0b\u3002<\/span><\/p>\n<p data-track=\"357\" style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;letter-spacing: 0.034em;\">\u514d\u8d39\u5949\u4e0a<strong style=\"outline: 0px;letter-spacing: 0.578px;white-space: normal;\">\uff1a<\/strong><\/span><span style=\"outline: 0px;letter-spacing: 0.034em;font-size: 20px;text-decoration: underline;color: rgb(0, 82, 255);\"><strong style=\"outline: 0px;font-size: 16px;letter-spacing: 0.578px;white-space: normal;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkzNjQyNTYyMA==&amp;mid=2247484317&amp;idx=1&amp;sn=a6695792e4893901eff2cd7d5363c18a&amp;chksm=c29fa266f5e82b704e1bb67ebbcb7b44ad3cebf307adc767a0e1025d9453ca20233b19c15617&amp;scene=21#wechat_redirect\" textvalue=\"\u300aMySQL \u9762\u8bd5\u8def\u7ebf\u6700\u5168\u6574\u7406\uff08\u9644\u9762\u8bd5\u9898\u7cbe\u9009\u53ca\u7b54\u6848\uff09\u300b\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" >\u300aMySQL&nbsp;\u9762\u8bd5\u8def\u7ebf\u6700\u5168\u6574\u7406\uff08\u9644\u9762\u8bd5\u9898\u7cbe\u9009\u53ca\u7b54\u6848\uff09\u300b<\/a><\/strong><\/span><br style=\"outline: 0px;\"  \/><\/p>\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"113612\" style=\"margin-bottom: 0px;outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;\">\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"113612\" style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;background-color: rgb(255, 255, 255);letter-spacing: 0.578px;\">\n<section style=\"margin: 20px auto;outline: 0px;\">\n<section style=\"outline: 0px;display: flex;justify-content: center;align-items: center;\">\n<section style=\"outline: 0px;\">\n<section style=\"outline: 0px;display: flex;align-items: flex-end;\">\n<section style=\"outline: 0px;width: 25px;\"><br  \/><\/section>\n<section style=\"outline: 0px;width: 25px;\"><br  \/><img decoding=\"async\" class=\"rich_pages wxw-img __bg_gif lazyload\" data-ratio=\"1.4615384615384615\"  data-type=\"gif\" data-w=\"52\" data-width=\"100%\" style=\"outline: 0px;vertical-align: inherit;display: block;visibility: visible !important;width: 25px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044808450.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img __bg_gif\" data-ratio=\"1.4615384615384615\"  data-type=\"gif\" data-w=\"52\" data-width=\"100%\" style=\"outline: 0px;vertical-align: inherit;display: block;visibility: visible !important;width: 25px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044808450.gif\"  \/><\/noscript><\/section>\n<section style=\"outline: 0px;\">\n<section style=\"padding-bottom: 3px;outline: 0px;font-size: 16px;text-align: center;\"><span style=\"outline: 0px;\"><strong data-brushtype=\"text\" style=\"outline: 0px;\">&nbsp;<\/strong>end<strong data-brushtype=\"text\" style=\"outline: 0px;\"><\/strong><\/span><\/section>\n<\/section>\n<\/section>\n<section style=\"outline: 0px;width: 110px;\">\n<section data-width=\"100%\" style=\"outline: 0px;width: 110px;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.08196721311475409\"  data-type=\"png\" data-w=\"183\" data-width=\"100%\" style=\"outline: 0px;vertical-align: inherit;display: block;visibility: visible !important;width: 86px !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044809543.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.08196721311475409\"  data-type=\"png\" data-w=\"183\" data-width=\"100%\" style=\"outline: 0px;vertical-align: inherit;display: block;visibility: visible !important;width: 86px !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044809543.png\"  \/><\/noscript><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"117529\" style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;white-space: normal;background-color: rgb(255, 255, 255);letter-spacing: 0.578px;\">\n<section style=\"margin: 20px auto;outline: 0px;\">\n<section style=\"outline: 0px;\">\n<p style=\"outline: 0px;text-align: center;\"><br style=\"outline: 0px;\"  \/><\/p>\n<p style=\"outline: 0px;text-align: center;\"><span style=\"outline: 0px;font-size: 16px;\"><strong style=\"outline: 0px;letter-spacing: 0.578px;\">\u514d\u8d39\u83b7\u53d6\u4e0b\u65b9\u8d44\u6599\u65b9\u6cd5\uff0c\u516c\u4f17\u53f7\u540e\u53f0\u56de\u590d\uff1a\u9898\u5b9d<\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"outline: 0px;text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"2.225382932166302\"  data-w=\"457\" style=\"outline: 0px;width: 457px !important;visibility: visible !important;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044810254.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"2.225382932166302\"  data-w=\"457\" style=\"outline: 0px;width: 457px !important;visibility: visible !important;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044810254.png\"  \/><\/noscript><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 java\u9762\u8bd5\u9898\u5b9d              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u8868\u8bbe\u8ba1\u4f18\u5316\uff0c\u662f MySQL \u8c03\u4f18\u4e2d\u81f3\u5173\u91cd\u8981\u7684\u4e00\u4e2a\u73af\u8282\uff0c\u4e5f\u662f\u5927\u5382\u9ad8\u9891\u9762\u8bd5\u9898\u4e4b\u4e00\u3002 \u4e00\u4e2a\u4f18\u79c0\u5408\u7406\u7684\u8868\u8bbe\u8ba1\u4f18\u5316\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u7ebf\u4e0a\u95ee\u9898\uff0c &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-1724","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044801699.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044803177.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044808450.gif","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044808450.gif","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044809543.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044809543.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044810254.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044810254.png","id":"image7"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"MySQL","post_date":"2023-06-19","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":353,"next_post_id":2059,"next_post_title":"SQL\u9ad8\u7ea7\u7bc7\uff5e\u52a8\u6001\u4ea4\u53c9\u8868","previous_post_id":1005,"previous_post_title":"\u6570\u636e\u5e93\u94fe\u63a5\u6c60\u7ec8\u4e8e\u641e\u5bf9\u4e86\uff0c\u8fd9\u6b21\u76f4\u63a5\u4ece100ms\u4f18\u5316\u52303ms\uff01","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1724"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1716"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}