Request Types in SQL Statements | Basic Teradata Query - Request Types - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

There are two types of SQL requests:

  • A single-statement request is a single SQL statement sent as a request.
  • A multi-statement request is two or more statements that are sent as a request.

Semicolon placement in relation to the rest of a line (for example, at the beginning or end) determines whether a statement is processed as a single-statement request or a multi-statement request.

Request Type Semicolon Placement
Single-statement request Place the semicolon at the end of the statement as the last nonspace character of the line.
Multi-statement request Place the semicolon at the beginning of the line that begins the second through the final statement, and at the end of the final statement as the last nonspace character of the line.