SELECT AND CONSUME Syntax | SQL Statements | Teradata Vantage - SELECT AND CONSUME Syntax - Analytics Database - Teradata Vantage

SQL Data Manipulation Language

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
pon1628111750298.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esx1472246586715
lifecycle
latest
Product Category
Teradata Vantageā„¢
SELECT AND CONSUME TOP 1 select_list FROM queue_table_name [;]

Syntax Elements

select_list
An asterisk ( * ) or a comma-separated list of valid SQL expressions.
If select_list specifies *, all columns from the queue table specified in the FROM clause are returned.
The select list must not contain aggregate or ordered analytical functions.
queue_table_name
Name of a queue table that was created with the QUEUE option in the CREATE TABLE statement.