{"id":4484,"date":"2019-09-21T15:56:57","date_gmt":"2019-09-21T07:56:57","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=4484"},"modified":"2019-09-21T15:56:57","modified_gmt":"2019-09-21T07:56:57","slug":"%e5%88%ab%e5%86%8d%e8%a2%ab-where-11-%e9%aa%97%e4%ba%86%e5%a5%bd%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=4484","title":{"rendered":"\u522b\u518d\u88ab where 1=1 \u9a97\u4e86\u597d\u5417\uff1f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4e0d\u5c11\u7a0b\u5e8f\u5458\u8001\u53f8\u673a\u90fd\u4f1a\u544a\u8bc9\u6211\u4eec\uff0c\u522b\u4f7f\u7528 where 1=1\uff0c\u56e0\u4e3a\u5b58\u5728\u6027\u80fd\u95ee\u9898\u3002\u4f46\u5b9e\u9645\u771f\u7684\u662f\u8fd9\u6837\u5417\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e5f\u6709\u4e0d\u5c11\u770b\u8fc7\u6781\u5ba2\u65f6\u95f4\u300aMySQL\u5b9e\u621845\u8bb2\u300b\u7684\u670b\u53cb\u56de\u7b54\u9519\u8bef\u3002\u8fd9\u867d\u7136\u662f\u4e00\u4e2a\u5c0f\u77e5\u8bc6\uff0c\u4f46\u662f\u5f88\u591a\u4eba\u90fd\u6ca1\u6709\u601d\u8003\u8fc7\u8fd9\u4e2a\u95ee\u9898\u3002\u4eca\u5929\u6211\u4eec\u6765\u4e00\u63a2\u7a76\u7adf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5f88\u591a\u65f6\u5019\uff0c\u6211\u4eec\u9762\u4e34\u7740\u62fc\u63a5 SQL \u7684\u4e1a\u52a1\u3002\u800c\u62fc\u63a5 SQL \u4e00\u822c\u9700\u8981\u7528 AND \u8fde\u63a5\uff0c\u800c where \u540e\u9762\u7b2c\u4e00\u4e2a\u6761\u4ef6\u662f\u4e0d\u80fd\u5199 AND \u7684\uff0c\u6240\u4ee5\uff0c\u5f80\u5f80\u5728\u62fc\u63a5 SQL \u65f6\u8981\u6ce8\u610f\u6211\u7684\u67e5\u8be2\u6761\u4ef6\u662f\u4e0d\u662f where \u540e\u9762\u7684\u7b2c\u4e00\u4e2a\u67e5\u8be2\u6761\u4ef6\u3002\u5982\u679c\u662f\uff0c\u5219\u53bb\u6389 AND\uff0c\u5982\u679c\u4e0d\u662f\u5219\u53ef\u4ee5\u62fc\u63a5\u4e0a AND\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u51cf\u5c11\u5224\u65ad\u7684\u9ebb\u70e6\uff0c\u5f88\u591a\u4eba\u76f4\u63a5\u5728 where \u540e\u9762\u5199\u4e0a 1=1 \u4f5c\u4e3a\u7b2c\u4e00\u4e2a\u67e5\u8be2\u6761\u4ef6\uff0c\u8fd9\u6837\u5728\u62fc\u63a5\u65f6\uff0c\u5c31\u4e0d\u9700\u8981\u5173\u6ce8\u662f\u5426\u9700\u8981 AND \u4e86\u3002\u8fd9\u79cd\u5f62\u5f0f\uff0c\u6781\u5927\u7684\u52a0\u5feb\u4e86\u6211\u4eec\u7684\u5f00\u53d1\u6548\u7387\u3002\u7136\u800c\uff0c\u6709\u4e0d\u5c11\u4eba\u8bf4\uff0cwhere 1=1 \u6d6a\u8d39\u6027\u80fd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u6b64\uff0c\u6211\u4eec\u901a\u8fc7 MySQL \u7684\u6267\u884c\u8ba1\u5212\uff0c\u770b\u770b\u662f\u4e0d\u662f\u771f\u7684\u6709\u6548\u7387\u65b9\u9762\u7684\u95ee\u9898\uff1f<\/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\/mw690\/8fa5dcfcgy1g776rhkm7bj21sm0u0jw6.jpg\" alt=\"\" \/><figcaption>where 1=1<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u770b\u5230 where 1=1 \u5bf9\u662f\u5426\u7d22\u5f15\u4e4b\u7c7b\u7684\u5e76\u65e0\u5f71\u54cd\u3002\u5f53\u591a\u6761\u4ef6\u8fde\u63a5\u65f6\u4f30\u8ba1\u7684\u6570\u636e\u91cf\u7b49\u4e8e\u6bcf\u4e2a\u7b5b\u9009\u6761\u4ef6\u7684\u9009\u62e9\u6027\u76f8\u4e58\u3002\u800c1\u7b49\u4e8e1\u8fd9\u4e2a\u6761\u4ef6\u9009\u62e9\u6027\u6c38\u8fdc\u4e3a1\uff0c\u6240\u4ee5\u76f8\u4e58\u540e\u4e0d\u6539\u53d8\u539f\u503c\u3002\u53e6\u5916\uff0c1\u7b49\u4e8e1\u8fd9\u79cd\u5e38\u91cf\u7b49\u5f0f\u5728\u67e5\u8be2\u5206\u6790\u5668\u4ee3\u6570\u4f18\u5316\u9636\u6bb5\u5df2\u7ecf\u81ea\u52a8\u8fc7\u6ee4\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u5b9e\uff0c1=1 \u662f\u6c38\u6052\u6210\u7acb\u7684\uff0c\u610f\u601d\u65e0\u6761\u4ef6\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u5728 SQL \u8bed\u53e5\u4e2d\u6709\u6ca1\u6709\u8fd9\u4e2a 1=1 \u90fd\u53ef\u4ee5\u3002\u7136\u540e where 1=1 \u4f1a\u5728\u4f18\u5316\u5668\u6267\u884c\u671f\u95f4\u7ed9\u4f18\u5316\u6389\u3002\u6240\u4ee5\uff0c\u5bf9\u6027\u80fd\u6ca1\u5565\u5f71\u54cd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u5916\uff0c\u5173\u4e8e where AND \u8fd9\u4e2a\u95ee\u9898\uff0c\u5176\u5b9e\u53ef\u4ee5\u4ece MySQL \u6570\u636e\u5e93\u5c42\u9762\u7ed9\u4f18\u5316\u6389\u3002\u6bd4\u5982\uff0cAliSQL \u7b49 MySQL \u5206\u652f\u5c06\u6765\u5c31\u53ef\u80fd\u652f\u6301 where \u540e\u9762\u7b2c\u4e00\u4e2a\u67e5\u8be2\u6761\u4ef6\u652f\u6301 AND\uff0c\u4f7f\u5176\u5728\u6267\u884c\u65f6\u4e0d\u62a5\u9519\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u4ece\u6846\u67b6\u5c42\u9762\u4e0b\u624b\u53bb\u4f18\u5316\uff0c\u603b\u4e4b\u624b\u6bb5\u6709\u5f88\u591a\uff0c\u66f4\u4f55\u51b5 where 1=1 \u5e76\u4e0d\u5f71\u54cd\u6027\u80fd\u5462\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=4484\">\u522b\u518d\u88ab where 1=1 \u9a97\u4e86\u597d\u5417\uff1f<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u5c11\u7a0b\u5e8f\u5458\u8001\u53f8\u673a\u90fd\u4f1a\u544a\u8bc9\u6211\u4eec\uff0c\u522b\u4f7f\u7528 where 1=1\uff0c\u56e0\u4e3a\u5b58\u5728\u6027\u80fd\u95ee\u9898\u3002\u4f46\u5b9e\u9645\u771f\u7684\u662f\u8fd9\u6837\u5417\uff1f \u4e5f\u6709\u4e0d\u5c11\u770b\u8fc7 [&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":[83,580,106,43,77],"class_list":["post-4484","post","type-post","status-publish","format-standard","hentry","category-sql","tag-mysql","tag-mysql----dba","tag-106","tag-43","tag-77"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4484","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=4484"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4484\/revisions"}],"predecessor-version":[{"id":4485,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/4484\/revisions\/4485"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}