发现测试数据库中的一段sql:
参考博文:
https://www.cnblogs.com/xuyuanjia/p/6025415.html
事务级临时表:提交时删除数据
create global temporary table tmp_table1
(
x number
) on commit delete rows ;
会话级临时表:会话结束时删除数据
create global temporary table tmp_table2
(
x number
) on commit preserve rows ;