摘要: Declare @Sysno Nvarchar(500);Set @Sysno='4,11064,100';Declare @table_ReviewID Table( [Sysno] INT NOT NULL)While(CHARINDEX(',',@Sysno)<>0)Begin Insert 阅读全文
posted @ 2018-10-23 11:26 蹦蹦郭 阅读(2119) 评论(0) 推荐(0) 编辑
摘要: 一、关键词 DISTINCT 用于返回唯一不同的值,只可以在select中使用。 1.重复数据完全一样,用distinct select distinct * from table 根据字段去重用distinct select distinct 列名称 from 表名称 (对一列进行操作) sele 阅读全文
posted @ 2018-10-19 13:23 蹦蹦郭 阅读(4457) 评论(0) 推荐(0) 编辑
摘要: SELECT [name] , create_date , modify_dateFROM sys.all_objectsWHERE type_desc = N'SQL_STORED_PROCEDURE'ORDER BY modify_date DESC 阅读全文
posted @ 2018-10-12 15:31 蹦蹦郭 阅读(3841) 评论(0) 推荐(0) 编辑
摘要: //写入日志(简洁版) public static void AddLogByTxt(string log) { string logName = DateTime.Now.ToString() + "log.txt"; string path = AppDomain.CurrentDomain.B 阅读全文
posted @ 2018-09-20 10:18 蹦蹦郭 阅读(889) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 检查给定数组或集合是否具有元素,并且没有一个元素为null /// </summary> /// <param name="collection">the collection to be checked.</param> /// <returns>true if 阅读全文
posted @ 2018-09-20 09:21 蹦蹦郭 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1.get和set public class person { public string name; } public class person { public string Name{set;get;} } 两个类,第一个类name属性未封装,其name属行通过public关键字暴露给系统中的 阅读全文
posted @ 2018-09-11 09:32 蹦蹦郭 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 需要的方法: /// <summary> /// 将c# DateTime时间格式转换为Unix时间戳格式 /// </summary> /// <param name="time">时间</param> /// <returns>double</returns> public static dou 阅读全文
posted @ 2018-09-07 11:35 蹦蹦郭 阅读(3576) 评论(0) 推荐(0) 编辑
摘要: 需求: 获取uiCouponItemInfo集合数据中的 CategoryID,Title(不重复),放入uiCouponCategoryInfo集合中 实现: uiCouponCategoryInfo = uiCouponItemInfo .GroupBy(x => new { x.Categor 阅读全文
posted @ 2018-09-07 11:00 蹦蹦郭 阅读(435) 评论(0) 推荐(0) 编辑