sql - Informix - Delete temp table if exists -
i'm trying delete temp table when run query. cannot find answer , searched documentation.
basically, want check if table exists; if exist, delete , proceed select results can inserted temp table. if doesn't exist, well, create temp table results can inserted.
i'm using informix 11.70
if supported in 11.70 (it in 12.10), syntax is:
drop table if exists temp_table_name;
the 11.70 manual drop table indicates exists in 11.70 12.10.
then run query into temp temp_table_name
clause recreate table.
Comments
Post a Comment