{"id":25765,"date":"2024-11-24T15:59:18","date_gmt":"2024-11-24T07:59:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25765\/"},"modified":"2024-11-24T15:59:18","modified_gmt":"2024-11-24T07:59:18","slug":"mysql-%e6%96%b0%e5%a2%9e%e8%a1%8c%e8%ae%b0%e5%bd%95%e6%8f%92%e5%85%a5%e4%bd%8d%e7%bd%ae%ef%bc%9a%e8%87%aa%e5%8a%a8%e6%8e%92%e5%ba%8f%e8%bf%98%e6%98%af%e6%9c%80%e5%90%8e%e6%8f%92%e5%85%a5%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25765\/","title":{"rendered":"MySQL \u65b0\u589e\u884c\u8bb0\u5f55\u63d2\u5165\u4f4d\u7f6e\uff1a\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6700\u540e\u63d2\u5165\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173069974698574.jpg\" class=\"aligncenter\" title=\"MySQL \u65b0\u589e\u884c\u8bb0\u5f55\u63d2\u5165\u4f4d\u7f6e\uff1a\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6700\u540e\u63d2\u5165\uff1f\u63d2\u56fe\" alt=\"MySQL \u65b0\u589e\u884c\u8bb0\u5f55\u63d2\u5165\u4f4d\u7f6e\uff1a\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6700\u540e\u63d2\u5165\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong> \u65b0\u589e\u884c\u8bb0\u5f55\u7684\u63d2\u5165\u4f4d\u7f6e\uff1a\u6309\u4e3b\u952e\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6392\u5728\u6700\u540e\uff1f<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>\u5f53\u5728\u4e00\u4e2a\u62e5\u6709\u4e3b\u952e\u7684 mysql \u6570\u636e\u8868\u4e2d\u63d2\u5165\u65b0\u884c\u65f6\uff0c\u8be5\u884c\u662f\u5426\u4f1a\u81ea\u52a8\u6309\u4e3b\u952e\u987a\u5e8f\u63d2\u5165\uff0c\u8fd8\u662f\u5c06\u88ab\u6392\u5728\u6700\u540e\uff1f<\/p>\n<p>\u5177\u4f53\u6765\u8bf4\uff0c\u4ee5\u8868 <strong>user<\/strong> \u4e3a\u4f8b\uff0c\u4e3b\u952e\u4e3a <strong>id<\/strong>\uff0c\u5df2\u5b58\u5728\u4ee5\u4e0b\u8bb0\u5f55\uff1a<\/p>\n<pre>'1001','haha','aaa@gmail.com'\n'1002','hehe','bbb@gmail.com'\n'1004','oror','ccc@gmail.com'<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u73b0\u5728\u63d2\u5165\u65b0\u884c\uff1a<\/p>\n<pre>INSERT INTO user (id,name,email) VALUES ('1003','ThinkPHP','ThinkPHP@gmail.com')<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8be5\u884c\u5c06\u88ab\u63d2\u5165\u5230 1002 \u4e4b\u540e\u8fd8\u662f 1004 \u4e4b\u540e\uff1f<\/p>\n<p><strong>\u7b54\u6848\uff1a<\/strong><\/p>\n<p>\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u8868\u662f\u8bb0\u5f55\u7684\u65e0\u5e8f\u96c6\u5408\u3002\u4e5f\u5c31\u662f\u8bf4\uff1a<\/p>\n<ul>\n<li>\u5728\u4e0d\u4f7f\u7528 order by \u5b50\u53e5\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0d\u80fd\u5047\u8bbe\u8bb0\u5f55\u6709\u4efb\u4f55\u7279\u5b9a\u987a\u5e8f\u3002<\/li>\n<li>\u65b0\u63d2\u5165\u7684\u884c\u53ef\u80fd\u4f1a\u88ab\u653e\u7f6e\u5728\u8868\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u5305\u62ec\u5f00\u5934\u6216\u7ed3\u5c3e\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fMySQL \u65b0\u589e\u884c\u8bb0\u5f55\u63d2\u5165\u4f4d\u7f6e\uff1a\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6700\u540e\u63d2\u5165\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u589e\u884c\u8bb0\u5f55\u7684\u63d2\u5165\u4f4d\u7f6e\uff1a\u6309\u4e3b\u952e\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6392\u5728\u6700\u540e\uff1f \u95ee\u9898\uff1a \u5f53\u5728\u4e00\u4e2a\u62e5\u6709\u4e3b\u952e\u7684 mysql \u6570\u636e\u8868\u4e2d\u63d2\u5165\u65b0\u884c\u65f6\uff0c\u8be5\u884c\u662f\u5426\u4f1a\u81ea\u52a8\u6309\u4e3b\u952e\u987a\u5e8f\u63d2\u5165\uff0c\u8fd8\u662f\u5c06\u88ab\u6392\u5728\u6700\u540e\uff1f \u5177\u4f53\u6765\u8bf4\uff0c\u4ee5\u8868 user \u4e3a\u4f8b\uff0c\u4e3b\u952e\u4e3a id\uff0c\u5df2\u5b58\u5728\u4ee5\u4e0b\u8bb0\u5f55\uff1a &#8216;1001&#8217;,&#8217;haha&#8217;,&#8217;aaa@gmail.com&#8217; &#8216;1002&#8217;,&#8217;hehe&#8217;,&#8217;bbb@gmail.com&#8217; &#8216;1004&#8217;,&#8217;oror&#8217;,&#8217;ccc@gmail.com&#8217; \u767b\u5f55\u540e\u590d\u5236 \u73b0\u5728\u63d2\u5165\u65b0\u884c\uff1a INSERT INTO user (id,name,email) VALUES (&#8216;1003&#8242;,&#8217;ThinkPHP&#8217;,&#8217;ThinkPHP@gmail.com&#8217;) \u767b\u5f55\u540e\u590d\u5236 \u8be5\u884c\u5c06\u88ab\u63d2\u5165\u5230 1002 \u4e4b\u540e\u8fd8\u662f 1004 \u4e4b\u540e\uff1f \u7b54\u6848\uff1a \u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u8868\u662f\u8bb0\u5f55\u7684\u65e0\u5e8f\u96c6\u5408\u3002\u4e5f\u5c31\u662f\u8bf4\uff1a \u5728\u4e0d\u4f7f\u7528 order by \u5b50\u53e5\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0d\u80fd\u5047\u8bbe\u8bb0\u5f55\u6709\u4efb\u4f55\u7279\u5b9a\u987a\u5e8f\u3002 \u65b0\u63d2\u5165\u7684\u884c\u53ef\u80fd\u4f1a\u88ab\u653e\u7f6e\u5728\u8868\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u5305\u62ec\u5f00\u5934\u6216\u7ed3\u5c3e\u3002 \u4ee5\u4e0a\u5c31\u662fMySQL \u65b0\u589e\u884c\u8bb0\u5f55\u63d2\u5165\u4f4d\u7f6e\uff1a\u81ea\u52a8\u6392\u5e8f\u8fd8\u662f\u6700\u540e\u63d2\u5165\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-25765","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=25765"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25765\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}