
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x5999;&#x7528;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x31;&#x3D;&#x31;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x548C;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x31;&#x3C;&#x3E;&#x31;&#x26;&#x23;&#x33;&#x34;&#x3B;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x37;&#x2D;&#x31;&#x31;&#x2D;&#x32;&#x31;&#x20;&#x30;&#x30;&#x3A;&#x30;&#x30;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5728;&#x591A;&#x6761;&#x4EF6;&#x52A8;&#x6001;&#x67E5;&#x8BE2;&#x8FC7;&#x7A0B;&#x4E2D;&#x6211;&#x4EEC;&#x5E38;&#x5E38;&#x5F97;&#x6839;&#x636E;&#x9009;&#x62E9;&#x6761;&#x4EF6;&#x52A8;&#x6001;&#x7684;&#x751F;&#x6210;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;&#xFF0C;&#x5047;&#x8BBE;&#x6211;&#x4EEC;&#x5F97;&#x6839;&#x636E;&#x9009;&#x62E9;&#x7684;&#x73ED;&#x7EA7;&#x548C;&#x59D3;&#x540D;&#x4FE1;&#x606F;&#x52A8;&#x6001;&#x7684;&#x67E5;&#x8BE2;&#x5B66;&#x751F;&#x4FE1;&#x606F;&#xFF0C;&#x4E0B;&#x8FB9;&#x63D0;&#x4F9B;&#x4E86;&#x4E09;&#x79CD;&#x751F;&#x6210;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;&#x7684;&#x65B9;&#x6CD5;&#xFF1A;<br/>&#x65B9;&#x6CD5;&#x4E00;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;user_name&nbsp;&nbsp;= Request.Form(&#34;user_name&#34;) &#39;&#x59D3;&#x540D;<br/>user_class = Request.Form(&#34;user_class&#34;) &#39;&#x73ED;&#x7EA7;<br/>sWh&#101;re&nbsp;&nbsp; = &#34;&#34;<br/>If user_name&lt;&gt;&#34;&#34; Then<br/>&#160;&#160;&#160;&#160;If sWh&#101;re = &#34;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = &#34; wh&#101;re user_name=&#39;&#34; &amp; user_name &amp; &#34;&#39; &#34;<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = sWh&#101;re &amp; &#34; and user_name=&#39;&#34; &amp; user_name &amp; &#34;&#39; &#34;<br/>&#160;&#160;&#160;&#160;End If<br/>End If<br/>If user_class&lt;&gt;&#34;&#34; Then<br/>&#160;&#160;&#160;&#160;If sWh&#101;re = &#34;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = &#34; wh&#101;re user_class=&#34; &amp; user_class &amp; &#34; &#34;<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = sWh&#101;re &amp; &#34; and user_class=&#34; &amp; user_class &amp; &#34; &#34;<br/>&#160;&#160;&#160;&#160;End If<br/>End If<br/>sSql = &#34;sel&#101;ct * from student&#34; &amp; sWh&#101;re &#39;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;<br/>&#x65B9;&#x6CD5;&#x4E8C;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;user_name&nbsp;&nbsp;= Request.Form(&#34;user_name&#34;) &#39;&#x59D3;&#x540D;<br/>user_class = Request.Form(&#34;user_class&#34;) &#39;&#x73ED;&#x7EA7;<br/>sWh&#101;re&nbsp;&nbsp; = &#34;&#34;<br/>If user_name&lt;&gt;&#34;&#34; Then<br/>&#160;&#160;&#160;&#160;If sWh&#101;re = &#34;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = &#34; user_name=&#39;&#34; &amp; user_name &amp; &#34;&#39; &#34;<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = sWh&#101;re &amp; &#34; and user_name=&#39;&#34; &amp; user_name &amp; &#34;&#39; &#34;<br/>&#160;&#160;&#160;&#160;End If<br/>End If<br/>If user_class&lt;&gt;&#34;&#34; Then<br/>&#160;&#160;&#160;&#160;If sWh&#101;re = &#34;&#34; Then<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = &#34; user_class=&#34; &amp; user_class &amp; &#34; &#34;<br/>&#160;&#160;&#160;&#160;Else<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sWh&#101;re = sWh&#101;re &amp; &#34; and user_class=&#34; &amp; user_class &amp; &#34; &#34;<br/>&#160;&#160;&#160;&#160;End If<br/>End If<br/>sSql = &#34;sel&#101;ct * from student wh&#101;re&#34; &amp; sWh&#101;re &#39;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;<br/>&#x65B9;&#x6CD5;&#x4E09;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;user_name&nbsp;&nbsp;= Request.Form(&#34;user_name&#34;) &#39;&#x59D3;&#x540D;<br/>user_class = Request.Form(&#34;user_class&#34;) &#39;&#x73ED;&#x7EA7;<br/>sWh&#101;re&nbsp;&nbsp; = &#34;&#34;<br/>If user_name&lt;&gt;&#34;&#34; Then sWh&#101;re = sWh&#101;re &amp; &#34; and user_name=&#39;&#34; &amp; user_name &amp; &#34;&#39; &#34;<br/>If user_class&lt;&gt;&#34;&#34; Then sWh&#101;re = sWh&#101;re &amp; &#34; and user_class=&#34; &amp; user_class &amp; &#34; &#34;<br/>sSql = &#34;sel&#101;ct * from student wh&#101;re 1=1&#34; &amp; sWh&#101;re &#39;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;<br/>&#x6211;&#x4EEC;&#x6765;&#x6BD4;&#x8F83;&#x4E0B;&#x4E09;&#x79CD;&#x65B9;&#x6CD5;<br/>&#x65B9;&#x6CD5;&#x4E00;&#xFF1A;&#x4E0D;&#x4F1A;&#x51FA;&#x9519;&#xFF0C;&#x4EE3;&#x7801;&#x591A;&#xFF1B;<br/>&#x65B9;&#x6CD5;&#x4E8C;&#xFF1A;&#x5728;user_name&#x548C;user_class&#x90FD;&#x4E3A;&#x7A7A;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x4F1A;&#x51FA;&#x73B0;&#34;sel&#101;ct * from student wh&#101;re&#34;&#x8FD9;&#x6837;&#x7684;&#x9519;&#x8BEF;&#x7684;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;&#xFF0C;&#x4EE3;&#x7801;&#x548C;&#x65B9;&#x6CD5;&#x4E00;&#x6837;&#x591A;&#xFF1B;<br/>&#x65B9;&#x6CD5;&#x4E09;&#xFF1A;&#x4E0D;&#x4F1A;&#x51FA;&#x9519;&#xFF0C;&#x4EE3;&#x7801;&#x6700;&#x5C11;&#xFF1B;<br/>&#x663E;&#x7136;&#x65B9;&#x6CD5;&#x4E09;&#x662F;&#x6700;&#x53EF;&#x9009;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x6700;&#x4EE4;&#x4EBA;&#x53EB;&#x7EDD;&#x7684;&#x662F;&#x5B83;&#x7528;&#x4E86;&#34;1=1&#34;&#xFF0C;&#x65E2;&#x51CF;&#x5C11;&#x4E86;&#x4EE3;&#x7801;&#xFF0C;&#x53C8;&#x907F;&#x514D;&#x4E86;&#x51FA;&#x73B0;&#x9519;&#x8BEF;&#x7684;SQL&#x67E5;&#x8BE2;&#x8BED;&#x53E5;&#xFF01;<br/>&#x5173;&#x4E8E;&#34;1=1(&#x6C38;&#x771F;)&#34;&#x548C;&#34;1&lt;&gt;1(&#x6C38;&#x5047;)&#34;&#x7F51;&#x4E0A;&#x4E3E;&#x7684;&#x6BD4;&#x8F83;&#x591A;&#x7684;&#x4F8B;&#x5B50;&#x5C31;&#x662F;&#x5728;&#x62F7;&#x8D1D;&#x8868;&#x548C;&#x590D;&#x5236;&#x8868;&#x7ED3;&#x6784;&#x4E2D;&#x4F7F;&#x7528;&#xFF0C;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;<br/>&#x62F7;&#x8D1D;&#x8868;&#xFF1A;cr&#101;ate table_name as sel&#101;ct * from Source_table wh&#101;re 1=1; <br/>&#x590D;&#x5236;&#x8868;&#x7ED3;&#x6784;&#xFF1A;cr&#101;ate table_name as sel&#101;ct * from Source_table wh&#101;re 1&lt;&gt;1;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.078&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x5999;&#x7528;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x31;&#x3D;&#x31;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x548C;&#x26;&#x23;&#x33;&#x34;&#x3B;&#x31;&#x3C;&#x3E;&#x31;&#x26;&#x23;&#x33;&#x34;&#x3B;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.078&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.094&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
