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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -