Skip to main content

Synopsis

where row is a single expression or

Description

Defines a literal inline table. VALUES can be used anywhere a query can be used (e.g., the FROM clause of a SELECT, or at the top level). VALUES creates an anonymous table without column names, but the table and columns can be named using an AS clause with column aliases.

Examples

Return a table with one column and three rows:
Return a table with two columns and three rows:
Return table with column id and name:
Create a new table with column id and name:

See also

SELECT