Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

VALUES

Focus mode
VALUES - Amazon Athena

Creates a literal inline table. The table can be anonymous, or you can use the AS clause to specify a table name, column names, or both.

Synopsis

VALUES row [, ...]

Parameters

row

The row parameter can be a single expression or ( column_expression [, ...] ).

Examples

Return a table with one column and three rows:

VALUES 1, 2, 3

Return a table with two columns and three rows:

VALUES (1, 'a'), (2, 'b'), (3, 'c')

Return a table with the columns id and name:

SELECT * FROM ( VALUES (1, 'a'), (2, 'b'), (3, 'c') ) AS t (id, name)

Create a table called customers with the columns id and name:

CREATE TABLE customers AS SELECT * FROM ( VALUES (1, 'a'), (2, 'b'), (3, 'c') ) AS t (id, name)

See also

INSERT INTO...VALUES

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.