随笔分类 -  开发日志

开发日志
摘要:group by 子句将行划分成较小的组,然后,使用聚组函数返回每一个组的汇总信息,另外,可以使用having子句 限制返回的结果集类似于distinct的去重,可是不明白到底俩区别?功能上group by莫非多一下可以用having?GROUP BY ROLLUP(A,B,C):首先对(A,B,C)进行GROUP BY,然后对(A,B)进行GROUP BY,然后是(A)进行GROUP BY, 最后对全表进行GROUP BY操作。GROUP BY CUBE(A,B,C):首先对(A,B,C)进行GROUP BY,然后依次对(A,B)、(A,C)、(A)、(B,C)、(B)、(C)进行GROUP 阅读全文
posted @ 2012-11-23 09:09 Dzs 阅读(1952) 评论(0) 推荐(0)
摘要:FileStream.Read 官方解释:http://msdn.microsoft.com/zh-cn/library/system.io.filestream.read.aspx重写Read 方法 public override int Read( byte[] array, int offset, int count)读入缓冲区中的总字节数。如果当前的字节数没有所请求那么多,则总字节数可能小于所请求的字节数;或者如果已到达流的末尾,则为零offset 参数给出 array 中字节的偏移量(缓冲区索引),从此处开始读取,count 参数给出从此流最多读取的字节数。返回的值是读取字节的实际数 阅读全文
posted @ 2012-11-20 17:26 Dzs 阅读(865) 评论(0) 推荐(0)
摘要://========================================================================// Copyright(C): ***********************//// CLR Version : $clrversion$// NameSpace : $rootnamespace$// FileName : $safeitemname$//// Created by : Dzs (dzs369@gamil.com) at $time$//// Function :////============================ 阅读全文
posted @ 2012-11-19 10:32 Dzs 阅读(1654) 评论(0) 推荐(0)
摘要:Assembly C# 获取 内容 Assembly executingAssembly = Assembly.GetExecutingAssembly(); Version version = executingAssembly.GetName().Version; object[] objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false ); AssemblyProductAttribute productAttr = (AssemblyProductAttrib 阅读全文
posted @ 2012-11-13 10:18 Dzs 阅读(665) 评论(0) 推荐(0)
摘要:右击文件(夹)==》选择TortoisenSvn=》Relocate=》填写新svn地址取消dev小窗=》1删除当前项目的签名文件licenses.licx=》2打当前版本的补丁“LC.exe”已退出,代码为 -1。签名的事 阅读全文
posted @ 2012-10-10 10:54 Dzs 阅读(231) 评论(0) 推荐(0)
摘要://一、NSString/*----------------创建字符串的方法----------------*///1、创建常量字符串。NSString *astring = @"This is a String!";//2、创建空字符串,给予赋值。NSString *astring = [[NSString alloc] init];astring = @"This is a String!";[astring release];NSLog(@"astring:%@",astring);//3、在以上方法中,提升速度:initWit 阅读全文
posted @ 2012-02-04 14:26 Dzs 阅读(2258) 评论(0) 推荐(0)
摘要:View Code protected bool checkWinWAR(){try {using (Process unrar = new Process()){unrar.StartInfo.FileName = "ProcessName";if (unrar == null){//提示不存在return false;}}return true;}catch {return false;}}在上次压缩文件会用到相对应的解压缩文件,会判断是否已安装解压缩软件,上面的方法可以判读是否装有安装应该还有其他的方法,暂时没有找到 阅读全文
posted @ 2011-12-27 09:56 Dzs 阅读(254) 评论(0) 推荐(0)