How to check existence of Global Temp Tables [message #17794] |
Tue, 01 February 2005 01:53  |
Shah
Messages: 36 Registered: June 2002
|
Member |
|
|
How can we check the existence of temp tables and then drop them? As we can do in SQL Server
IF EXISTS (SELECT * FROM tempdb..sysobjects WHERE name LIKE '##table_name')
DROP TABLE ##table_name
|
|
|
Re: How to check existence of Global Temp Tables [message #17796 is a reply to message #17794] |
Tue, 01 February 2005 02:07   |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Just a word of advice: in Oracle, unlike SQL Server, you don't create and drop temporary tables on the fly. Create once, use multiple times and don't drop.
You can query sys.dba_tables /all_tables/user_tables. It should be there.
hth
|
|
|
|
|
|
|
|