sql> sql> create global temporary table tx as select * from dept; table created. sql> sleect * from tx; sp2-0734: unknown command beginning "sleect * f..." - rest of line ignored. sql> select * from tx; no rows selected sql> sql> insert into tx(select * from dept); 4 rows created. sql> select * from tx; deptno ---------10 20 30 40
dname -------------accounting research sales operations
loc ------------new york dallas chicago boston
sql> commit; commit complete. sql> / commit complete. sql> select * from tx; no rows selected sql>
insert into tx(select * from dept);
4 rows created. sql> select * from tx; deptno ---------10 20 30 40 sql>
dname -------------accounting research sales operations
commit;
commit complete. sql> select * from tx; no rows selected
loc ------------new york dallas chicago boston
sql> spool off