摘要: // Specify the data source. int[] scores = new int[] { 97, 92, 81, 60 }; // Define the query expression. IEnumerable scoreQuery = from score in scores where score > 80 select score; // Execute the query. foreach (int i in scoreQu... 阅读全文
posted @ 2013-09-13 08:50 程序猿网友666 阅读(154) 评论(0) 推荐(0)
摘要: web.config配置 // 获取连接字符串 string _connectionString = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];SqlConnection _conn = new SqlConnection(_connectionString); string sql = "Select * from user "; //SqlCommand _cmd = new SqlCommand(sql, _conn); _co... 阅读全文
posted @ 2013-09-13 07:55 程序猿网友666 阅读(324) 评论(0) 推荐(0)
摘要: js 图片翻书效果。picture.htmlJS实现图片翻书效果--www.jbxue.compicture.css#center {LEFT: 50%; POSITION: absolute; TOP: 50%}#DHTMLBOOK {BACKGROUND: #000; LEFT: -210px; VISIBILITY: hidden; WIDTH: 210px; POSITION: relative; TOP: -160px; HEIGHT: 160px}#TXTBOX {FONT-SIZE: 0.8em; WIDTH: 210px; COLOR: #aba193; FONT-FAMILY 阅读全文
posted @ 2013-09-10 23:54 程序猿网友666 阅读(694) 评论(0) 推荐(0)
摘要: 表达式DateDiff(timeinterval,date1,date2 [, firstdayofweek [, firstweekofyear]])允许数据类型: timeinterval 表示相隔时间的类型,代码为:年份 yy、yyyy 季度 qq、q月份 mm、m每年的某一日 dy、y日期 dd、d星期 wk、ww工作日 dw小时 hh分钟 mi、n秒 ss、s毫秒 ms 阅读全文
posted @ 2013-09-09 08:47 程序猿网友666 阅读(278) 评论(0) 推荐(0)
摘要: SQL报表语句 SQL获取今日、本周、本月数据本日:select * from table where datediff(dd,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本周:select * from table where datediff(week,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本月:select * from table where datediff(Month,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本季:select * from tabl.. 阅读全文
posted @ 2013-09-09 08:36 程序猿网友666 阅读(3310) 评论(0) 推荐(0)
摘要: 本文转载于:http://hi.baidu.com/pei_ji_xiang/item/3838b637165c8121b3c0c5ee1.一道SQL语句面试题,关于group by表内容:2005-05-09 胜2005-05-09 胜2005-05-09 负2005-05-09 负2005-05-10 胜2005-05-10 负2005-05-10 负如果要生成下列结果, 该如何写sql语句? 胜 负2005-05-09 2 22005-05-10 1 2------------------------------------------create table #tmp(rq varch 阅读全文
posted @ 2013-09-09 08:14 程序猿网友666 阅读(258) 评论(0) 推荐(0)
摘要: 能否获取倒数第二个指定字符的位置? 截取 指定字符 倒数第二个 阅读全文
posted @ 2013-07-09 10:32 程序猿网友666 阅读(2983) 评论(0) 推荐(0)
摘要: private bool InsertIntoExcelEx(System.Data.DataTable dt) { string baseFileName = "SignCustomers"; string mPath = System.IO.Path.GetTempPath() + System.IO.Path.GetTempFileName().Replace(".tmp", "") + ".xls"; mPath = Server.MapPath("~/Temp") + "\\ 阅读全文
posted @ 2013-06-04 16:14 程序猿网友666 阅读(258) 评论(0) 推荐(0)
摘要: 1 // <summary> 2 /// 创建一个的excel工作薄- 3 /// </summary> 4 /// <returns></returns> 5 public void InputExcel() 6 { 7 try 8 { 9 //Instantiate a new workbook10 Workbook workbook = new Workbook();11 workbook.Worksheets[0].Name = "我... 阅读全文
posted @ 2013-06-04 10:28 程序猿网友666 阅读(188) 评论(0) 推荐(0)
摘要: public void SaveFile() { string stream = null; if (File.Exists("log.txt")) { StreamReader reader = new StreamReader("log.txt"); stream = reader.ReadToEnd(); reader.Close(); } FileStream fs ... 阅读全文
posted @ 2013-05-30 15:42 程序猿网友666 阅读(1525) 评论(0) 推荐(0)