Error: Label ‘{label}’ is not listed among the applicable tables; the statement gets SQLCODE -23 when it runs
A qualified column, label.column or label.*, whose label is neither a table of the
statement’s FROM nor an alias of one; a table given an alias goes by the alias alone.
IRIS compiles the statement and gives it SQLCODE -23 when it runs.
IRIS rejects the example.
Class Demo.SqlPerson Extends %Persistent
{
Property Name As %String;
}
IRIS compiles the example.
Class Demo.SqlLabelNotFound
{
ClassMethod Named() As %String
{
&sql(SELECT p.Name INTO :name FROM Demo.SqlPerson person) //! A5086
Quit name
}
}