Skip to main content
Table function
NULL row counts are rejected rather than producing a NULL result.

Syntax

Table

Arguments

Returns

  • Type: TABLE
  • NULL behavior: NULL row counts are rejected rather than producing a NULL result.
  • Empty input: ROWCOUNT => 0 produces zero rows.
  • Shape: Exactly ROWCOUNT rows with zero visible columns; SELECT expressions supply the result columns.
  • Ordering: The rows have no intrinsic values or order.

Properties

Usage notes

  • ROWCOUNT parameter names are case-insensitive.
  • GENERATOR itself emits no sequence column; separate projection functions may supply values.

Examples

Generate three rows

Generate no rows

Limitations

  • Only named ROWCOUNT is supported. Positional arguments, TIMELIMIT and a zero-argument generator are rejected.
  • The result contains rows but no columns. Select expressions alongside GENERATOR to produce values.
Last modified on October 15, 2026