想通过DB2把查询出来的结果定义为别的表,因为db2没有类似(或者说对db2还不熟悉)oracle的create table as select来定义表的方式,所以比较麻烦!今天抽时间总结了一下DB2定义表的3种方式:首先创建一个例子表,再插入几条语句。create table xxx(col1 varchar(10));insert into x...(more)
on commit delete rows 和on commit preserve rows的区别
此二者皆用于temporary table,delete rows用于事务相关,也就在事务结束后truncate data in the temporary table.preserve rows表示在会话结束后清除临时表的数据前者在事务提交后数据就已经清除了.后者在会话中...(more)