Pavle Crnković
Pavle Crnković

Reputation: 23

Informix 11.5 alternative to "drop if exists"

I'm using Informix 11.5 and I'd like to know if there is any alternative to DROP TABLE IF EXISTS <table_name>, since this is not supported in version 11.5. Upgrade from 11.5 is not an option.

Upvotes: 2

Views: 558

Answers (1)

Jonathan Leffler
Jonathan Leffler

Reputation: 754480

The only alternative to DROP TABLE IF EXISTS is a plain DROP TABLE and ignore the error complaining about the table not existing — other errors still need to be worried about.

Upvotes: 1

Related Questions