2016 年文章归档
共 2 篇文章
关系代数运算与SQL语句
一、 传统的集合运算与S Q L 语句实现 传统的集合运算包括四种运算:并(∪)、交(∩)、差(—)、广义笛卡尔积(X)。 <!--[if !supportLists]--> (一) <!--[endif]--> 并运算(Union) (1)概述 设关系R和关系S具有相同的目n,且相应的属性取自同一个域。则关系R和关系S的并记为R∪S,其结果仍为n目关系,由属于R或属于S的元组组成。如R和S的元组分别用两个圆表示(去掉了重复的记录),则R∪S的集合如图1.1所示虚影部分元组。 图1.1 集合R∪S集合 <!--[if !supportLists]--> (2) <!--[endif]--> …
2016-11-14 22:50 · sql
groovy文件操作工具类
class FileUtils{ /** * remove the target file or directory. * @param src the full path of the target file * @return true if the file or directory is successfully removed; false otherwise. */ static void rm(String src) { rm(src, null); } static void rmBySuffix(String path, String suffix) { rm(path, …
2016-09-30 17:05 · groovy