Informix Error -11053: Base table or view already exists.
Cause and resolution
Base table or view already exists.
This Informix CLI error code is the same as SQLSTATE value S0001. The following functions can return this error code: SQLExecDirect() and SQLPrepare().
The SQL statement contained a CREATE TABLE or CREATE VIEW statement, but the table name or view name already exists. Reword the query to use a unique table name or a unique view name.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11053 fires when a CREATE TABLE/CREATE VIEW statement names a table or view that
already exists — per the official guidance, this is the same as SQLSTATE value S0001,
returnable by SQLExecDirect() and SQLPrepare().
- A
CREATE TABLE/CREATE VIEWnaming an already-existing table or view, per the official guidance — the direct, only cause.
Solutions / Resolution
- Reword the query to use a unique table or view name, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a duplicate table/view name.
Diagnostic Checks
- Check whether the table/view name already exists before issuing the CREATE statement.
Related Errors / Related Topics
- -11054 — "Base table not found." The mirror-image error — a table/view name that doesn't exist where one is expected, rather than a name that already does.
A CREATE TABLE/VIEW named a table or view that already exists — use a unique name.