Temp tables in Oracle
641631May 27 2008 — edited May 29 2008Hello,
I´d like to know if it is possible to emulate a SQL temp table in Oracle.
Temp tables in SQL Server starts with # and they "are dropped when session which created the table is ended, if one has not dropped it explicitly"
(http://decipherinfosys.wordpress.com/2007/05/04/temporary-tables-ms-sql-server/)
In Oracle, I can create temp tables using:
create global temporary
tablename ...
on commit preserve rows
But only the data are temporary, not the table. If I logout and log in back, the table will still remain there. I´d like to have the same behavior as SQL Server.
Thank you