{"id":589,"date":"2010-08-24T13:44:00","date_gmt":"2010-08-24T05:44:00","guid":{"rendered":"http:\/\/note.systw.net\/note\/?p=589"},"modified":"2023-11-04T13:44:47","modified_gmt":"2023-11-04T05:44:47","slug":"%e5%90%88%e4%bd%b5%e7%90%86%e8%ab%96","status":"publish","type":"post","link":"https:\/\/systw.net\/note\/archives\/589","title":{"rendered":"\u5408\u4f75\u7406\u8ad6"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u5408\u4f75\u7406\u8ad6<\/strong><br>\u76ee\u7684:\u900f\u904ejoin(\u5408\u4f75)\u904e\u7a0b\u5f97\u5230\u4e00\u500b\u865b\u64ec\u95dc\u806f\u4f86\u9054\u5230\u67e5\u8a62\u4e0a\u7684\u65b9\u4fbf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">join\u6709\u4ee5\u4e0b\u5e7e\u7a2e<br><strong>cross join(\u4ea4\u53c9\u5408\u4f75)<\/strong><br>\u4e5f\u7a31cartesian product(\u5361\u6c0f\u7a4d)\u6216cross product(\u4ea4\u53c9\u4e58\u7a4d)<br>\u985e\u4f3c\u4e58\u6cd5\u7684\u6982\u5ff5<br><strong>inner join(\u5167\u90e8\u5408\u4f75)\/condition join(\u689d\u4ef6\u5408\u4f75)<\/strong><br>\u4f7f\u7528\u4ea4\u96c6\u7684\u6982\u5ff5,\u53ea\u6703\u5f9e\u5169table\u4e2d\u53d6\u51fa\u76f8\u540c\u7684\u90e8\u4efd<br><strong>outer join(\u5916\u90e8\u5408\u4f75)<\/strong><br>\u53ef\u5728\u5206\u70ba\u4ee5\u4e0b<br>\u3000left outer join,\u4ee5\u7b2c\u4e00\u500btable\u70ba\u6e96<br>\u3000right outer join,\u4ee5\u7b2c\u4e8c\u500btable\u70ba\u6e96<br>\u3000full outer join:\u5169table\u7684\u806f\u96c6<br><strong>self-join(\u81ea\u6211\u5408\u4f75)<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u90192\u8cc7\u6599\u8868\u70ba\u4f8b<br><strong>(src_ip , dst_port , sig_id)<\/strong><br>192.168.1.5 , 80 , 0<br>192.168.1.1 , 80 , 1<br>192.168.1.2 , 443 , 2<strong><br>(sig_id , sig_name)<\/strong><br>1 , sql_injection<br>2 , ddos<br>3 , backdoor<br>4 , shellcode<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>inner join<\/strong><br>\u51712\u7b46,\u7d50\u679c\u5982\u4e0b<br>(src_ip , dst_port , sig_id , sig_name)<br>192.168.1.1 , 80 , 1 , sql_injection<br>192.168.1.2 , 443 , 2 , ddos<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>left outer join<\/strong><br>\u51712(inner)+1(left)\u7b46,\u7d50\u679c\u5982\u4e0b<br>(src_ip , dst_port , sig_id , sig_name)<br><strong>192.168.1.5 , 80 , 0 , null<\/strong><br>192.168.1.1 , 80 , 1 , sql_injection<br>192.168.1.2 , 443 , 2 , ddos<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>right outer join<\/strong><br>\u51712(inner)+2(right)\u7b46,\u7d50\u679c\u5982\u4e0b<br>(src_ip , dst_port , sig_id , sig_name)<br>192.168.1.1 , 80 , 1 , sql_injection<br>192.168.1.2 , 443 , 2 , ddos<br><strong>null , null , 3 , backdoor<br>null , null , 4 , shellcode<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>full join<\/strong><br>\u51712(inner)+1(left)+2(right)\u7b46,\u7d50\u679c\u5982\u4e0b<br>(src_ip , dst_port , sig_id , sig_name)<br><strong>192.168.1.5 , 80 , 0 , null<\/strong><br>192.168.1.1 , 80 , 1 , sql_injection<br>192.168.1.2 , 443 , 2 , ddos<br><strong>null , null , 3 , backdoor<br>null , null , 4 , shellcode<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5408\u4f75\u7406\u8ad6\u76ee\u7684:\u900f\u904ejoin(\u5408\u4f75)\u904e\u7a0b\u5f97\u5230\u4e00\u500b\u865b\u64ec\u95dc\u806f\u4f86\u9054\u5230 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16],"tags":[],"class_list":["post-589","post","type-post","status-publish","format-standard","hentry","category-database"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":581,"url":"https:\/\/systw.net\/note\/archives\/581","url_meta":{"origin":589,"position":0},"title":"SQL DML","author":"raymond","date":"2010 \u5e74 8 \u6708 24 \u65e5","format":false,"excerpt":"DML \u65b0\u589e\u8cc7\u6599\u65b0\u589e1\u7b46\u8cc7\u6599INSERT INTO < tablename>(colum\u2026","rel":"","context":"\u5728\u300c\u8cc7\u6599\u5eab\u300d\u4e2d","block_context":{"text":"\u8cc7\u6599\u5eab","link":"https:\/\/systw.net\/note\/archives\/category\/develop\/database"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":568,"url":"https:\/\/systw.net\/note\/archives\/568","url_meta":{"origin":589,"position":1},"title":"Sort","author":"raymond","date":"2007 \u5e74 3 \u6708 5 \u65e5","format":false,"excerpt":"\u5b9a\u7fa9stable sort(\u7a69\u5b9a\u7684\u6392\u5e8f\u6cd5):\u82e5\u6709\u76f8\u540c\u8cc7\u6599\uff0c\u5247\u76f8\u5c0d\u4f4d\u7f6e\u4e0d\u6703\u6539\u8b8acomparison s\u2026","rel":"","context":"\u5728\u300c\u8cc7\u6599\u7d50\u69cb\u8207\u6f14\u7b97\u6cd5\u300d\u4e2d","block_context":{"text":"\u8cc7\u6599\u7d50\u69cb\u8207\u6f14\u7b97\u6cd5","link":"https:\/\/systw.net\/note\/archives\/category\/develop\/algorithm"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":593,"url":"https:\/\/systw.net\/note\/archives\/593","url_meta":{"origin":589,"position":2},"title":"\u95dc\u806f\u6a21\u578b","author":"raymond","date":"2010 \u5e74 8 \u6708 24 \u65e5","format":false,"excerpt":"\u95dc\u806f\u5f0f\u6a21\u578b\u4ee5table(\u8cc7\u6599\u8868)\u7684\u65b9\u5f0f\u4f86\u5448\u73fe\u6b64table\u5728\u95dc\u806f\u5f0f\u6a21\u578b\u4e2d\u7a31\u70baRelation(\u95dc\u806f)\u6216\u2026","rel":"","context":"\u5728\u300c\u8cc7\u6599\u5eab\u300d\u4e2d","block_context":{"text":"\u8cc7\u6599\u5eab","link":"https:\/\/systw.net\/note\/archives\/category\/develop\/database"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2762,"url":"https:\/\/systw.net\/note\/archives\/2762","url_meta":{"origin":589,"position":3},"title":"SQLi Login Bypass","author":"raymond","date":"2024 \u5e74 9 \u6708 1 \u65e5","format":false,"excerpt":"SQL\u6ce8\u5165\u767b\u5165\u7e5e\u904e\u662f\u4e00\u7a2e\u5229\u7528 SQL \u6ce8\u5165\u6f0f\u6d1e\uff0c\u5728\u4e0d\u77e5\u9053\u6709\u6548\u5e33\u865f\u6216\u5bc6\u78bc\u7684\u60c5\u6cc1\u4e0b\uff0c\u6210\u529f\u767b\u5165\u7cfb\u7d71\u7684\u653b\u64ca\u624b\u2026","rel":"","context":"\u5728\u300cServerSide\u300d\u4e2d","block_context":{"text":"ServerSide","link":"https:\/\/systw.net\/note\/archives\/category\/hackerthreat\/serverside"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":511,"url":"https:\/\/systw.net\/note\/archives\/511","url_meta":{"origin":589,"position":4},"title":"Python pandas access","author":"raymond","date":"2019 \u5e74 7 \u6708 6 \u65e5","format":false,"excerpt":"\u63a7\u5236dataframe ......................................\u2026","rel":"","context":"\u5728\u300c\u958b\u767c\u300d\u4e2d","block_context":{"text":"\u958b\u767c","link":"https:\/\/systw.net\/note\/archives\/category\/develop"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":391,"url":"https:\/\/systw.net\/note\/archives\/391","url_meta":{"origin":589,"position":5},"title":"\u5c0d\u7a31\u5f0f\u52a0\u5bc6DES","author":"raymond","date":"2013 \u5e74 1 \u6708 29 \u65e5","format":false,"excerpt":"DES(data encryption standard,\u7f8e\u570b\u8cc7\u6599\u52a0\u5bc6\u6a19\u6e96)1976\u5e74\u5f8c\u768430\u5e7e\u5e74,\u2026","rel":"","context":"\u5728\u300cCryptographic Fundamentals\u300d\u4e2d","block_context":{"text":"Cryptographic Fundamentals","link":"https:\/\/systw.net\/note\/archives\/category\/securitysloution\/cryptographic-fundamentals"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/comments?post=589"}],"version-history":[{"count":0,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/589\/revisions"}],"wp:attachment":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/media?parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/categories?post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/tags?post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}