摘要: oracle认为 null 最大。 升序排列,默认情况下,null值排后面。 降序排序,默认情况下,null值排前面。 有几种办法改变这种情况: (1)用 nvl 函数或decode 函数 将null转换为一特定值 (2)用case语法将null转换为一特定值(oracle9i以后版本支持。和sqlserver类似):order by (case mycol when null then ’北京漂... 阅读全文
posted @ 2009-03-20 10:32 茹古涵今 阅读(7898) 评论(0) 推荐(2) 编辑
摘要: 有的时候,我们在某些版本的XP中会发现“添加删除WIndows组件”中没有安装IIS的选项,而我们又迫切需要安装IIS,这时该怎么办呢?具体方法请接着往下看。(或者报错:无法打开信息文件iis2.inf,特定的错误代码是第2088999592行的0x2 ) 首先在运行中输入"c:\windows\inf\sysoc.inf",系统会自动使用记事本打开sysoc.inf这个文件。在sysoc.in... 阅读全文
posted @ 2009-03-12 20:39 茹古涵今 阅读(1887) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> /// /// 返回执行Select distinct后的DataTable /// /// 源数据表 /// 字段集 /// private Data... 阅读全文
posted @ 2009-03-11 17:14 茹古涵今 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 导出最简单方法: const string style = @" "; Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=" + Server.UrlEncode(Name) + ".xls"); Resp... 阅读全文
posted @ 2009-02-17 15:17 茹古涵今 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1.case'字段'when(字段=值1)then结果when(字段=值2)then结果else... 阅读全文
posted @ 2009-02-08 16:57 茹古涵今 阅读(764) 评论(1) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> XmlDocument mydoc = new XmlDocument(); string path = AppDomain.CurrentDomai... 阅读全文
posted @ 2009-02-07 15:39 茹古涵今 阅读(2878) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->C#中获取当前程序集路径:AppDomain.CurrentDomain.BaseDirectory 例如: CodeCode highlighting produced by Actipro ... 阅读全文
posted @ 2008-12-26 15:37 茹古涵今 阅读(254) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function setlosstxt(){ var chk=document.getElementById("chkCheckLoss");//checkbox var tx... 阅读全文
posted @ 2008-12-25 18:28 茹古涵今 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Int32 result = -1;if (Int32.TryParse("210s", out result)){ // Parsing succeeds, now you can safely use the value.}else{ // Parsing fails, this route is faster.} Int32 result = -1;try{ result ... 阅读全文
posted @ 2008-12-23 14:46 茹古涵今 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Convert.ToInt32、int.Parse(Int32.Parse)、int.TryParse、(int) 四者都可以解释为将类型转换为 int,那它们的区别是什么呢? Convert.ToInt32 与 int.Parse 较为类似,实际上 Convert.ToInt32 内部调用了 int.Parse: Convert.ToInt32 参数为 null 时,返回 0; int.Pa... 阅读全文
posted @ 2008-12-23 14:43 茹古涵今 阅读(14137) 评论(2) 推荐(3) 编辑