2012年5月15日
摘要: 会使用索引,导致全表扫描情况1.不要使用in操作符,这样数据库会进行全表扫描,推荐方案:在业务密集的SQL当中尽量不采用IN操作符2.not in 使用not in也不会走索引推荐方案:用not exists或者(外联结+判断为空)来代替3 操作符(不等于) 使用同样... 阅读全文
posted @ 2012-05-15 15:30 swarb 阅读(96) 评论(0) 推荐(0) 编辑
摘要: for (Int32 i = 0; i <= tasklist.Rows.Count - 1; i++) { DataG1.Rows.Add(); for (Int32 j = 0; j <= tasklist.Columns.Count - 1; j++) { o... 阅读全文
posted @ 2012-05-15 10:19 swarb 阅读(407) 评论(0) 推荐(0) 编辑