Informix Error -23913: SAMPLE/LOCAL specifiers apply to tables. <identifier> is not a table. </identifier>
Cause and resolution
SAMPLE/LOCAL specifiers apply to tables. <identifier> is not a table. </identifier>
The select statement includes a SAMPLE or LOCAL keyword, but the table_name specified in the FROM clause is not a database table. Check to see that the tables specified by the SAMPLE or LOCAL keyword in the FROM clause are not VIEWS or EXTERNAL TABLES.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23913 fires when a SAMPLE/LOCAL keyword in the FROM clause is applied to
something other than a database table — per the official guidance, SAMPLE/LOCAL
can't be used on views or external tables.
SAMPLE/LOCALapplied to a view or external table, per the official guidance — the direct, only cause.
Solutions / Resolution
- Confirm the
SAMPLE/LOCALtarget in theFROMclause is an actual database table, per the official guidance, not a view or external table.
Examples
N/A
No specific triggering statement is documented beyond SAMPLE/LOCAL on a
non-table identifier.
Diagnostic Checks
- Check the flagged identifier's object type, and confirm it's a real database table.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -23913 in this set yet.
SAMPLE/LOCAL was applied to a non-table (view/external table) — target an actual
database table.