Class WithScope

  • All Implemented Interfaces:
    SqlValidatorScope

    class WithScope
    extends ListScope
    Scope providing the objects that are available after evaluating an item in a WITH clause.

    For example, in

    WITH t1 AS (q1) t2 AS (q2) q3

    t1 provides a scope that is used to validate q2 (and therefore q2 may reference t1), and t2 provides a scope that is used to validate q3 (and therefore q3 may reference t1 and t2).