上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 一、sql server日期时间函数Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004- 阅读全文
posted @ 2017-03-14 15:54 幻影K 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2、应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: SELECT id from t where num is null 可以在 阅读全文
posted @ 2017-03-14 15:48 幻影K 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 创建WCF服务应用程序 创建silverlight应用程序 创建其他 WCF服务应用程序中添加WCF服务 引用类库 添加WCF服务 .cs文件中 .svc文件中 添加跨域文件 文件内容: silverlight应用程序中添加wcf服务引用 导入命名空间 代码示例: 阅读全文
posted @ 2016-05-22 22:17 幻影K 阅读(204) 评论(0) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions; string drugComment = "药品价格及供应商:1.3,0001,药品供应商; 其他"; //字符串格式示例:价格,供应商代码,供应商名称 //正则截取 Regex regSupply = new Regex(@"供应商代码(... 阅读全文
posted @ 2016-05-17 23:49 幻影K 阅读(159) 评论(0) 推荐(0) 编辑
摘要: --添加表的说明 EXECUTE sys.sp_addextendedproperty N'MS_Description', '表说明', N'user', N'dbo', N'table', N'表名', NULL, NULL; --删除表的说明 EXECUTE sys.sp_dropextendedproperty N'MS_Description', 'user', 'dbo... 阅读全文
posted @ 2016-05-17 23:30 幻影K 阅读(846) 评论(0) 推荐(0) 编辑
摘要: -----------原表------------------- student classes score 张三 语文 74 张三 数学 83 张三 物理 93 李四 语文 74 李四 数学 84 李四 物理 94 ---------------------------------- --1、pivot S... 阅读全文
posted @ 2016-05-17 23:28 幻影K 阅读(207) 评论(0) 推荐(0) 编辑
摘要: #region 汉字转拼音静态类,包括功能全拼和缩写,方法全部是静态的 //属性数据定义 private static readonly Dictionary CodeCollections = new Dictionary { {-20319,"a"},{-20317,"ai"},{-20304,"an"},{-202... 阅读全文
posted @ 2016-05-17 23:24 幻影K 阅读(453) 评论(0) 推荐(0) 编辑
摘要: #region /// /// 汉字转首拼 /// /// 字符串 /// 是否忽略数字 /// 首拼 public string HZ2FirstPYString(string strText, bool isIgnoreNumber) { ... 阅读全文
posted @ 2016-05-17 23:22 幻影K 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 添加引用 NPOI.dll 阅读全文
posted @ 2016-05-17 23:17 幻影K 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 需要添加office的引用,并且引用命名空间 部署网站的时候,有些权限需要修改,这点比较麻烦,后来换用NPOI 阅读全文
posted @ 2016-05-17 23:09 幻影K 阅读(368) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页