2016年8月23日
摘要: sql实际应用-递归查询 1、既然要谈到sql,数据库表是必须的 2、数据结构 3、获取某个节点的所有子节点 传统的写法(sql2000) 很麻烦,暂且就不写了 来看看CTE的写法 CREATE PROC sp_getTreeById(@TreeId int) ASBEGINWITH cteTree 阅读全文
posted @ 2016-08-23 18:00 飘海之舟 阅读(853) 评论(0) 推荐(0)
  2015年7月11日
摘要: 解决方法:管理员运行cmd,运行命令netsh winsock reset备忘 阅读全文
posted @ 2015-07-11 16:08 飘海之舟 阅读(226) 评论(0) 推荐(0)
  2015年1月28日
摘要: static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Application.E... 阅读全文
posted @ 2015-01-28 16:10 飘海之舟 阅读(100) 评论(0) 推荐(0)
  2013年11月12日
摘要: /// /// 获取外网Ip /// /// public static string GetInternetIP() { try { string strUrl = "http://iframe.ip138.com/ic.asp"; System.Uri uri = new System.Uri(strUrl); System.Net.WebRequest wr = System.Ne... 阅读全文
posted @ 2013-11-12 21:05 飘海之舟 阅读(446) 评论(0) 推荐(0)
  2013年11月6日
摘要: int[] intArr=new int[100];ArrayList myList=new ArrayList();Random rnd=new Random();while(myList.Count<100){int num=rnd.Next(1,101);if(!myList.Contains(num))myList.Add(num);}for(int i=0;i<100;i++)intArr[i]=(int)myList[i]; 阅读全文
posted @ 2013-11-06 10:33 飘海之舟 阅读(97) 评论(0) 推荐(0)