Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix - find out if a temp table exists

Status
Not open for further replies.

MJB01

Programmer
Mar 15, 2010
1
MZ
Informix IDS 11.5 on Linux.
We create temp tables using stored procedures(SPL) which are sometimes used by other stored procedures/functionality. The stored procedure can be executed more than once in a session, which means that an error occurs (temp table already exists) when the create statement is executed. To manage this, we use an exception statement 'WITH RESUME' to drop and create the table if the temp table already exists.
Is there any other way of determining wether a temp table with the same name already exists in a database session?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top