Error: Table ‘{table}’ not found; the statement gets SQLCODE -30 when it runs
An embedded SQL statement’s FROM, INSERT INTO, UPDATE or DELETE FROM names a table
no class projects. A persistent class projects a table under its own name, or its
SqlTableName instead. The schema is the package with _ for ., and SQLUser for
User. An unqualified table is in the class’s own schema, or in SQLUser from a routine.
IRIS compiles the class or routine, and the statement gets SQLCODE -30 when it runs. Spell
the table as its class projects it, or add the class to the workspace.
IRIS compiles the example. Checked without an environment, as --iris none.
Class Demo.SqlTableNotFound
{
ClassMethod Count() As %Integer //! A8061
{
&sql(SELECT COUNT(*) INTO :count FROM Demo.Missing) //! A3261
Quit count
}
}