store

Description

Stores the results of a scan in a worktable.

Syntax

( store worktable_name
          ( [scan | i_scan | t_scan ] table_name )
)

Parameters

worktable_name

is the name of the worktable to be created.

table_name

is the name of the base table to be scanned.

Returns

A worktable that is the result of the scan.

Examples

Example 1

select c12, max(c11) from t1
        group by c12

( plan 
    ( store Worktab1 
        ( t_scan t1 ) 
    ) 
    ( t_scan ( work_t Worktab1 ) ) 
)

Specifies the two-step process of selecting the vector aggregate into a worktable, then selecting the results of the worktable.

Usage

See also

scan