
<?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> &#x8981;&#x81EA;&#x52A8;&#x5316;&#x5C31;&#x5FC5;&#x987B;&#x7B80;&#x5355;&#x5316;&#xFF0C;&#x4E0D;&#x8981;&#x628A;&#x7B80;&#x5355;&#x7684;&#x95EE;&#x9898;&#x590D;&#x6742;&#x5316;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x39;&#x2D;&#x31;&#x31;&#x2D;&#x31;&#x32;&#x20;&#x31;&#x31;&#x3A;&#x33;&#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> &#x5047;&#x5982;&#x6709;&#x5982;&#x4E0B;&#x4E00;&#x5F20;&#x8868;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Cr&#101;ate Table Products(<br/>&#160;&#160;&#160;&#160;ProductID int identity(1,1) Primary key,<br/>&#160;&#160;&#160;&#160;ProductName nvarchar(100) not null,<br/>&#160;&#160;&#160;&#160;CatalogName nvarchar(50) not null<br/>)<br/>&#x6211;&#x4EEC;&#x7528;&#x5DE5;&#x5177;&#x4E3A;&#x4ED6;&#x751F;&#x6210;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x64CD;&#x4F5C;&#x8BED;&#x53E5;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Sel&#101;ct * FROM Products Wh&#101;re @condition<br/>Ins&#101;rt INTO Products(ProductName,CatalogName) VALUES(@ProductName,@CatalogName)<br/>Up&#100;ate Products SET ProductName=@ProductName,CatalogName=@CatalogName Wh&#101;re ProductID=@ProductID<br/>Del&#101;te FROM Products Wh&#101;re ProductID=@ProductID<br/>&#x4F46;&#x5728;&#x5B9E;&#x9645;&#x8FD0;&#x7528;&#x4E2D;&#xFF0C;&#x901A;&#x5E38;&#x4E0D;&#x662F;&#x628A;CatalogName&#x76F4;&#x63A5;&#x653E;&#x5728;Products&#x8868;&#x4E2D;&#x7684;&#xFF0C;Products&#x8868;&#x4E2D;&#x53EA;&#x5B58;&#x653E;CatalogID&#x7684;&#x503C;&#xFF0C;&#x8868;&#x7ED3;&#x6784;&#x5982;&#x4E0B;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Cr&#101;ate Table Catalog(<br/>&#160;&#160;&#160;&#160;CatalogID int identity(1,1) Primary key,<br/>&#160;&#160;&#160;&#160;CatalogName nvarchar(100) not null<br/>)<br/>Cr&#101;ate Table Products(<br/>&#160;&#160;&#160;&#160;ProductID int identity(1,1) Primary key,<br/>&#160;&#160;&#160;&#160;ProductName nvarchar(100) not null,<br/>&#160;&#160;&#160;&#160;CatalogID int /*&#x6307;&#x5411;Catalog&#x8868;&#x7684;CatalogID*/<br/>)<br/>&#x540C;&#x6837;&#x4E5F;&#x7528;&#x5DE5;&#x5177;&#x751F;&#x6210;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x64CD;&#x4F5C;&#x8BED;&#x53E5;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Sel&#101;ct * FROM Products Wh&#101;re @condition<br/>Ins&#101;rt INTO Products(ProductName,CatalogID) VALUES(@ProductName,@CatalogID)<br/>Up&#100;ate Products SET ProductName=@ProductName,CatalogID=@CatalogID Wh&#101;re ProductID=@ProductID<br/>Del&#101;te FROM Products Wh&#101;re ProductID=@ProductID<br/>&#x4F46;&#x5728;&#x4F7F;&#x7528;&#x4E2D;&#x6709;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5728;&#x7528;&#x6237;&#x754C;&#x9762;&#x4E0A;&#x663E;&#x793A;CatalogName&#xFF0C;&#x800C;&#x4E0D;&#x662F;CatalogID&#xFF0C;&#x8FD9;&#x65F6;&#x6211;&#x4EEC;&#x5F88;&#34;&#x806A;&#x660E;&#34;&#x7684;&#x60F3;&#x5230;&#xFF0C;&#x591A;&#x8868;&#x67E5;&#x8BE2;&#x561B;&#xFF0C;&#x5F88;&#x7B80;&#x5355;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;Sel&#101;ct a.@ProductID,a.ProductName,b.CatalogName FROM Products a LEFT JOIN Catalog b ON a.CatalogID=b.CatalogID<br/>&#x8FD9;&#x53EA;&#x662F;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x4F8B;&#x5B50;&#xFF0C;&#x5B9E;&#x9645;&#x9879;&#x76EE;&#x4E2D;&#x5F88;&#x591A;&#x8868;&#x95F4;&#x7684;&#x5B57;&#x6BB5;&#x90FD;&#x662F;&#x5173;&#x8054;&#x7684;&#xFF0C;&#x4E8E;&#x662F;&#x81EA;&#x52A8;&#x5316;&#x5DE5;&#x5177;&#x7684;&#x6076;&#x68A6;&#x5C31;&#x6765;&#x4E86;&#xFF0C;&#x4E0D;&#x8BBA;&#x4ED6;&#x600E;&#x4E48;&#x667A;&#x80FD;&#xFF0C;&#x6C38;&#x8FDC;&#x6EE1;&#x8DB3;&#x4E0D;&#x4E86;&#x9700;&#x6C42;&#xFF0C;&#x53EA;&#x597D;&#x624B;&#x5DE5;&#x5199;&#x4E86;&#xFF0C;&#x6211;&#x4EEC;&#x53C8;&#x6210;&#x529F;&#x7684;&#x7406;&#x7531;&#x5145;&#x5206;&#x7684;&#x8BF4;&#x670D;&#x81EA;&#x5DF1;&#x6210;&#x4E86;&#x4EE3;&#x7801;&#x673A;&#x5668;-_-<br/>&#x8981;&#x81EA;&#x52A8;&#x5316;&#x5C31;&#x5FC5;&#x987B;&#x7B80;&#x5355;&#x5316;&#xFF0C;&#x4E0A;&#x8FB9;&#x4F8B;&#x5B50;&#x8FD8;&#x662F;&#x7528;&#x5DE5;&#x5177;&#x751F;&#x6210;&#x5404;&#x8868;&#x7684;&#x57FA;&#x672C;&#x64CD;&#x4F5C;&#x8BED;&#x53E5;&#xFF0C;&#x5BF9;&#x4E8E;CatalogName&#xFF0C;&#x53EF;&#x5728;&#x9700;&#x8981;&#x65F6;&#x518D;&#x8C03;&#x7528;Catalog&#x8868;&#x7684;&#x64CD;&#x4F5C;&#x8BED;&#x53E5;&#x53E6;&#x5916;&#x8FDB;&#x884C;&#x67E5;&#x8BE2;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;asp:GridView ID=&#34;GridView1&#34; runat=&#34;server&#34; AutoGenerateColumns=&#34;False&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Columns&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:BoundField DataField=&#34;ProductID&#34; HeaderText=&#34;ProductID&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:BoundField DataField=&#34;ProductName&#34; HeaderText=&#34;ProductName&#34; /&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:TemplateField HeaderText=&#34;CatalogName&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ItemTemplate&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;asp:Label ID=&#34;Label1&#34; runat=&#34;server&#34; Text=&#39;&lt;%# GetCatalogName(Eval(&#34;CatalogID&#34;)) %&gt;&#39;&gt;&lt;/asp:Label&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ItemTemplate&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/asp:TemplateField&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Columns&gt;<br/>&lt;/asp:GridView&gt;</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.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x8981;&#x81EA;&#x52A8;&#x5316;&#x5C31;&#x5FC5;&#x987B;&#x7B80;&#x5355;&#x5316;&#xFF0C;&#x4E0D;&#x8981;&#x628A;&#x7B80;&#x5355;&#x7684;&#x95EE;&#x9898;&#x590D;&#x6742;&#x5316;</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.047&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.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
