跟小D每日学口语
摘要: Declare @Id Int Set @Id = 0; ---在此修改父节点 With RootNodeCTE(NodeId,ParentId,[text],orderid) As ( Select NodeId,ParentId,[text],orderid From S_Tree Where ParentId In (@Id) Union All Select S_Tree.NodeId,S_Tree.ParentId,S_Tree.[text],s_tree.orderid From RootNodeCTE Inner Join S_Tree On RootNodeCTE.NodeI. 阅读全文
posted @ 2012-03-12 23:40 Danny Chen 阅读(288) 评论(0) 推荐(0)
摘要: HTML特殊转义字符列表 最常用的字符实体 Character Entities 显示 说明 实体名称 实体编号 半方大的空白 &ensp; &#8194; 全方大的空白 &emsp; &#8195; 不断行的空白格 &nbsp; &#160; < 小于 &lt; &#60; > 大于 &gt; &#62; & &符号 &amp; &#38; " 双引号 &quot; &#34; ? 版权 &copy; &#169; ? 已注册商 阅读全文
posted @ 2012-03-12 16:10 Danny Chen 阅读(324) 评论(0) 推荐(0)
摘要: 定义正如MSDN中所描述的那样-----“特性是被指定给某一声明的一则附加的声明性信息。”使用预定义(Pre-defined)特性在C#中,有一个小的预定义特性集合。在学习如何建立我们自己的定制特性(custom attributes)之前,我们先来看看在我们的代码中如何使用预定义特性。using System;public class AnyClass{[Obsolete("Don't use Old method, use New method", true)]static void Old( ) { }static void New( ) { }public 阅读全文
posted @ 2012-03-12 14:56 Danny Chen 阅读(305) 评论(0) 推荐(0)
摘要: --调用方法:--select*fromGetChild('24')--selectidfromGetChild('24')--select*fromKuCunwhereProductTypein(selectidfromGetChild('24'))Createfunction[dbo].[GetChild](@IDvarchar(10))returns@ttable(IDvarchar(10),ParentIDvarchar(10),Levelint)asbegindeclare@iintset@i=1insertinto@tselect@I 阅读全文
posted @ 2012-03-12 10:36 Danny Chen 阅读(806) 评论(0) 推荐(0)