{"id":122534,"date":"2026-11-05T04:08:40","date_gmt":"2026-11-04T20:08:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/122534.html"},"modified":"2026-11-05T04:08:40","modified_gmt":"2026-11-04T20:08:40","slug":"mysql-%e5%8d%95%e7%82%b9%e8%af%a6%e8%a7%a3%ef%bc%8814%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/122534.html","title":{"rendered":"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<h2>MySQL \u5355\u70b9\u8be6\u89e3&#xff08;14&#xff09;&#xff1a;\u7ed9\u5b9a\u4e00\u6761 SQL&#xff0c;\u8054\u5408\u7d22\u5f15\u7684\u5217\u8be5\u600e\u4e48\u6392<\/h2>\n<p>\u9762\u8bd5\u5b98&#xff1a;\u8fd9\u6761 SQL \u8be5\u5efa\u4ec0\u4e48\u7d22\u5f15&#xff1f;\u8054\u5408\u7d22\u5f15\u7684\u4e09\u5217\u6309\u4ec0\u4e48\u987a\u5e8f\u6392&#xff1f;<\/p>\n<p>\u9762\u8bd5\u5b98&#xff1a;where \u91cc\u6709\u8303\u56f4&#xff0c;order by \u53c8\u8981\u6392\u5e8f&#xff0c;\u7d22\u5f15\u600e\u4e48\u5efa&#xff1f;<\/p>\n<p>\u5efa\u7d22\u5f15\u53ea\u6709\u4e09\u6b65&#xff1a;\u5148\u770b where \u600e\u4e48\u7b5b&#xff0c;\u518d\u770b order by \u80fd\u4e0d\u80fd\u501f\u4e0a&#xff0c;\u6700\u540e\u770b select \u80fd\u4e0d\u80fd\u8986\u76d6\u3002<\/p>\n<h3>\u4e00\u3001\u5148\u62c6\u8fd9\u6761 SQL<\/h3>\n<p>\u8868\u2460 \u56db\u4e2a\u5b50\u53e5&#xff0c;\u5404\u7ba1\u4e00\u4ef6\u4e8b<\/p>\n<table>\n<tr>\u5b50\u53e5\u51b3\u5b9a\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">where \u7b49\u503c<\/td>\n<td align=\"left\">\u51b3\u5b9a\u7d22\u5f15\u4ece\u54ea\u4e00\u5217\u8d77\u5934<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">where \u8303\u56f4<\/td>\n<td align=\"left\">\u8303\u56f4\u4e4b\u540e\u7684\u5217&#xff0c;\u5931\u53bb\u5b9a\u4f4d\u4f5c\u7528<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">order by<\/td>\n<td align=\"left\">\u80fd\u4e0d\u80fd\u987a\u7740\u7d22\u5f15\u987a\u5e8f\u8bfb&#xff0c;\u7701\u6389\u6392\u5e8f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">select<\/td>\n<td align=\"left\">\u80fd\u4e0d\u80fd\u5728\u7d22\u5f15\u91cc\u53d6\u5168&#xff0c;\u7701\u6389\u56de\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u56db\u4e2a\u5b50\u53e5\u91cc&#xff0c;\u7b2c\u4e00\u4e2a\u51b3\u5b9a\u8d77\u70b9&#xff0c;\u540e\u4e24\u4e2a\u51b3\u5b9a\u80fd\u4e0d\u80fd\u7701\u6389\u989d\u5916\u52a8\u4f5c\u3002<\/p>\n<p>\u4e00\u6761 SQL \u7684\u7d22\u5f15&#xff0c;\u57fa\u672c\u5c31\u662f\u8fd9\u56db\u4ef6\u4e8b\u7684\u6298\u4e2d\u3002<\/p>\n<h3>\u4e8c\u3001\u5217\u987a\u5e8f\u7684\u56db\u6761\u89c4\u5219<\/h3>\n<p>\u8868\u2461 \u6392\u5e8f\u4e0d\u662f\u51ed\u611f\u89c9<\/p>\n<table>\n<tr>\u89c4\u5219\u539f\u56e0<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u7b49\u503c\u5217\u653e\u524d\u9762<\/td>\n<td align=\"left\">\u7b49\u503c\u80fd\u628a\u8303\u56f4\u9501\u5230\u4e00\u6bb5&#xff0c;\u540e\u7eed\u5217\u624d\u6709\u610f\u4e49<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8303\u56f4\u5217\u653e\u540e\u9762<\/td>\n<td align=\"left\">\u8303\u56f4\u4e00\u51fa\u73b0&#xff0c;\u540e\u9762\u7684\u5217\u5c31\u5b9a\u4f4d\u4e0d\u4e86<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6392\u5e8f\u5217\u6392\u5728\u7b49\u503c\u5217\u4e4b\u540e<\/td>\n<td align=\"left\">\u7b49\u503c\u56fa\u5b9a\u540e&#xff0c;\u5269\u4e0b\u7684\u987a\u5e8f\u5929\u7136\u6709\u5e8f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u533a\u5206\u5ea6\u9ad8\u7684\u4f18\u5148<\/td>\n<td align=\"left\">\u4e00\u6b21\u80fd\u7b5b\u6389\u66f4\u591a\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5148\u8bf4\u4e3a\u4ec0\u4e48\u8303\u56f4\u5217\u8981\u653e\u540e\u9762\u3002\u5982\u679c\u53cd\u8fc7\u6765\u5efa\u6210 (age, city)&#xff0c;age \u662f\u8303\u56f4&#xff0c;\u8303\u56f4\u4e4b\u540e city \u5c31\u5b9a\u4f4d\u4e0d\u4e86&#xff0c;\u53ea\u80fd\u5f53\u8fc7\u6ee4\u6761\u4ef6\u7528\u3002<\/p>\n<p>\u540c\u6837\u4e24\u5217&#xff0c;\u987a\u5e8f\u4e00\u6362&#xff0c;\u5b9a\u4f4d\u80fd\u529b\u5c11\u4e00\u534a\u3002<\/p>\n<p>\u533a\u5206\u5ea6\u7b49\u4e8e\u4e0d\u91cd\u590d\u7684\u503c\u9664\u4ee5\u603b\u884c\u6570&#xff0c;\u8d8a\u63a5\u8fd1 1 \u8d8a\u597d\u3002<\/p>\n<p>\u624b\u673a\u53f7\u3001\u8ba2\u5355\u53f7\u63a5\u8fd1 1&#xff0c;\u6027\u522b\u53ea\u6709\u4e24\u4e2a\u503c&#xff0c;\u63a5\u8fd1 0\u3002<\/p>\n<p>\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u6027\u522b\u3001\u72b6\u6001\u8fd9\u7c7b\u5217\u4e0d\u8be5\u5355\u72ec\u5efa\u7d22\u5f15&#xff1a;\u7b5b\u5b8c\u8fd8\u5269\u4e00\u534a&#xff0c;\u4e0d\u5982\u76f4\u63a5\u626b\u3002<\/p>\n<h3>\u4e09\u3001\u8303\u56f4\u5217\u548c\u6392\u5e8f\u5217\u51b2\u7a81\u65f6<\/h3>\n<p>\u770b\u4e00\u6761\u5177\u4f53\u7684\u3002<\/p>\n<p>select id, name from user where city &#061; ? and age &gt; 20 order by create_time desc limit 20<\/p>\n<p>city \u662f\u7b49\u503c&#xff0c;age \u662f\u8303\u56f4&#xff0c;create_time \u8981\u6392\u5e8f\u3002\u4e09\u4e2a\u5217\u4e0d\u53ef\u80fd\u90fd\u53d7\u76ca\u3002<\/p>\n<p>\u8868\u2462 \u4e24\u79cd\u5efa\u6cd5&#xff0c;\u5404\u8ba9\u4e00\u6b65<\/p>\n<table>\n<tr>\u5efa\u6cd5\u80fd\u505a\u4ec0\u4e48\u653e\u5f03\u4e86\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">city, age<\/td>\n<td align=\"left\">\u7cbe\u786e\u7b5b\u51fa city \u4e14 age \u5927\u4e8e 20<\/td>\n<td align=\"left\">\u6392\u5e8f\u8981\u53e6\u505a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">city, create_time<\/td>\n<td align=\"left\">\u6309 city \u7b5b&#xff0c;\u6309\u65f6\u95f4\u5012\u5e8f\u8bfb<\/td>\n<td align=\"left\">age \u53ea\u80fd\u56de\u8868\u540e\u8fc7\u6ee4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9009\u54ea\u4e2a&#xff0c;\u53d6\u51b3\u4e8e\u6570\u636e\u5206\u5e03\u548c limit \u7684\u5927\u5c0f\u3002<\/p>\n<p>\u5982\u679c city \u7b49\u4e8e\u5317\u4eac\u3001age \u5927\u4e8e 20 \u7684\u884c\u672c\u6765\u5c31\u53ea\u6709\u4e00\u767e\u6765\u6761&#xff0c;\u7b2c\u4e00\u79cd\u66f4\u597d&#xff1a;\u7b5b\u5b8c\u6392\u4e00\u767e\u884c&#xff0c;\u4ee3\u4ef7\u5f88\u5c0f\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u7c7b\u884c\u6709\u51e0\u5341\u4e07&#xff0c;\u7b2c\u4e00\u79cd\u5c31\u8981\u6392\u51e0\u5341\u4e07\u884c&#xff1b;\u7b2c\u4e8c\u79cd\u53cd\u800c\u66f4\u5feb&#xff0c;\u56e0\u4e3a\u5b83\u6309\u65f6\u95f4\u5012\u5e8f\u626b&#xff0c;\u51d1\u591f\u4e8c\u5341\u6761\u5c31\u505c&#xff0c;\u4e0d\u7528\u6392\u5b8c\u3002<\/p>\n<p>\u8fd9\u5c31\u662f limit \u5c0f\u7684\u573a\u666f\u91cc&#xff0c;\u7b2c\u4e8c\u79cd\u5e38\u5e38\u80dc\u51fa\u7684\u539f\u56e0&#xff1a;\u5b83\u53ef\u4ee5\u63d0\u524d\u7ec8\u6b62&#xff0c;\u800c\u6392\u5e8f\u5fc5\u987b\u5904\u7406\u5b8c\u6240\u6709\u5019\u9009\u884c\u3002<\/p>\n<p>\u5b9e\u9645\u505a\u6cd5\u662f\u5148 explain \u4e24\u79cd&#xff0c;\u770b rows \u548c Extra \u518d\u5b9a&#xff0c;\u4e0d\u8981\u51ed\u89c4\u5219\u731c\u3002<\/p>\n<p>\u5efa\u7d22\u5f15\u7684\u6700\u540e\u4e00\u6b65\u6c38\u8fdc\u662f\u770b\u6267\u884c\u8ba1\u5212&#xff0c;\u4e0d\u662f\u770b\u89c4\u5219\u3002\u89c4\u5219\u53ea\u80fd\u7f29\u5c0f\u8303\u56f4&#xff0c;\u4e0d\u80fd\u66ff\u505a\u51b3\u5b9a\u3002<\/p>\n<h3>\u56db\u3001\u4ec0\u4e48\u65f6\u5019\u4e0d\u8be5\u5efa<\/h3>\n<p>\u56db\u79cd\u60c5\u51b5&#xff0c;\u5efa\u4e86\u4e5f\u662f\u8d1f\u62c5\u3002<\/p>\n<p>\u7b2c\u4e00\u79cd&#xff0c;\u533a\u5206\u5ea6\u592a\u4f4e\u3002\u6027\u522b\u3001\u662f\u5426\u5220\u9664\u3001\u72b6\u6001\u53ea\u6709\u51e0\u4e2a\u503c&#xff0c;\u7b5b\u5b8c\u5269\u4e00\u5927\u534a&#xff0c;\u7d22\u5f15\u7684\u5b9a\u4f4d\u4f5c\u7528\u7528\u4e0d\u4e0a\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd&#xff0c;\u8868\u5f88\u5c0f\u3002\u51e0\u767e\u884c\u7684\u8868&#xff0c;\u5168\u8868\u626b\u6bd4\u8d70\u7d22\u5f15\u518d\u56de\u8868\u8fd8\u5feb\u3002<\/p>\n<p>\u7b2c\u4e09\u79cd&#xff0c;\u5199\u591a\u8bfb\u5c11\u3002\u6bcf\u6b21\u63d2\u5165\u66f4\u65b0\u90fd\u8981\u7ef4\u62a4\u7d22\u5f15&#xff0c;\u591a\u4e00\u4e2a\u7d22\u5f15\u5c31\u591a\u4e00\u6b21\u7ef4\u62a4\u3002<\/p>\n<p>\u7b2c\u56db\u79cd&#xff0c;\u5df2\u7ecf\u6709\u524d\u7f00\u8986\u76d6\u3002\u5efa\u4e86 (a, b, c)&#xff0c;\u5c31\u4e0d\u5fc5\u518d\u5355\u72ec\u5efa (a)&#xff0c;\u5b83\u5df2\u7ecf\u8986\u76d6\u4e86 (a) \u548c (a, b)\u3002<\/p>\n<p>\u4e00\u822c\u5355\u8868\u7d22\u5f15\u63a7\u5236\u5728\u4e94\u4e2a\u4ee5\u5185&#xff0c;\u8d85\u8fc7\u5c31\u8981\u5ba1\u89c6\u4e00\u4e0b\u3002<\/p>\n<p>\u6bcf\u4e2a\u7d22\u5f15\u90fd\u8981\u5360\u7a7a\u95f4&#xff0c;\u4e00\u5343\u4e07\u884c\u7684\u8868&#xff0c;\u4e00\u4e2a\u7d22\u5f15\u53ef\u80fd\u5c31\u662f\u51e0\u767e\u5146\u3002\u5199\u8d8a\u9891\u7e41&#xff0c;\u8fd9\u7b14\u5f00\u9500\u8d8a\u660e\u663e\u3002<\/p>\n<h3>\u4e94\u3001\u9762\u8bd5\u5b98\u4f1a\u5f80\u4e0b\u95ee\u7684\u4e09\u5c42<\/h3>\n<p>\u7b2c\u4e00\u5c42&#xff1a;\u533a\u5206\u5ea6\u600e\u4e48\u7b97&#xff1f;<\/p>\n<p>\u7528\u4e0d\u91cd\u590d\u7684\u503c\u4e2a\u6570\u9664\u4ee5\u603b\u884c\u6570\u3002\u4e5f\u53ef\u4ee5\u76f4\u63a5\u67e5\u4e00\u4e0b\u67d0\u5217\u6709\u591a\u5c11\u4e2a\u4e0d\u540c\u7684\u503c&#xff0c;\u8ddf\u603b\u884c\u6570\u6bd4\u3002<\/p>\n<p>\u6ce8\u610f\u533a\u5206\u5ea6\u662f\u8ddf\u7740\u6570\u636e\u8d70\u7684\u3002\u4e00\u4e2a\u5b57\u6bb5\u73b0\u5728\u533a\u5206\u5ea6\u9ad8&#xff0c;\u4e1a\u52a1\u53d8\u4e86\u53ef\u80fd\u5c31\u4e0d\u9ad8\u4e86&#xff0c;\u7d22\u5f15\u8981\u8ddf\u7740\u590d\u67e5\u3002<\/p>\n<p>\u7b2c\u4e8c\u5c42&#xff1a;\u5b57\u7b26\u4e32\u592a\u957f\u600e\u4e48\u5efa\u7d22\u5f15&#xff1f;<\/p>\n<p>\u7528\u524d\u7f00\u7d22\u5f15&#xff0c;\u53ea\u53d6\u524d\u82e5\u5e72\u4f4d\u3002\u6bd4\u5982\u90ae\u7bb1\u53d6\u524d\u4e8c\u5341\u4f4d\u3002<\/p>\n<p>\u957f\u5ea6\u7684\u5b9a\u6cd5&#xff1a;\u9010\u6b65\u52a0\u957f&#xff0c;\u76f4\u5230\u4e0d\u540c\u524d\u7f00\u7684\u4e2a\u6570\u63a5\u8fd1\u6574\u5217\u7684\u4e2a\u6570&#xff0c;\u518d\u957f\u5c31\u6ca1\u610f\u4e49\u4e86\u3002<\/p>\n<p>\u4ee3\u4ef7\u662f\u524d\u7f00\u7d22\u5f15\u4e0d\u80fd\u7528\u4e8e\u8986\u76d6\u7d22\u5f15&#xff0c;\u4e5f\u4e0d\u80fd\u7528\u4e8e\u6392\u5e8f\u3002<\/p>\n<p>\u7b2c\u4e09\u5c42&#xff1a;order by \u7528\u4e86\u7d22\u5f15&#xff0c;\u662f\u4e0d\u662f\u4e00\u5b9a\u4e0d\u6392\u5e8f\u4e86&#xff1f;<\/p>\n<p>\u4e0d\u4e00\u5b9a\u3002\u8981\u6ee1\u8db3\u4e24\u4e2a\u6761\u4ef6&#xff1a;\u6392\u5e8f\u7684\u5217\u5728\u7d22\u5f15\u91cc&#xff0c;\u4e14\u987a\u5e8f\u4e00\u81f4\u3002<\/p>\n<p>\u5982\u679c SQL \u91cc\u662f order by a desc, b asc&#xff0c;\u4e24\u4e2a\u65b9\u5411\u4e0d\u4e00\u81f4&#xff0c;\u7d22\u5f15\u5c31\u7528\u4e0d\u4e0a&#xff0c;\u8fd8\u662f\u4f1a\u989d\u5916\u6392\u5e8f\u3002<\/p>\n<h3>\u6536\u5c3e<\/h3>\n<p>\u8fd9\u671f\u538b\u6210\u4e00\u53e5&#xff1a;\u7b49\u503c\u5b9a\u8d77\u70b9&#xff0c;\u8303\u56f4\u65ad\u540e\u8def&#xff0c;\u6392\u5e8f\u770b\u80fd\u4e0d\u80fd\u987a\u8def&#xff0c;\u8986\u76d6\u770b\u80fd\u4e0d\u80fd\u4e0d\u56de\u8868&#xff0c;\u51b2\u7a81\u65f6\u7528 explain \u5b9a&#xff0c;\u4e0d\u7528\u89c4\u5219\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,1833,100,176],"topic":[],"class_list":["post-122534","post","type-post","status-publish","format-standard","hentry","category-server","tag-mysql","tag-1833","tag-100","tag-176"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/122534.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/122534.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T20:08:40+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122534.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/122534.html\",\"name\":\"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-04T20:08:40+00:00\",\"dateModified\":\"2026-11-04T20:08:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/122534.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/122534.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122534.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/122534.html","og_locale":"zh_CN","og_type":"article","og_title":"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/122534.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-04T20:08:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/122534.html","url":"https:\/\/www.wsisp.com\/helps\/122534.html","name":"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-04T20:08:40+00:00","dateModified":"2026-11-04T20:08:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/122534.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/122534.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/122534.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MySQL \u5355\u70b9\u8be6\u89e3\uff0814\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=122534"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122534\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=122534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=122534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=122534"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=122534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}