01 2011 档案

摘要:C# 使用正则表达式去掉字符串中的数字 /// /// 去掉字符串中的数字/// /// /// public static string RemoveNumber(string key){ return System.Text.RegularExpressions.Regex.Replace(key, @"\d", "");}/// /// 去掉字符串中的非数字/// /// /// public static string RemoveNotNumber(string key){ return System.Text.RegularExpressio 阅读全文
posted @ 2011-01-13 16:11 DODUI 阅读(1159) 评论(0) 推荐(1)
摘要:1、字符串连接select concat('0591','8888888') || '转23' from dual结果:05918888888转232、首字母大写 select initcap('zhang san') from dual结果:Zhang San3、INSTR(C1,C2,I,J) 在一个字符串中搜索指定的字符,返回发现指定的字符的位置;C1 被搜索的字符串C2 希望搜索的字符串I 搜索的开始位置,默认为1J 出现的位置,默认为1select instr('test test','es 阅读全文
posted @ 2011-01-11 17:57 DODUI 阅读(428) 评论(0) 推荐(0)
摘要:static void Main(string[] args){ DataTable dt = new DataTable(); dt.Columns.Add("A"); dt.Columns.Add("B"); dt.Columns.Add("C"); dt.Rows.Add("a1", "b1", "c1"); dt.Rows.Add("a1", "b2", "c2"); dt.Rows.Add("a2 阅读全文
posted @ 2011-01-10 16:04 DODUI 阅读(1219) 评论(0) 推荐(0)
摘要:Oracle计算时间差表达式 --获取两时间的相差豪秒数select ceil((To_date('2008-05-02 00:00:00' , 'yyyy-mm-dd hh24-mi-ss') - To_date('2008-04-30 23:59:59' , 'yyyy-mm-dd hh24-mi-ss')) * 24 * 60 * 60 * 1000) 相差豪秒数 FROM DUAL;/*相差豪秒数---------- 864010001 row selected*/--获取两时间的相差秒数select ceil((To_d 阅读全文
posted @ 2011-01-10 11:27 DODUI 阅读(328) 评论(0) 推荐(0)
摘要:privateSystem.Collections.ArrayListlist=newSystem.Collections.ArrayList();System.Collections.HashtablemyHash=newSystem.Collections.Hashtable();myHash.Add("0","未提交");myHash.Add("1","提交");myHash.Add("2","已完成");myHash.Add("-1"," 阅读全文
posted @ 2011-01-06 13:46 DODUI 阅读(254) 评论(0) 推荐(0)