Live2D
摘要: 1 SQL分页查询,每页10个数据,取第三页 A) 如果有id列 select top(10) * from Spider_Hotel where Spider_Hotel.HotelId not in ( select top (10*2) Spider_Hotel.HotelId from Sp 阅读全文
posted @ 2018-12-15 14:02 Gilgamos 阅读(2239) 评论(0) 推荐(0) 编辑
摘要: winfrom: private void dteStartDate_Validating(object sender, CancelEventArgs e) { if (!CheckStartDateEndDate(true)) { XtraMessageBox.Show("起始日期不能大于结束日 阅读全文
posted @ 2018-12-15 13:52 Gilgamos 阅读(2786) 评论(0) 推荐(0) 编辑
摘要: #region 使用SqlBulkCopy将DataTable中的数据批量插入数据库中 /// <summary> /// 注意:DataTable中的列需要与数据库表中的列完全一致。 /// </summary> /// <param name="conStr">数据库连接串</param> // 阅读全文
posted @ 2018-12-14 10:55 Gilgamos 阅读(459) 评论(0) 推荐(0) 编辑
摘要: private DataTable UpdateDataTable(DataTable argDataTable) { DataTable dtResult = new DataTable(); //克隆表结构 dtResult = argDataTable.Clone(); foreach (Da 阅读全文
posted @ 2018-12-13 17:16 Gilgamos 阅读(1565) 评论(0) 推荐(0) 编辑