上一页 1 ··· 12 13 14 15 16
摘要: 使用简介: 必须包含名空间System.Collection.Generic ; Dictionary里面的每一个元素都是一个键值对(由二个元素组成:键和值) 键必须是唯一的,而值不需要唯一的 键和值都可以是任何类型(比如:string, int, 自定义类型,等等) 在删除添加时,不会像列表一... 阅读全文
posted @ 2015-08-24 17:24 .追风逐月 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 运行 cmd -> 输入 netsh winsock reset重启后 应该可以连接sql了 阅读全文
posted @ 2015-08-24 10:00 .追风逐月 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Redis的数据类型 var client = new RedisClient("127.0.0.1", 6379); //client.Set("name", "zhangsan"); //string name= client.Get("name");... 阅读全文
posted @ 2015-08-24 00:35 .追风逐月 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 默认系统时间默认值:getdate()默认ID为GUID1.列的类型为uniqueidentifier2.列的默认值可以设为newid() 阅读全文
posted @ 2015-08-19 16:39 .追风逐月 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: switch ..caseint i=3; switch(i) { case 1: Console.Write(1); break; case 2: Console.Write(2); break; case 3: Console.Wr... 阅读全文
posted @ 2015-08-19 11:46 .追风逐月 阅读(159) 评论(0) 推荐(0) 编辑
摘要: --SQL Server 中创建存储过程create proc usp_UserConsultingPaging@pageNumber int,--页码@pageSize int,--条数@sumCount int output --总页数as beginset @sumCount=(CEILING... 阅读全文
posted @ 2015-08-17 15:38 .追风逐月 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 创建Cookie:HttpCookie cookie = new HttpCookie(COOKIE_NAME_FOR_USER);cookie.Expires = DateTime.Now.AddYears(1);//设置日期cookie[COOKIE_USER_NAME] = "用户名";Sys... 阅读全文
posted @ 2015-08-11 16:48 .追风逐月 阅读(243) 评论(0) 推荐(0) 编辑
摘要: left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行举例如下:--------------------------------... 阅读全文
posted @ 2015-08-07 11:28 .追风逐月 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 其中关于条件,SQL提供了四种匹配模式:1,% :表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示。比如 SELECT * FROM [user] WHERE u_name LIKE '%三%'将会把u_name为“张三”,“张猫三”、“三脚猫”, 阅读全文
posted @ 2015-08-07 10:42 .追风逐月 阅读(311) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16