上一页 1 2 3 4 5 6 7 ··· 13 下一页
  2018年5月12日
摘要: ISNULL(check_expression, replacement_value) check_expression 与 replacement_value 数据类型必须一致,如果 check_expression 为 NULL,则返回 replacement_value,如果check_exp 阅读全文
posted @ 2018-05-12 09:52 donchen-c 阅读(221) 评论(0) 推荐(0)
  2018年5月9日
摘要: 假设有两个List<T>对象 ,List1和List2,如下方法判断两个List是否相等 public static bool EqualList(this List<string> sourceCollection, List<string> targetCollection) { sourceC 阅读全文
posted @ 2018-05-09 15:43 donchen-c 阅读(6558) 评论(4) 推荐(1)
  2018年5月7日
摘要: c# List< int>和List< string>互相转换 定义一个list< t> 类型转换(int->string) 类型转换(string->int) 阅读全文
posted @ 2018-05-07 18:19 donchen-c 阅读(2438) 评论(0) 推荐(0)
  2018年4月28日
摘要: 字符串行数Trim()可以去掉字符串前后的空格,如: C# Code string myString = " this is a test "; Console.WriteLine(myString.Trim()); View Code C# Code string myString = " thi 阅读全文
posted @ 2018-04-28 10:02 donchen-c 阅读(87070) 评论(0) 推荐(3)
摘要: 1、 去掉字符串前后所有空格: 代码如下: function Trim(str) { return str.replace(/(^\s*)|(\s*$)/g, ""); } View Code function Trim(str) { return str.replace(/(^\s*)|(\s*$ 阅读全文
posted @ 2018-04-28 09:53 donchen-c 阅读(1654) 评论(0) 推荐(0)
  2018年4月22日
摘要: 1.查看SQL语句IO消耗 set statistics io on select * from dbo.jx_order where order_time>'2011-04-12 12:49:57.580' set statistics io off 2.查看SQL语句时间消耗 set stati 阅读全文
posted @ 2018-04-22 11:28 donchen-c 阅读(2081) 评论(0) 推荐(0)
  2018年4月3日
摘要: 用到的方法$.inArry(); $.inArray( value, array [, fromIndex ] ) value 任意类型 用于查找的值。 array Array类型 指定被查找的数组。 fromIndex 可选。Number类型 指定从数组的指定索引位置开始查找,默认为 0 函数用于 阅读全文
posted @ 2018-04-03 09:55 donchen-c 阅读(2879) 评论(0) 推荐(0)
  2018年3月31日
摘要: 关于SQLServer2008全文索引干扰词 使用SQL SERVER 2008全文索引进行搜索 contains(Keywords, '"xx of xx*"') (注意是后面有包含"*"号的查询),由于包含了类似"of","and","or"等这类默认的全文索引干扰词,导致查询不到结果。 可以按 阅读全文
posted @ 2018-03-31 16:22 donchen-c 阅读(472) 评论(0) 推荐(0)
  2018年3月15日
摘要: --当charindex返回值大于0时则包含 为0不包含 select CHARINDEX('456','123456') SQL语句使用CHARINDEX函数,来测试一个字符串中是否包含另一个字符串中的方法: 一、CHARINDEX函数介绍 1、函数功能:函数返回字符或者字符串在另一个字符串中的起 阅读全文
posted @ 2018-03-15 13:37 donchen-c 阅读(83140) 评论(0) 推荐(0)
摘要: 在项目中,使用SQLServer数据库,有一个需求,需要将数据库的某一列,转换成逗号分隔的字符串。同时,需要将处理完的字符串,转换成为一列。 经过查阅资料与学习,通过以下方式可以实现如上所述需求: 1、编写一个表值函数,传入一个字符串,实现转换成列,条件以逗号分隔(任何符号都可以自定义) 空格分隔的 阅读全文
posted @ 2018-03-15 13:36 donchen-c 阅读(10059) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 7 ··· 13 下一页