Informix Error -26901: An alias cannot represent another alias.
Cause and resolution
An alias cannot represent another alias.
The statement failed because the alias definition specified that the alias represented another alias instead of a real table name. A table can have multiple aliases, but an alias cannot have an alias. Rerun the statement with a real table name before the AS keyword in the alias definition.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26901 fires when an alias definition names another alias instead of a real table — per the official guidance.
- The alias definition's target is itself an alias, not a real table name, per the official guidance — the direct, only cause; a table can have multiple aliases, but an alias can't itself have an alias.
Solutions / Resolution
- Name a real table before
ASin the alias definition, per the official guidance.
Examples
An alias of an alias
CREATE SYNONYM alias2 FOR alias1;
-- -26901: alias1 is itself an alias, not a real table
Corrected
CREATE SYNONYM alias2 FOR real_table;
Diagnostic Checks
- Check the alias definition's target, and confirm it's a real table name, not another alias.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26901 in this set yet.
An alias was defined to represent another alias — name a real table instead.