摘要: declare @randnum nvarchar(50) declare @OrderNo NVARCHAR(50)set @randnum=CONVERT(nvarchar,(select cast( floor(rand()*1000) as int)),11)SET @OrderNo='11... 阅读全文
posted @ 2015-07-02 16:56 才高远志 阅读(87) 评论(0) 推荐(0) 编辑
摘要: public void LoadTree(string path, TreeNode node = null) { string[] dirs = Directory.GetDirectories(path); foreach (var dir in dirs) { ... 阅读全文
posted @ 2015-06-20 14:49 才高远志 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-01-30 14:15 才高远志 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.排序的类public class BubbleSorter { static public void Sort(IList sortArray, Func comparison) { bool swapped = true; do { ... 阅读全文
posted @ 2015-01-30 10:55 才高远志 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //1. ref/out是用来修饰方法的参数的. //2. 调用的时候 给ref/out赋值 不能赋值1个常量 只能给变量. 变量前面也要加1个ref/out //3. 在给ref/out参数赋值的时候,赋值的是变量的地址. //4. ref在方法中可以... 阅读全文
posted @ 2014-05-03 21:23 才高远志 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1:数组://二维数组 表示1个表格. //交错数组的本质是1个1维数组 //行固定 但是每1行的列数不固定 //string[][] arr = new string[3][]; ... 阅读全文
posted @ 2014-05-03 20:33 才高远志 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-28 16:01 才高远志 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1类类型通过new 关键字把引用赋给对象,这个引用才会指向内存中的有效类实例构造函数永远没有返回值和他的名字总是和有需要构造的类的名字相同 阅读全文
posted @ 2014-03-02 22:39 才高远志 阅读(106) 评论(0) 推荐(0) 编辑
摘要: CSS选择器:1标签选择器:$("div");2:ID选择器:$("#id");3类型选择器:$(".class");4通用选择器:$("*");5群组选择器:$("selector1,selector2,selector3");层级选择器:1子元素选择器:$("form>input");匹配表单中... 阅读全文
posted @ 2013-11-09 18:02 才高远志 阅读(158) 评论(0) 推荐(0) 编辑
摘要: SQL表连接查询(inner join、full join、left join、right join)SQL表连接查询(inner join、full join、left join、right join)前提条件:假设有两个表,一个是学生表,一个是学生成绩表。表的数据有:一、内连接-inner jion :最常见的连接查询可能是这样,查出学生的名字和成绩:select s.name,m.mark from student s,mark m where s.id=m.studentid上面就是我们最常见的inner join,即内连接,把符合student.id=mark.studentid 条 阅读全文
posted @ 2013-10-29 15:03 才高远志 阅读(217) 评论(0) 推荐(0) 编辑