摘要: /// /// 模块名:操作postgres数据库公共类 /// 作用:根据业务需求对数据库进行操作. /// 注:系统中的公共方法,根据需要,逐一引入 /// 作者:东北大亨 /// 编写日期:2012-03-19 /// using System; using System.Collections.Generic; using System.Linq; using System.Tex... 阅读全文
posted @ 2018-01-18 17:45 东北大亨 阅读(1230) 评论(0) 推荐(0) 编辑
摘要: 日期处理函数 //2007年4月24日 this.TextBox6.Text = System.DateTime.Now.ToString("D"); //2007-4-24 this.TextBox7.Text = System.DateTime.Now.ToString("d"); //2007 阅读全文
posted @ 2018-01-18 17:41 东北大亨 阅读(552) 评论(0) 推荐(0) 编辑
摘要: convert(varchar(10),字段名,转换格式) CONVERT(nvarchar(10),count_time,121)CONVERT为日期转换函数,一般就是在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相 阅读全文
posted @ 2018-01-18 17:37 东北大亨 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 时间函数及计算 阅读全文
posted @ 2018-01-18 17:32 东北大亨 阅读(478) 评论(0) 推荐(0) 编辑