Informix Error -23931: GK-index creation: FROM clause must contain LOCAL, STATIC BASE tables only.
Cause and resolution
GK-index creation: FROM clause must contain LOCAL, STATIC BASE tables only.
The database server cannot create a general-key index because one of the tables in the FROM clause is either a remote table, a non-static table, or a view. Correct the CREATE GK INDEX statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23931 fires when a CREATE GK INDEX statement's FROM clause includes a remote
table, non-static table, or view — per the official guidance, general-key indexes can
only be created against local, static base tables.
- A remote table, non-static table, or view in the
FROMclause, per the official guidance — the direct, only cause.
Solutions / Resolution
- Correct the
CREATE GK INDEXstatement so theFROMclause names only local, static base tables, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an ineligible table in the
FROM clause.
Diagnostic Checks
- Check every table in the
FROMclause for remote-ness, non-static status, or being a view, and correct any that disqualify it.
Related Errors / Related Topics
- -23932 — "GK-index creation: indexed table missing in the SELECT statement." A related GK-index-creation error, on the indexed table being absent (or aliased) rather than an ineligible table type.
A CREATE GK INDEX statement's FROM clause included a remote/non-static table or
view — only local, static base tables are allowed.