scan

Description

Specifies the scan of a stored table, without specifying the type of scan.

Syntax

( scan stored_table )

Parameters

stored_table

is the name of the stored table to be scanned. It can be a base table or worktable.

Returns

An abstract plan derived table produced by the scan of the stored table.

Examples

Example 1

select * from t1 where c11 > 10

( scan t1 )

Specifies a scan of t1, leaving the optimizer to choose whether to perform a table scan or index scan.

Example 2

select *
    from t1, t2
    where c11 = 0
        and c22 = 1000
        and c12 = c21

( nl_g_join
        ( scan t2 )
        ( i_scan i_c22 t1 )
)

Specifies a partial plan, indicating the join order, but allowing the optimizer to choose the access method for t2.

Usage

See also

i_scan, store, t_scan