2014年5月29日
摘要: jQuery EasyUI Tree Create from HTML markup Folder Sub Folder 1 File 11 File 12 File 13 File 2 File 3 File 4 File 5 ... 阅读全文
posted @ 2014-05-29 09:32 dessay 阅读(3661) 评论(0) 推荐(0) 编辑
  2012年12月3日
摘要: /// <summary>/// 清空指定的文件夹,但不删除文件夹/// </summary>/// <param name="dir"></param>public static void DeleteFolder(string dir){ foreach (string d in Directory.GetFileSystemEntries(dir)){ if (File.Exists(d)){ FileInfo fi = new FileInfo(d);if (fi.Attributes.ToString().Index 阅读全文
posted @ 2012-12-03 09:17 dessay 阅读(748) 评论(0) 推荐(0) 编辑
  2012年7月29日
摘要: truncate操作同没有where条件的delete操作十分相似。1、无论truncate大表还是小表速度都非常快。delete要产生回滚信息来满足回滚需求,而truncate是不产生的。2、truncate是DDL语句进行隐式提交,不能进行回滚操作。3、truncate重新设定表和索引的HWM(高水标记),由于全表扫描和索引快速扫描都要读取所有的数据块知道HWM为止。所以全表扫描的性能不会因为delete而提高,但是经过truncate操作后速度会很快。4、truncate不触发任何delete触发器。5、不能赋给某个用户truncate其它用户表的权限。如果需要trucate其它用户表的 阅读全文
posted @ 2012-07-29 22:12 dessay 阅读(1422) 评论(0) 推荐(0) 编辑