{"id":4253,"date":"2019-05-17T16:40:18","date_gmt":"2019-05-17T08:40:18","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=4253"},"modified":"2019-05-17T16:40:18","modified_gmt":"2019-05-17T08:40:18","slug":"%e5%af%b9%e4%b8%8d%e8%b5%b7%ef%bc%8c%e4%bd%a0%e8%bf%9e-mysql-%e7%9a%84-delete-%e9%83%bd%e4%b8%8d%e4%bc%9a%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4253","title":{"rendered":"\u5bf9\u4e0d\u8d77\uff0c\u4f60\u8fde MySQL \u7684 Delete \u90fd\u4e0d\u4f1a\uff01"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u8bdd\u9898\u6709\u70b9\u5938\u5f20\uff0c\u4f46\u5176\u5b9e\u4e5f\u662f\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898\u3002\u4f60\u4f1a\u589e\u5220\u6539\u67e5\uff0c\u662f\u4e0d\u662f\u5c31\u4f1a\u4e86 MySQL \u4e00\u4e2a\u9053\u7406\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u5929\u6211\u8981\u8bf4\u7684\u8fd9\u4e2a\u95ee\u9898\u662f\uff0c\u4f60\u4f1a\u4e86 MySQL \u7684 Delete \u8bed\u6cd5\uff0c\u4f1a\u5199 delete \u8bed\u53e5\u662f\u4e0d\u662f\u5c31\u4e00\u5b9a\u4f1a\u5220\u6570\u636e\u4e86\uff1f\u6211\u4eec\u5148\u6765\u770b\u4e00\u4e2a\u4f8b\u5b50\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1g34ebzol73j207n05jdgk.jpg\" alt=\"\" \/><figcaption>\u4f60\u771f\u7684\u4f1a MySQL \u5417\uff1f<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u73b0\u5728\u6709\u4e00\u5f20\u8868\uff0c\u9700\u8981\u5220\u9664\u524d 1 \u4e07\u6761\u6570\u636e\u3002\u6709\u4e0b\u9762\u4e09\u79cdSQL\u8bed\u53e5\uff0c\u4f60\u4f1a\u9009\u62e9\u54ea\u4e00\u4e2a\uff1f\u4e3a\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>delete from xttblog limit 10000; -- \u65b9\u68481\ndelete from xttblog limit 500; -- \u65b9\u68482\uff0c\u4e00\u4e2a\u4f1a\u8bdd\u5faa\u73af\u6267\u884c 20 \u6b21\ndelete from xttblog limit 500; -- \u65b9\u68483\uff0c\u8fde\u63a5\u6c60\u5f0020\u4e2a\u8fde\u63a5\u540c\u65f6\u6267\u884c<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f30\u8ba1\u5f88\u591a\u4eba\u4f1a\u9009\u62e9\u65b9\u68481\u5427\u3002\u56e0\u4e3a\uff0c\u4e00\u6761 SQL \u8bed\u53e5\u80fd\u641e\u5b9a\u7684\u4e8b\uff0c\u4f55\u5fc5\u62c6\u5f00\u5462\uff1f\u800c\u4e14\u5e73\u65f6\u5c31\u662f\u8fd9\u6837\u7528\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u95ee\u9898\u662f\u65b9\u68481\u4f60\u5728\u672c\u5730\uff0c\u6d4b\u8bd5\u73af\u5883\u7528\u5e76\u6ca1\u4ec0\u4e48\u6bdb\u75c5\u3002\u4f46\u662f\u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u7528\uff0c\u4f60\u60f3\u60f3\u770b\uff0c\u8fd9\u662f\u4e0d\u662f\u4e00\u4e2a\u957f\u4e8b\u52a1\uff0c\u5927\u4e8b\u52a1\u3002\u4f1a\u4e0d\u4f1a\u963b\u585e\u5176\u4ed6\u7684\u64cd\u4f5c\uff1f\u4f1a\u4e0d\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u867d\u7136\u770b\u8d77\u6765 SQL \u8bed\u53e5\u6ca1\u5199\u9519\u3002\u7b80\u5355\u3001\u6709\u6548\u3001\u7c97\u66b4\uff0c\u4f46\u662f\uff0c\u4e8b\u52a1\u76f8\u5bf9\u8f83\u957f\uff0c\u5219\u5360\u7528\u9501\u7684\u65f6\u95f4\u8f83\u957f\uff0c\u4f1a\u5bfc\u81f4\u5176\u4ed6\u5ba2\u6237\u7aef\u7b49\u5f85\u8d44\u6e90\u65f6\u95f4\u8f83\u957f\u3002\u4e25\u91cd\u4e00\u4e9b\u7684\u8bf4\uff0c\u8fd9\u4e2a\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5176\u4ed6\u5f88\u591a\u64cd\u4f5c\u8d85\u65f6\uff0c\u7ee7\u800c\u6269\u5927\u5371\u5bb3\u3002\u6211\u4eec\u7535\u5546\u7cfb\u7edf\u5c31\u53d1\u751f\u8fc7\u4e00\u6b21\u7c7b\u4f3c\u7684\u4e8b\u60c5\uff0c\u5ba2\u670d\u7535\u8bdd\u77ac\u95f4\u6324\u7206\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u8bf4\u65b9\u68482\uff0c\u6bcf\u6b21\u5220\u9664 500 \u6761\u6570\u636e\uff0c\u770b\u8d77\u6765\u5b9e\u73b0\u7684\u6bd4\u8f83\u590d\u6742\uff0c\u4f46\u662f\u5b89\u5168\uff0c\u53ef\u9760\u3002\u4e32\u884c\u5316\u6267\u884c\uff0c\u5c06\u76f8\u5bf9\u957f\u7684\u4e8b\u52a1\u5206\u6210\u591a\u6b21\u76f8\u5bf9\u77ed\u7684\u4e8b\u52a1\uff0c\u5219\u6bcf\u6b21\u4e8b\u52a1\u5360\u7528\u9501\u7684\u65f6\u95f4\u76f8\u5bf9\u8f83\u77ed\uff0c\u5176\u4ed6\u5ba2\u6237\u7aef\u5728\u7b49\u5f85\u76f8\u5e94\u8d44\u6e90\u7684\u65f6\u95f4\u4e5f\u8f83\u77ed\u3002\u8fd9\u6837\u7684\u64cd\u4f5c\uff0c\u540c\u65f6\u4e5f\u610f\u5473\u7740\u5c06\u8d44\u6e90\u5206\u7247\u4f7f\u7528\uff08\u6bcf\u6b21\u6267\u884c\u4f7f\u7528\u4e0d\u540c\u7247\u6bb5\u7684\u8d44\u6e90\uff09\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5e76\u53d1\u6027\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u65b9\u68483\uff0c\u5f00\u4e00\u5806\u7ebf\u7a0b\u3002\u4eba\u4e3a\u81ea\u5df1\u5236\u9020\u9501\u7ade\u4e89\uff0c\u52a0\u5267\u5e76\u53d1\u91cf\u3002\u591a\u4e2a\u4e8b\u52a1\u4f1a\u5bf9\u540c\u4e00\u884c\u4ea7\u751f\u9501\u7ade\u4e89\uff0c\u6d88\u8017cpu\u8d44\u6e90\u3002CPU \u53ef\u80fd\u4f1a\u5728\u77ac\u95f4\u98d9\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u8bf4\uff0c\u4e0d\u8981\u56fa\u6267\u7684\u8ba4\u4e3a delete \u8bed\u53e5\u5f88\u7b80\u5355\u3002\u4e0a\u9762\u4e09\u79cd\u65b9\u6848\u81f3\u4e8e\u9009\u54ea\u4e00\u79cd\u65b9\u6848\u8981\u7ed3\u5408\u5b9e\u9645\u573a\u666f\uff0c\u7efc\u5408\u8003\u8651\u5404\u4e2a\u56e0\u7d20\u5427\uff0c\u6bd4\u5982\u8868\u7684\u5927\u5c0f\uff0c\u5e76\u53d1\u91cf\uff0c\u4e1a\u52a1\u5bf9\u6b64\u8868\u7684\u4f9d\u8d56\u7a0b\u5ea6\u7b49\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u5916\uff0c\u4e0a\u9762 3 \u4e2a delete \u8bed\u53e5\uff0c\u6211\u4eec\u5e73\u65f6\u90fd\u4e0d\u5e38\u89c1\u3002\u800c\u4e14\u5e73\u65f6\u4e5f\u4e0d\u5e94\u8be5\u8fd9\u6837\u5199\uff0c\u5220\u9664\u6570\u636e\uff0c\u8981\u5148\u628a id \u627e\u51fa\u6765\uff0c\u518d\u6839\u636e id \u6765\u8fdb\u884c\u5220\u9664\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/wx1.sinaimg.cn\/large\/8fa5dcfcgy1g34eicuprqj209o073jsf.jpg\" alt=\"\" \/><figcaption>delete \u6211\u90fd\u4e0d\u4f1a\u4e86<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u9762\u8bd5\u7684\u65f6\u5019\u51fa\u8fd9\u4e2a\u9898\uff1a\u201c\u5047\u8bbe\u73b0\u5728\u6709\u4e00\u5f20\u8868\uff0c\u9700\u8981\u5220\u9664\u524d 1 \u4e07\u6761\u6570\u636e\uff1f\u201d\uff0c\u4f60\u522b\u4e00\u4e0b\u5b50\u5c31\u628a\u65b9\u68481\u76f4\u63a5\u62ff\u51fa\u6765\u3002\u8fd9\u6837\u4f60\u5c31\u6b7b\u5b9a\u4e86\uff0c\u53bb\u5e74\u6211\u4eec\u5c31\u6709\u8fd9\u6837\u7684\u9762\u8bd5\u9898\uff0c\u4e0d\u5c11\u4eba\u6389\u5751\u91cc\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u5b9e\u7f16\u7a0b\u6700\u91cd\u8981\u7684\u662f\u601d\u8003\u548c\u601d\u60f3\uff0c\u800c\u4e0d\u662f\u5199\u4ee3\u7801\uff01\u4f60\u662f\u5426\u8ba4\u540c\uff1f\u8bf7\u7559\u8a00\u3002\u6700\u540e\u6253\u4e2a\u5c0f\u5e7f\u544a\uff0c\u60f3\u4e70\u6781\u5ba2\u65f6\u95f4\u5b66\u4e60\u8bfe\u7a0b\u7684\u8bf7\u52a0\u6211\u5fae\u4fe1\u53f7\uff1axttblog\uff0c\u6240\u6709\u8bfe\u7a0b\u90fd\u6709\u8fd4\u73b0\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=4253\">\u5bf9\u4e0d\u8d77\uff0c\u4f60\u8fde MySQL \u7684 Delete \u90fd\u4e0d\u4f1a\uff01<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u8bdd\u9898\u6709\u70b9\u5938\u5f20\uff0c\u4f46\u5176\u5b9e\u4e5f\u662f\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898\u3002\u4f60\u4f1a\u589e\u5220\u6539\u67e5\uff0c\u662f\u4e0d\u662f\u5c31\u4f1a\u4e86 MySQL \u4e00\u4e2a\u9053\u7406\u3002 \u4eca\u5929\u6211\u8981\u8bf4\u7684\u8fd9 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[1090,83,97,391,393],"class_list":["post-4253","post","type-post","status-publish","format-standard","hentry","category-sql","tag-dba_jobs_running","tag-mysql","tag-mysqldumpslow"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4253"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4253\/revisions"}],"predecessor-version":[{"id":4254,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4253\/revisions\/4254"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}